commit e2d352467ba4fc7dd49f63d90edb17de4f62994d Author: Steve Kirbach Date: Tue Feb 13 18:06:18 2024 -0800 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a6669c --- /dev/null +++ b/.gitignore @@ -0,0 +1,95 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +# Pods/ +# +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Accio dependency management +Dependencies/ +.accio/ + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +.packages +.generated +swift-winrt.rsp +Package.resolved diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..62ecf25 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,11 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "Generate swift-winui bindings", + "command": "${workspaceFolder:swift-winui}/generate-bindings.ps1", + "problemMatcher": [] + } + ] +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..88a95f5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2024, The Browser Company +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +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..779804a --- /dev/null +++ b/Package.swift @@ -0,0 +1,27 @@ +// swift-tools-version: 5.10 + +import PackageDescription + +let package = Package( + name: "swift-winui", + products: [ + .library(name: "WinUI", type: .dynamic, targets: ["WinUI"]), + ], + 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-windowsappsdk", branch: "main"), + .package(url: "https://github.com/thebrowsercompany/swift-windowsfoundation", branch: "main"), + ], + targets: [ + .target( + name: "WinUI", + dependencies: [ + .product(name: "CWinRT", package: "swift-cwinrt"), + .product(name: "UWP", package: "swift-uwp"), + .product(name: "WinAppSDK", package: "swift-windowsappsdk"), + .product(name: "WindowsFoundation", package: "swift-windowsfoundation"), + ] + ) + ] +) diff --git a/README.md b/README.md new file mode 100644 index 0000000..efce655 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# swift-winui +Swift Language Bindings for WinUI + +## APIs +These projections contains the WinUI APIs which are part of the Windows App SDK, (i.e. `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/microsoft-ui-xaml) + +Due to SPM limitations and the current state of swift-winrt, not all APIs can be generated as this causes export limit issues. + +### 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 two key files which drive this: +1. projections.json - this specifies the project/package and which apis to include in the projection +2. generate-bindings.ps1 - this file reads both `packages.config` and `projections.json` and generates the appropriate bindings. + +## Filing Issues + +Please file any issues you have with this repository on https://github.com/thebrowsercompany/swift-winrt + +## 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/WinUI/Generated/Microsoft.UI.Xaml+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml+ABI.swift new file mode 100644 index 0000000..9555550 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml+ABI.swift @@ -0,0 +1,7109 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication: WindowsFoundation.IID { + .init(Data1: 0x06A8F4E7, Data2: 0x1146, Data3: 0x55AF, Data4: ( 0x82,0x0D,0xEB,0xD5,0x56,0x43,0xB0,0x21 ))// 06A8F4E7-1146-55AF-820D-EBD55643B021 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication2: WindowsFoundation.IID { + .init(Data1: 0x469E6D36, Data2: 0x2E11, Data3: 0x5B06, Data4: ( 0x9E,0x0A,0xC5,0xEE,0xF0,0xCF,0x8F,0x12 ))// 469E6D36-2E11-5B06-9E0A-C5EEF0CF8F12 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication3: WindowsFoundation.IID { + .init(Data1: 0xBE941595, Data2: 0x61FE, Data3: 0x5B36, Data4: ( 0xA3,0xD3,0x96,0x2A,0x64,0x7D,0x7C,0x6F ))// BE941595-61FE-5B36-A3D3-962A647D7C6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationFactory: WindowsFoundation.IID { + .init(Data1: 0x9FD96657, Data2: 0x5294, Data3: 0x5A65, Data4: ( 0xA1,0xDB,0x4F,0xEA,0x14,0x35,0x97,0xDA ))// 9FD96657-5294-5A65-A1DB-4FEA143597DA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackParams: WindowsFoundation.IID { + .init(Data1: 0x1B1906EA, Data2: 0x5B7B, Data3: 0x5876, Data4: ( 0x81,0xAB,0x7C,0x22,0x81,0xAC,0x3D,0x20 ))// 1B1906EA-5B7B-5876-81AB-7C2281AC3D20 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides: WindowsFoundation.IID { + .init(Data1: 0xA33E81EF, Data2: 0xC665, Data3: 0x503B, Data4: ( 0x88,0x27,0xD2,0x7E,0xF1,0x72,0x0A,0x06 ))// A33E81EF-C665-503B-8827-D27EF1720A06 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics: WindowsFoundation.IID { + .init(Data1: 0x4E0D09F5, Data2: 0x4358, Data3: 0x512C, Data4: ( 0xA9,0x87,0x50,0x3B,0x52,0x84,0x8E,0x95 ))// 4E0D09F5-4358-512C-A987-503B52848E95 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA7BF50F3, Data2: 0xDBC0, Data3: 0x5B44, Data4: ( 0xBE,0x74,0x56,0xE8,0xF8,0x0F,0xD7,0x16 ))// A7BF50F3-DBC0-5B44-BE74-56E8F80FD716 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions: WindowsFoundation.IID { + .init(Data1: 0xEEB4A447, Data2: 0xEB9E, Data3: 0x5003, Data4: ( 0xA4,0x79,0xB9,0xE3,0xA8,0x86,0xB7,0x08 ))// EEB4A447-EB9E-5003-A479-B9E3A886B708 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x807DE8F9, Data2: 0xB1DC, Data3: 0x5A63, Data4: ( 0x81,0x01,0x5E,0xE9,0x66,0x84,0x1A,0x27 ))// 807DE8F9-B1DC-5A63-8101-5EE966841A27 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition: WindowsFoundation.IID { + .init(Data1: 0xA996A7BA, Data2: 0x4567, Data3: 0x5963, Data4: ( 0xA1,0x12,0x76,0xE3,0xC0,0x00,0x02,0x04 ))// A996A7BA-4567-5963-A112-76E3C0000204 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransitionFactory: WindowsFoundation.IID { + .init(Data1: 0x13735998, Data2: 0xC3B6, Data3: 0x5C24, Data4: ( 0xB4,0x0A,0x7B,0x16,0x6A,0x6F,0xFC,0x2C ))// 13735998-C3B6-5C24-B40A-7B166A6FFC2C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA1BE80F4, Data2: 0xCF83, Data3: 0x5022, Data4: ( 0xB1,0x13,0x92,0x33,0xF1,0xD4,0xFA,0xFA ))// A1BE80F4-CF83-5022-B113-9233F1D4FAFA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate: WindowsFoundation.IID { + .init(Data1: 0x08FA70FA, Data2: 0xEE75, Data3: 0x5E92, Data4: ( 0xA1,0x01,0xF5,0x2D,0x0E,0x1E,0x9F,0xAB ))// 08FA70FA-EE75-5E92-A101-F52D0E1E9FAB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension: WindowsFoundation.IID { + .init(Data1: 0x351E63C4, Data2: 0x8FA3, Data3: 0x5CC3, Data4: ( 0xB0,0x73,0x7F,0x84,0xBA,0xA6,0x48,0x5D ))// 351E63C4-8FA3-5CC3-B073-7F84BAA6485D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateFactory: WindowsFoundation.IID { + .init(Data1: 0xD8E8249D, Data2: 0x305B, Data3: 0x5CA5, Data4: ( 0xAC,0xF8,0x3E,0x1B,0xEF,0xFD,0x02,0x19 ))// D8E8249D-305B-5CA5-ACF8-3E1BEFFD0219 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics: WindowsFoundation.IID { + .init(Data1: 0xCF6ADA69, Data2: 0x4BF1, Data3: 0x5F2D, Data4: ( 0x8B,0xDB,0x09,0xEA,0x1A,0x26,0xF9,0x75 ))// CF6ADA69-4BF1-5F2D-8BDB-09EA1A26F975 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings: WindowsFoundation.IID { + .init(Data1: 0x4004943B, Data2: 0x2509, Data3: 0x5476, Data4: ( 0xBB,0xA2,0x3F,0xE0,0x5E,0xCF,0x61,0x5D ))// 4004943B-2509-5476-BBA2-3FE05ECF615D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2: WindowsFoundation.IID { + .init(Data1: 0x6DFB6F51, Data2: 0xD2F8, Data3: 0x59C4, Data4: ( 0x8B,0xCA,0x44,0x10,0x92,0x95,0x77,0xD0 ))// 6DFB6F51-D2F8-59C4-8BCA-4410929577D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3: WindowsFoundation.IID { + .init(Data1: 0x36135BD5, Data2: 0x3917, Data3: 0x5C8D, Data4: ( 0xA3,0xC6,0x2F,0xC8,0x9A,0x50,0x3F,0x26 ))// 36135BD5-3917-5C8D-A3C6-2FC89A503F26 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject: WindowsFoundation.IID { + .init(Data1: 0xE7BEAEE7, Data2: 0x160E, Data3: 0x50F7, Data4: ( 0x87,0x89,0xD6,0x34,0x63,0xF9,0x79,0xFA ))// E7BEAEE7-160E-50F7-8789-D63463F979FA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObjectFactory: WindowsFoundation.IID { + .init(Data1: 0x936B614C, Data2: 0x475F, Data3: 0x5D7D, Data4: ( 0xB3,0xF7,0xBF,0x1F,0xBE,0xA2,0x81,0x26 ))// 936B614C-475F-5D7D-B3F7-BF1FBEA28126 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty: WindowsFoundation.IID { + .init(Data1: 0x960EAB49, Data2: 0x9672, Data3: 0x58A0, Data4: ( 0x99,0x5B,0x3A,0x42,0xE5,0xEA,0x62,0x78 ))// 960EAB49-9672-58A0-995B-3A42E5EA6278 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x84EAD020, Data2: 0x7849, Data3: 0x5E98, Data4: ( 0x80,0x30,0x48,0x8A,0x80,0xD1,0x64,0xEC ))// 84EAD020-7849-5E98-8030-488A80D164EC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics: WindowsFoundation.IID { + .init(Data1: 0x61DDC651, Data2: 0x0383, Data3: 0x5D6F, Data4: ( 0x98,0xCE,0x5C,0x04,0x6A,0xAA,0xAA,0x8F ))// 61DDC651-0383-5D6F-98CE-5C046AAAAA8F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs: WindowsFoundation.IID { + .init(Data1: 0x47AC5757, Data2: 0xE4BC, Data3: 0x52BA, Data4: ( 0x8A,0xB9,0x1B,0xF8,0x1A,0xAD,0x79,0x00 ))// 47AC5757-E4BC-52BA-8AB9-1BF81AAD7900 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral: WindowsFoundation.IID { + .init(Data1: 0x462C1880, Data2: 0xFC6A, Data3: 0x5035, Data4: ( 0x8A,0xBF,0x56,0x4B,0xAC,0xB7,0x81,0x58 ))// 462C1880-FC6A-5035-8ABF-564BACB78158 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xAD17BACE, Data2: 0x9613, Data3: 0x5666, Data4: ( 0xA3,0x1B,0x79,0xA7,0x3F,0xBA,0x77,0xCF ))// AD17BACE-9613-5666-A31B-79A73FBA77CF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUI: WindowsFoundation.IID { + .init(Data1: 0x35F170E0, Data2: 0x93BF, Data3: 0x58DA, Data4: ( 0x87,0x7A,0x8E,0xC7,0x7D,0x8D,0x9F,0x00 ))// 35F170E0-93BF-58DA-877A-8EC77D8D9F00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride: WindowsFoundation.IID { + .init(Data1: 0x3260B18B, Data2: 0x70DF, Data3: 0x5DF2, Data4: ( 0xB9,0x8A,0x56,0xBE,0xB0,0x60,0x1F,0x79 ))// 3260B18B-70DF-5DF2-B98A-56BEB0601F79 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE700082D, Data2: 0xC640, Data3: 0x5D44, Data4: ( 0xB2,0x3A,0xF2,0x13,0xDF,0xBE,0xB2,0x45 ))// E700082D-C640-5D44-B23A-F213DFBEB245 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x636E8159, Data2: 0x2D82, Data3: 0x538A, Data4: ( 0x84,0x83,0xCD,0x57,0x6E,0x41,0xD0,0xDF ))// 636E8159-2D82-538A-8483-CD576E41D0DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory: WindowsFoundation.IID { + .init(Data1: 0x75FABA47, Data2: 0x2CF2, Data3: 0x54AE, Data4: ( 0x91,0xE6,0x05,0x81,0x55,0x6F,0xDD,0xAA ))// 75FABA47-2CF2-54AE-91E6-0581556FDDAA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs: WindowsFoundation.IID { + .init(Data1: 0xB7017D68, Data2: 0xEC9E, Data3: 0x5435, Data4: ( 0xB0,0x78,0xBE,0x6F,0x90,0x6F,0x09,0x53 ))// B7017D68-EC9E-5435-B078-BE6F906F0953 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgsFactory: WindowsFoundation.IID { + .init(Data1: 0xA88E401B, Data2: 0x9FE5, Data3: 0x5960, Data4: ( 0x87,0xA3,0x89,0xA3,0xCF,0xE2,0x53,0x1C ))// A88E401B-9FE5-5960-87A3-89A3CFE2531C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs: WindowsFoundation.IID { + .init(Data1: 0x46E444F7, Data2: 0x05D3, Data3: 0x5C5E, Data4: ( 0x9B,0x7A,0x55,0x41,0xF6,0x3E,0x4E,0xF9 ))// 46E444F7-05D3-5C5E-9B7A-5541F63E4EF9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x30EE194A, Data2: 0xFE4D, Data3: 0x53E7, Data4: ( 0xA8,0x4A,0xCD,0x34,0xFA,0xB0,0xD4,0xEF ))// 30EE194A-FE4D-53E7-A84A-CD34FAB0D4EF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE8BCB6D2, Data2: 0xD3F5, Data3: 0x5393, Data4: ( 0xA8,0x4F,0xDF,0xCD,0x44,0xA2,0xDF,0x34 ))// E8BCB6D2-D3F5-5393-A84F-DFCD44A2DF34 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0xE1E71FB6, Data2: 0x2AD0, Data3: 0x5189, Data4: ( 0x8D,0x96,0x33,0xBA,0xE4,0x88,0xC5,0xFB ))// E1E71FB6-2AD0-5189-8D96-33BAE488C5FB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement: WindowsFoundation.IID { + .init(Data1: 0xFE08F13D, Data2: 0xDC6A, Data3: 0x5495, Data4: ( 0xAD,0x44,0xC2,0xD8,0xD2,0x18,0x63,0xB0 ))// FE08F13D-DC6A-5495-AD44-C2D8D21863B0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementFactory: WindowsFoundation.IID { + .init(Data1: 0xBD3F2272, Data2: 0x3EFA, Data3: 0x5F92, Data4: ( 0xB7,0x59,0x90,0xB1,0xCC,0x3E,0x78,0x4C ))// BD3F2272-3EFA-5F92-B759-90B1CC3E784C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides: WindowsFoundation.IID { + .init(Data1: 0xFFC6FD98, Data2: 0xF38C, Data3: 0x5904, Data4: ( 0x9C,0xE4,0x97,0xA3,0x42,0x7C,0xF4,0xBA ))// FFC6FD98-F38C-5904-9CE4-97A3427CF4BA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected: WindowsFoundation.IID { + .init(Data1: 0xE59A3DB0, Data2: 0x91E5, Data3: 0x5903, Data4: ( 0x9C,0xAF,0xD1,0xBB,0x9F,0x45,0x8B,0xF2 ))// E59A3DB0-91E5-5903-9CAF-D1BB9F458BF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics: WindowsFoundation.IID { + .init(Data1: 0x894E2704, Data2: 0x14E7, Data3: 0x569A, Data4: ( 0xB2,0x1E,0xAF,0xC7,0xDF,0x71,0x45,0xA1 ))// 894E2704-14E7-569A-B21E-AFC7DF7145A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate: WindowsFoundation.IID { + .init(Data1: 0x0084C7C2, Data2: 0xDE48, Data3: 0x5B0B, Data4: ( 0x8A,0x5A,0xE4,0xFB,0x76,0xB7,0xF7,0xD1 ))// 0084C7C2-DE48-5B0B-8A5A-E4FB76B7F7D1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplateFactory: WindowsFoundation.IID { + .init(Data1: 0x616DD6DB, Data2: 0xB064, Data3: 0x561D, Data4: ( 0xB1,0x62,0x46,0xCE,0xB4,0x5D,0xC5,0x62 ))// 616DD6DB-B064-561D-B162-46CEB45DC562 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xD505CEA9, Data2: 0x1BCB, Data3: 0x5B29, Data4: ( 0xA8,0xBE,0x94,0x4E,0x00,0xF0,0x6F,0x78 ))// D505CEA9-1BCB-5B29-A8BE-944E00F06F78 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata: WindowsFoundation.IID { + .init(Data1: 0xB3644425, Data2: 0x9464, Data3: 0x5434, Data4: ( 0xB0,0xAE,0xAF,0xF8,0xD3,0x15,0x9F,0xE1 ))// B3644425-9464-5434-B0AE-AFF8D3159FE1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory: WindowsFoundation.IID { + .init(Data1: 0x9F420906, Data2: 0x111A, Data3: 0x5465, Data4: ( 0x91,0xEE,0xBE,0xD1,0x4B,0x3E,0x7F,0xEC ))// 9F420906-111A-5465-91EE-BED14B3E7FEC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics: WindowsFoundation.IID { + .init(Data1: 0x37B8ADD4, Data2: 0x7A4A, Data3: 0x5CF7, Data4: ( 0xA1,0x74,0x23,0x51,0x82,0xCD,0x08,0x2E ))// 37B8ADD4-7A4A-5CF7-A174-235182CD082E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath: WindowsFoundation.IID { + .init(Data1: 0x8B0712F6, Data2: 0x9E57, Data3: 0x53B0, Data4: ( 0x80,0xB1,0x96,0x6A,0x79,0xF6,0x0B,0x96 ))// 8B0712F6-9E57-53B0-80B1-966A79F60B96 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory: WindowsFoundation.IID { + .init(Data1: 0x08A8CCAB, Data2: 0x7FF8, Data3: 0x5CEC, Data4: ( 0xBD,0x3C,0x72,0xC9,0x88,0x04,0xD9,0x89 ))// 08A8CCAB-7FF8-5CEC-BD3C-72C98804D989 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary: WindowsFoundation.IID { + .init(Data1: 0x1B690975, Data2: 0xA710, Data3: 0x5783, Data4: ( 0xA6,0xE1,0x15,0x83,0x6F,0x61,0x86,0xC2 ))// 1B690975-A710-5783-A6E1-15836F6186C2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionaryFactory: WindowsFoundation.IID { + .init(Data1: 0xEA22A48F, Data2: 0xAB71, Data3: 0x56F6, Data4: ( 0xA3,0x92,0xD8,0x23,0x10,0xC8,0xAA,0x7B ))// EA22A48F-AB71-56F6-A392-D82310C8AA7B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC35F4CF1, Data2: 0xFCD6, Data3: 0x5C6B, Data4: ( 0x9B,0xE2,0x4C,0xFA,0xEF,0xB6,0x8B,0x2A ))// C35F4CF1-FCD6-5C6B-9BE2-4CFAEFB68B2A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEvent: WindowsFoundation.IID { + .init(Data1: 0xB2B432BC, Data2: 0xEFCA, Data3: 0x575E, Data4: ( 0x9D,0x2A,0x70,0x3F,0x8B,0x9C,0x38,0x0F ))// B2B432BC-EFCA-575E-9D2A-703F8B9C380F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0908C407, Data2: 0x1C7D, Data3: 0x5DE3, Data4: ( 0x9C,0x50,0xD9,0x71,0xC6,0x2E,0xC8,0xEC ))// 0908C407-1C7D-5DE3-9C50-D971C62EC8EC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x914B02C7, Data2: 0x076B, Data3: 0x5B89, Data4: ( 0x98,0xE7,0x6C,0x37,0x33,0x79,0xE9,0xAF ))// 914B02C7-076B-5B89-98E7-6C373379E9AF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition: WindowsFoundation.IID { + .init(Data1: 0xC2DA2AC8, Data2: 0x814C, Data3: 0x5889, Data4: ( 0xB2,0xF4,0x4E,0xBE,0x4B,0x00,0x1E,0xE3 ))// C2DA2AC8-814C-5889-B2F4-4EBE4B001EE3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransitionFactory: WindowsFoundation.IID { + .init(Data1: 0xA1650CF8, Data2: 0xA15B, Data3: 0x54FC, Data4: ( 0xB5,0x95,0xC5,0x24,0x91,0x31,0x8F,0x58 ))// A1650CF8-A15B-54FC-B595-C52491318F58 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetter: WindowsFoundation.IID { + .init(Data1: 0xBBD6074D, Data2: 0x686F, Data3: 0x5AE1, Data4: ( 0xB8,0xDE,0x5F,0x16,0xAA,0x30,0xB8,0x0A ))// BBD6074D-686F-5AE1-B8DE-5F16AA30B80A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBase: WindowsFoundation.IID { + .init(Data1: 0x5A7C1347, Data2: 0xCDA3, Data3: 0x55BE, Data4: ( 0xBF,0xEF,0x5C,0x75,0x82,0x21,0x39,0x80 ))// 5A7C1347-CDA3-55BE-BFEF-5C7582213980 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection: WindowsFoundation.IID { + .init(Data1: 0x63BF7C0F, Data2: 0xB290, Data3: 0x5C0C, Data4: ( 0x91,0x85,0x33,0x38,0xCD,0x35,0x0D,0x7F ))// 63BF7C0F-B290-5C0C-9185-3338CD350D7F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x780A1D2F, Data2: 0xC4BE, Data3: 0x5707, Data4: ( 0x8A,0x8A,0x45,0x50,0xDC,0x22,0x58,0x3E ))// 780A1D2F-C4BE-5707-8A8A-4550DC22583E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory: WindowsFoundation.IID { + .init(Data1: 0x13910A06, Data2: 0xA327, Data3: 0x5407, Data4: ( 0xAE,0x91,0xB9,0xD2,0xCC,0x3A,0x7A,0xB5 ))// 13910A06-A327-5407-AE91-B9D2CC3A7AB5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFE76324E, Data2: 0x6DFB, Data3: 0x58B1, Data4: ( 0x9D,0xCD,0x88,0x6C,0xA8,0xF9,0xA2,0xEA ))// FE76324E-6DFB-58B1-9DCD-886CA8F9A2EA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyle: WindowsFoundation.IID { + .init(Data1: 0x65E1D164, Data2: 0x572F, Data3: 0x5B0E, Data4: ( 0xA8,0x0F,0x9C,0x02,0x44,0x1F,0xAC,0x49 ))// 65E1D164-572F-5B0E-A80F-9C02441FAC49 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory: WindowsFoundation.IID { + .init(Data1: 0xC2D924A2, Data2: 0x3862, Data3: 0x517C, Data4: ( 0xB0,0x83,0x9A,0x91,0x20,0xD7,0x30,0x2D ))// C2D924A2-3862-517C-B083-9A9120D7302D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath: WindowsFoundation.IID { + .init(Data1: 0xB1442F0E, Data2: 0xF66B, Data3: 0x531C, Data4: ( 0x97,0x9B,0x19,0x3F,0xD3,0x44,0xE2,0xA8 ))// B1442F0E-F66B-531C-979B-193FD344E2A8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory: WindowsFoundation.IID { + .init(Data1: 0x894CB11D, Data2: 0x5C16, Data3: 0x555B, Data4: ( 0xB6,0x61,0xF4,0x1B,0x29,0xFD,0x9B,0x21 ))// 894CB11D-5C16-555B-B661-F41B29FD9B21 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction: WindowsFoundation.IID { + .init(Data1: 0x1FA35464, Data2: 0xA690, Data3: 0x586C, Data4: ( 0xAE,0xDF,0x6C,0x88,0xCA,0xC7,0xD1,0x4A ))// 1FA35464-A690-586C-AEDF-6C88CAC7D14A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerActionFactory: WindowsFoundation.IID { + .init(Data1: 0x1E1FAF1A, Data2: 0xF614, Data3: 0x554A, Data4: ( 0x82,0x2A,0xD9,0x8F,0xE4,0x65,0x75,0xD1 ))// 1E1FAF1A-F614-554A-822A-D98FE46575D1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase: WindowsFoundation.IID { + .init(Data1: 0xD37DA89D, Data2: 0x0D71, Data3: 0x58CF, Data4: ( 0xA9,0x01,0x99,0xA7,0xD3,0xE5,0xE4,0x34 ))// D37DA89D-0D71-58CF-A901-99A7D3E5E434 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x23088EAA, Data2: 0x17EC, Data3: 0x51B2, Data4: ( 0xB1,0x81,0x5B,0xED,0xFA,0x8B,0x8F,0xA4 ))// 23088EAA-17EC-51B2-B181-5BEDFA8B8FA4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElement: WindowsFoundation.IID { + .init(Data1: 0xC3C01020, Data2: 0x320C, Data3: 0x5CF6, Data4: ( 0x9D,0x24,0xD3,0x96,0xBB,0xFA,0x4D,0x8B ))// C3C01020-320C-5CF6-9D24-D396BBFA4D8B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementFactory: WindowsFoundation.IID { + .init(Data1: 0x14D1D309, Data2: 0xADD0, Data3: 0x5CCB, Data4: ( 0xB9,0x46,0x77,0x48,0x8C,0xD7,0x0F,0x87 ))// 14D1D309-ADD0-5CCB-B946-77488CD70F87 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides: WindowsFoundation.IID { + .init(Data1: 0x9034F41E, Data2: 0xAB7B, Data3: 0x59E7, Data4: ( 0x81,0x68,0x50,0xDE,0x6B,0x68,0x9D,0xDE ))// 9034F41E-AB7B-59E7-8168-50DE6B689DDE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected: WindowsFoundation.IID { + .init(Data1: 0x8F69B9E9, Data2: 0x1F00, Data3: 0x5834, Data4: ( 0x9B,0xF1,0xA9,0x25,0x7B,0xED,0x39,0xF0 ))// 8F69B9E9-1F00-5834-9BF1-A9257BED39F0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics: WindowsFoundation.IID { + .init(Data1: 0xD2921D87, Data2: 0x3584, Data3: 0x5E22, Data4: ( 0x8A,0x3A,0xC2,0xC7,0x8D,0xAB,0x4F,0x6E ))// D2921D87-3584-5E22-8A3A-C2C78DAB4F6E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementWeakCollectionFactory: WindowsFoundation.IID { + .init(Data1: 0xB4D69F09, Data2: 0xD494, Data3: 0x5BC8, Data4: ( 0xAE,0x68,0xB6,0x30,0x7D,0x84,0x50,0x49 ))// B4D69F09-D494-5BC8-AE68-B6307D845049 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs: WindowsFoundation.IID { + .init(Data1: 0x59EAEBA9, Data2: 0x8F9C, Data3: 0x5BE7, Data4: ( 0x9B,0x3B,0x82,0x09,0x60,0xFA,0xA2,0x20 ))// 59EAEBA9-8F9C-5BE7-9B3B-820960FAA220 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition: WindowsFoundation.IID { + .init(Data1: 0x0C408BB9, Data2: 0xF9A2, Data3: 0x55D7, Data4: ( 0x8A,0xED,0x14,0x3D,0x36,0xD6,0x03,0xF2 ))// 0C408BB9-F9A2-55D7-8AED-143D36D603F2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3TransitionFactory: WindowsFoundation.IID { + .init(Data1: 0xA3A084FC, Data2: 0xB965, Data3: 0x534B, Data4: ( 0x90,0x0F,0x78,0xE2,0x88,0x12,0x92,0x32 ))// A3A084FC-B965-534B-900F-78E288129232 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow: WindowsFoundation.IID { + .init(Data1: 0x61F0EC79, Data2: 0x5D52, Data3: 0x56B5, Data4: ( 0x86,0xFB,0x40,0xFA,0x4A,0xF2,0x88,0xB0 ))// 61F0EC79-5D52-56B5-86FB-40FA4AF288B0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow2: WindowsFoundation.IID { + .init(Data1: 0x42FEBAA5, Data2: 0x1C32, Data3: 0x522A, Data4: ( 0xA5,0x91,0x57,0x61,0x8C,0x6F,0x66,0x5D ))// 42FEBAA5-1C32-522A-A591-57618C6F665D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC723A5EA, Data2: 0x82C4, Data3: 0x5DD6, Data4: ( 0x86,0x1B,0x70,0xEF,0x57,0x3B,0x88,0xD6 ))// C723A5EA-82C4-5DD6-861B-70EF573B88D6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1140827C, Data2: 0xFE0A, Data3: 0x5268, Data4: ( 0xBC,0x2B,0xF4,0x49,0x2C,0x2C,0xCB,0x49 ))// 1140827C-FE0A-5268-BC2B-F4492C2CCB49 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowFactory: WindowsFoundation.IID { + .init(Data1: 0xF0441536, Data2: 0xAFEF, Data3: 0x5222, Data4: ( 0x91,0x8F,0x32,0x4A,0x9B,0x2D,0xEC,0x75 ))// F0441536-AFEF-5222-918F-324A9B2DEC75 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x542F6F2C, Data2: 0x4B64, Data3: 0x5C72, Data4: ( 0xA7,0xA5,0x3A,0x7E,0x06,0x64,0xB8,0xFF ))// 542F6F2C-4B64-5C72-A7A5-3A7E0664B8FF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics: WindowsFoundation.IID { + .init(Data1: 0x8CC985E3, Data2: 0xA41A, Data3: 0x5DF4, Data4: ( 0xB5,0x31,0xD3,0xA1,0x78,0x8D,0x86,0xC5 ))// 8CC985E3-A41A-5DF4-B531-D3A1788D86C5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7BB24A6D, Data2: 0x070C, Data3: 0x5CB6, Data4: ( 0x8E,0x9C,0x54,0x79,0x05,0xBE,0x82,0x65 ))// 7BB24A6D-070C-5CB6-8E9C-547905BE8265 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1B175EE6, Data2: 0xD08B, Data3: 0x50FF, Data4: ( 0x8F,0x89,0xA1,0xFF,0x27,0xED,0xEF,0x66 ))// 1B175EE6-D08B-50FF-8F89-A1FF27EDEF66 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot: WindowsFoundation.IID { + .init(Data1: 0x60CB215A, Data2: 0xAD15, Data3: 0x520A, Data4: ( 0x8B,0x01,0x44,0x16,0x82,0x4F,0x04,0x41 ))// 60CB215A-AD15-520A-8B01-4416824F0441 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2: WindowsFoundation.IID { + .init(Data1: 0xBDEE0F42, Data2: 0x71CB, Data3: 0x50C5, Data4: ( 0x82,0x9B,0x46,0x14,0xD9,0x8C,0x57,0x94 ))// BDEE0F42-71CB-50C5-829B-4614D98C5794 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRootChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x61D2C719, Data2: 0xF8A1, Data3: 0x515A, Data4: ( 0x90,0x2C,0xCF,0xA4,0x98,0xBA,0x7A,0x7F ))// 61D2C719-F8A1-515A-902C-CFA498BA7A7F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback: WindowsFoundation.IID { + .init(Data1: 0xD8EEF1C9, Data2: 0x1234, Data3: 0x56F1, Data4: ( 0x99,0x63,0x45,0xDD,0x9C,0x80,0xA6,0x61 ))// D8EEF1C9-1234-56F1-9963-45DD9C80A661 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xA3160AB0, Data2: 0xA8A9, Data3: 0x5F38, Data4: ( 0xAF,0x17,0x5C,0xD9,0x1A,0x2B,0x33,0xF5 ))// A3160AB0-A8A9-5F38-AF17-5CD91A2B33F5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback: WindowsFoundation.IID { + .init(Data1: 0x7F808C05, Data2: 0x2AC4, Data3: 0x5AD9, Data4: ( 0xAC,0x8A,0x26,0x89,0x03,0x33,0xD8,0x1E ))// 7F808C05-2AC4-5AD9-AC8A-26890333D81E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback: WindowsFoundation.IID { + .init(Data1: 0xF055BB21, Data2: 0x219B, Data3: 0x5B0C, Data4: ( 0x80,0x5D,0xBC,0xAE,0xDA,0xE1,0x54,0x58 ))// F055BB21-219B-5B0C-805D-BCAEDAE15458 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x4BE8DC75, Data2: 0x373D, Data3: 0x5F4E, Data4: ( 0xA0,0xB4,0x54,0xB9,0xEE,0xAF,0xB4,0xA9 ))// 4BE8DC75-373D-5F4E-A0B4-54B9EEAFB4A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler: WindowsFoundation.IID { + .init(Data1: 0x277AFC83, Data2: 0xCB67, Data3: 0x56C8, Data4: ( 0xB6,0x01,0x1B,0x9C,0x0F,0x1C,0x3D,0x32 ))// 277AFC83-CB67-56C8-B601-1B9C0F1C3D32 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x45FBB85D, Data2: 0x54F9, Data3: 0x5A2A, Data4: ( 0x8A,0x38,0x00,0xA3,0xB7,0x76,0x1F,0x96 ))// 45FBB85D-54F9-5A2A-8A38-00A3B7761F96 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback: WindowsFoundation.IID { + .init(Data1: 0x5FD9243A, Data2: 0x2422, Data3: 0x53C9, Data4: ( 0x8D,0x6F,0xF1,0xBA,0x1A,0x0B,0xBA,0x9A ))// 5FD9243A-2422-53C9-8D6F-F1BA1A0BBA9A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xDAE23D85, Data2: 0x69CA, Data3: 0x5BDF, Data4: ( 0x80,0x5B,0x61,0x61,0xA3,0xA2,0x15,0xCC ))// DAE23D85-69CA-5BDF-805B-6161A3A215CC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x8D7B1A58, Data2: 0x14C6, Data3: 0x51C9, Data4: ( 0x89,0x2C,0x9F,0xCC,0xE3,0x68,0xE7,0x7D ))// 8D7B1A58-14C6-51C9-892C-9FCCE368E77D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler: WindowsFoundation.IID { + .init(Data1: 0x3427C1B6, Data2: 0x5ECA, Data3: 0x5631, Data4: ( 0x84,0xB8,0x5B,0xAE,0x73,0x2F,0xB6,0x7F ))// 3427C1B6-5ECA-5631-84B8-5BAE732FB67F +} + +public enum __ABI_Microsoft_UI_Xaml { + public class IApplication: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication } + + internal func get_ResourcesImpl() throws -> WinUI.ResourceDictionary? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Resources(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ResourcesImpl(_ value: WinUI.ResourceDictionary?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Resources(pThis, RawPointer(value))) + } + } + + internal func get_DebugSettingsImpl() throws -> WinUI.DebugSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DebugSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RequestedThemeImpl() throws -> WinUI.ApplicationTheme { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CApplicationTheme = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedTheme(pThis, &value)) + } + return value + } + + internal func put_RequestedThemeImpl(_ value: WinUI.ApplicationTheme) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestedTheme(pThis, value)) + } + } + + internal func get_FocusVisualKindImpl() throws -> WinUI.FocusVisualKind { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualKind(pThis, &value)) + } + return value + } + + internal func put_FocusVisualKindImpl(_ value: WinUI.FocusVisualKind) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualKind(pThis, value)) + } + } + + internal func get_HighContrastAdjustmentImpl() throws -> WinUI.ApplicationHighContrastAdjustment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CApplicationHighContrastAdjustment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustment(pThis, &value)) + } + return value + } + + internal func put_HighContrastAdjustmentImpl(_ value: WinUI.ApplicationHighContrastAdjustment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HighContrastAdjustment(pThis, value)) + } + } + + internal func add_UnhandledExceptionImpl(_ handler: WinUI.UnhandledExceptionEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_UnhandledException(pThis, _handler, &token)) + } + return token + } + + internal func remove_UnhandledExceptionImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_UnhandledException(pThis, token)) + } + } + + internal func ExitImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Exit(pThis)) + } + } + + } + + public class IApplication2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication2 } + + internal func add_ResourceManagerRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ResourceManagerRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_ResourceManagerRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ResourceManagerRequested(pThis, token)) + } + } + + } + + public class IApplication3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplication3 } + + internal func get_DispatcherShutdownModeImpl() throws -> WinUI.DispatcherShutdownMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CDispatcherShutdownMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherShutdownMode(pThis, &value)) + } + return value + } + + internal func put_DispatcherShutdownModeImpl(_ value: WinUI.DispatcherShutdownMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplication3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DispatcherShutdownMode(pThis, value)) + } + } + + } + + public class IApplicationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IApplication { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IApplication(value!) + } + + } + + public class IApplicationInitializationCallbackParams: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackParams } + + } + + public class IApplicationOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides } + + internal func OnLaunchedImpl(_ args: WinUI.LaunchActivatedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnLaunched(pThis, RawPointer(args))) + } + } + + } + + public class IApplicationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics } + + internal func get_CurrentImpl() throws -> WinUI.Application? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func StartImpl(_ callback: WinUI.ApplicationInitializationCallback?) throws { + let callbackWrapper = __ABI_Microsoft_UI_Xaml.ApplicationInitializationCallbackWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Start(pThis, _callback)) + } + } + + internal func LoadComponentImpl(_ component: Any?, _ resourceLocator: WindowsFoundation.Uri?) throws { + let componentWrapper = __ABI_.AnyWrapper(component) + let _component = try! componentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.LoadComponent(pThis, _component, RawPointer(resourceLocator))) + } + } + + internal func LoadComponentWithResourceLocationImpl(_ component: Any?, _ resourceLocator: WindowsFoundation.Uri?, _ componentResourceLocation: WinUI.ComponentResourceLocation) throws { + let componentWrapper = __ABI_.AnyWrapper(component) + let _component = try! componentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.LoadComponentWithResourceLocation(pThis, _component, RawPointer(resourceLocator), componentResourceLocation)) + } + } + + } + + public class IBindingFailedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs } + + internal func get_MessageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IBringIntoViewOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions } + + internal func get_AnimationDesiredImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationDesired(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AnimationDesiredImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationDesired(pThis, .init(from: value))) + } + } + + internal func get_TargetRectImpl() throws -> WindowsFoundation.Rect? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetRect(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.unwrapFrom(abi: value) + } + + internal func put_TargetRectImpl(_ value: WindowsFoundation.Rect?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetRect(pThis, _value)) + } + } + + internal func get_HorizontalAlignmentRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAlignmentRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignmentRatio(pThis, value)) + } + } + + internal func get_VerticalAlignmentRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAlignmentRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignmentRatio(pThis, value)) + } + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_HorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value)) + } + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func put_VerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value)) + } + } + + } + + public class IBringIntoViewRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs } + + internal func get_TargetElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TargetElementImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetElement(pThis, RawPointer(value))) + } + } + + internal func get_AnimationDesiredImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationDesired(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AnimationDesiredImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationDesired(pThis, .init(from: value))) + } + } + + internal func get_TargetRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TargetRectImpl(_ value: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetRect(pThis, .from(swift: value))) + } + } + + internal func get_HorizontalAlignmentRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func get_VerticalAlignmentRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentRatio(pThis, &value)) + } + return value + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_HorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value)) + } + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func put_VerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value)) + } + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs.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_CXaml_CIBringIntoViewRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IBrushTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition } + + internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition.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_CXaml_CIBrushTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value))) + } + } + + } + + public class IBrushTransitionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransitionFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBrushTransition { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransitionFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBrushTransition(value!) + } + + } + + public class IDataContextChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs } + + internal func get_NewValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs.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_CXaml_CIDataContextChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IDataTemplate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate } + + internal func LoadContentImpl() throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.LoadContent(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDataTemplateExtension: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension } + + open func ResetTemplateImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResetTemplate(pThis)) + } + } + + open func ProcessBindingImpl(_ phase: UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessBinding(pThis, phase, &result)) + } + return .init(from: result) + } + + open func ProcessBindingsImpl(_ arg: WinUI.ContainerContentChangingEventArgs?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessBindings(pThis, RawPointer(arg), &result)) + } + return result + } + + } + + internal static var IDataTemplateExtensionVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtensionVtbl = .init( + QueryInterface: { IDataTemplateExtensionWrapper.queryInterface($0, $1, $2) }, + AddRef: { IDataTemplateExtensionWrapper.addRef($0) }, + Release: { IDataTemplateExtensionWrapper.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_Xaml.IDataTemplateExtensionWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.IDataTemplateExtension").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + ResetTemplate: { + do { + guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.resetTemplate() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ProcessBinding: { + do { + guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let phase: UInt32 = $1 + let result = try __unwrapped__instance.processBinding(phase) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ProcessBindings: { + do { + guard let __unwrapped__instance = IDataTemplateExtensionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let arg: WinUI.ContainerContentChangingEventArgs? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.processBindings(arg) + $2?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IDataTemplateExtensionWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.IDataTemplateExtensionBridge> + public class IDataTemplateFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDataTemplate { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDataTemplate(value!) + } + + } + + public class IDataTemplateStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics } + + internal func get_ExtensionInstancePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtensionInstanceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetExtensionInstanceImpl(_ element: WinUI.FrameworkElement?) throws -> WinUI.AnyIDataTemplateExtension? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetExtensionInstance(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper.unwrapFrom(abi: result) + } + + internal func SetExtensionInstanceImpl(_ element: WinUI.FrameworkElement?, _ value: WinUI.AnyIDataTemplateExtension?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetExtensionInstance(pThis, RawPointer(element), _value)) + } + } + + } + + public class IDebugSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings } + + internal func get_EnableFrameRateCounterImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableFrameRateCounter(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableFrameRateCounterImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableFrameRateCounter(pThis, .init(from: value))) + } + } + + internal func get_IsBindingTracingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsBindingTracingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsBindingTracingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsBindingTracingEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsTextPerformanceVisualizationEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextPerformanceVisualizationEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextPerformanceVisualizationEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextPerformanceVisualizationEnabled(pThis, .init(from: value))) + } + } + + internal func get_FailFastOnErrorsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FailFastOnErrors(pThis, &value)) + } + return .init(from: value) + } + + internal func put_FailFastOnErrorsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FailFastOnErrors(pThis, .init(from: value))) + } + } + + internal func add_BindingFailedImpl(_ handler: WinUI.BindingFailedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.BindingFailedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_BindingFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_BindingFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BindingFailed(pThis, token)) + } + } + + } + + public class IDebugSettings2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2 } + + internal func get_IsXamlResourceReferenceTracingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsXamlResourceReferenceTracingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsXamlResourceReferenceTracingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsXamlResourceReferenceTracingEnabled(pThis, .init(from: value))) + } + } + + internal func add_XamlResourceReferenceFailedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_XamlResourceReferenceFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_XamlResourceReferenceFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_XamlResourceReferenceFailed(pThis, token)) + } + } + + } + + public class IDebugSettings3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3 } + + internal func get_LayoutCycleTracingLevelImpl() throws -> WinUI.LayoutCycleTracingLevel { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutCycleTracingLevel(pThis, &value)) + } + return value + } + + internal func put_LayoutCycleTracingLevelImpl(_ value: WinUI.LayoutCycleTracingLevel) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutCycleTracingLevel(pThis, value)) + } + } + + internal func get_LayoutCycleDebugBreakLevelImpl() throws -> WinUI.LayoutCycleDebugBreakLevel { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutCycleDebugBreakLevel(pThis, &value)) + } + return value + } + + internal func put_LayoutCycleDebugBreakLevelImpl(_ value: WinUI.LayoutCycleDebugBreakLevel) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutCycleDebugBreakLevel(pThis, value)) + } + } + + } + + public class IDependencyObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject } + + internal func GetValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValue(pThis, RawPointer(dp), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetValueImpl(_ dp: WinUI.DependencyProperty?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetValue(pThis, RawPointer(dp), _value)) + } + } + + internal func ClearValueImpl(_ dp: WinUI.DependencyProperty?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearValue(pThis, RawPointer(dp))) + } + } + + internal func ReadLocalValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ReadLocalValue(pThis, RawPointer(dp), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetAnimationBaseValueImpl(_ dp: WinUI.DependencyProperty?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnimationBaseValue(pThis, RawPointer(dp), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func RegisterPropertyChangedCallbackImpl(_ dp: WinUI.DependencyProperty?, _ callback: WinUI.DependencyPropertyChangedCallback?) throws -> Int64 { + var result: INT64 = 0 + let callbackWrapper = __ABI_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterPropertyChangedCallback(pThis, RawPointer(dp), _callback, &result)) + } + return result + } + + internal func UnregisterPropertyChangedCallbackImpl(_ dp: WinUI.DependencyProperty?, _ token: Int64) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterPropertyChangedCallback(pThis, RawPointer(dp), token)) + } + } + + internal func get_DispatcherImpl() throws -> UWP.CoreDispatcher? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Dispatcher(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDependencyObjectFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObjectFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDependencyObject { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObjectFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDependencyObject(value!) + } + + } + + public class IDependencyProperty: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty } + + internal func GetMetadataImpl(_ forType: WinUI.TypeName) throws -> WinUI.PropertyMetadata? { + let (result) = try ComPtrs.initialize { resultAbi in + let _forType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: forType) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetMetadata(pThis, _forType.val, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDependencyPropertyChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs } + + internal func get_PropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Property(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OldValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_NewValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class IDependencyPropertyStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics } + + internal func get_UnsetValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UnsetValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func RegisterImpl(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ typeMetadata: WinUI.PropertyMetadata?) throws -> WinUI.DependencyProperty? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + let _propertyType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: propertyType) + let _ownerType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: ownerType) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Register(pThis, _name.get(), _propertyType.val, _ownerType.val, RawPointer(typeMetadata), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func RegisterAttachedImpl(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ defaultMetadata: WinUI.PropertyMetadata?) throws -> WinUI.DependencyProperty? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + let _propertyType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: propertyType) + let _ownerType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: ownerType) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAttached(pThis, _name.get(), _propertyType.val, _ownerType.val, RawPointer(defaultMetadata), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDragEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.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_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_DataImpl() throws -> UWP.DataPackage? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DataImpl(_ value: UWP.DataPackage?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Data(pThis, RawPointer(value))) + } + } + + internal func get_DataViewImpl() throws -> UWP.DataPackageView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataView(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragUIOverrideImpl() throws -> WinUI.DragUIOverride? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragUIOverride(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ModifiersImpl() throws -> UWP.DragDropModifiers { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDragDrop_CDragDropModifiers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Modifiers(pThis, &value)) + } + return value + } + + internal func get_AcceptedOperationImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AcceptedOperation(pThis, &value)) + } + return value + } + + internal func put_AcceptedOperationImpl(_ value: UWP.DataPackageOperation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AcceptedOperation(pThis, value)) + } + } + + internal func get_AllowedOperationsImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowedOperations(pThis, &value)) + } + return value + } + + internal func GetDeferralImpl() throws -> WinUI.DragOperationDeferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + + public class IDragOperationDeferral: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IDragStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.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_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_DataImpl() throws -> UWP.DataPackage? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragUIImpl() throws -> WinUI.DragUI? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragUI(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowedOperationsImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowedOperations(pThis, &value)) + } + return value + } + + internal func put_AllowedOperationsImpl(_ value: UWP.DataPackageOperation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowedOperations(pThis, value)) + } + } + + internal func GetDeferralImpl() throws -> WinUI.DragOperationDeferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + + public class IDragUI: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUI } + + internal func SetContentFromBitmapImageImpl(_ bitmapImage: WinUI.BitmapImage?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImage(pThis, RawPointer(bitmapImage))) + } + } + + internal func SetContentFromBitmapImageWithAnchorPointImpl(_ bitmapImage: WinUI.BitmapImage?, _ anchorPoint: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImageWithAnchorPoint(pThis, RawPointer(bitmapImage), .from(swift: anchorPoint))) + } + } + + internal func SetContentFromSoftwareBitmapImpl(_ softwareBitmap: UWP.SoftwareBitmap?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmap(pThis, RawPointer(softwareBitmap))) + } + } + + internal func SetContentFromSoftwareBitmapWithAnchorPointImpl(_ softwareBitmap: UWP.SoftwareBitmap?, _ anchorPoint: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmapWithAnchorPoint(pThis, RawPointer(softwareBitmap), .from(swift: anchorPoint))) + } + } + + internal func SetContentFromDataPackageImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromDataPackage(pThis)) + } + } + + } + + public class IDragUIOverride: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride } + + internal func get_CaptionImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Caption(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CaptionImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Caption(pThis, _value.get())) + } + } + + internal func get_IsContentVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsContentVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsContentVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsContentVisible(pThis, .init(from: value))) + } + } + + internal func get_IsCaptionVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCaptionVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsCaptionVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsCaptionVisible(pThis, .init(from: value))) + } + } + + internal func get_IsGlyphVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsGlyphVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsGlyphVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsGlyphVisible(pThis, .init(from: value))) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + + internal func SetContentFromBitmapImageImpl(_ bitmapImage: WinUI.BitmapImage?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImage(pThis, RawPointer(bitmapImage))) + } + } + + internal func SetContentFromBitmapImageWithAnchorPointImpl(_ bitmapImage: WinUI.BitmapImage?, _ anchorPoint: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromBitmapImageWithAnchorPoint(pThis, RawPointer(bitmapImage), .from(swift: anchorPoint))) + } + } + + internal func SetContentFromSoftwareBitmapImpl(_ softwareBitmap: UWP.SoftwareBitmap?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmap(pThis, RawPointer(softwareBitmap))) + } + } + + internal func SetContentFromSoftwareBitmapWithAnchorPointImpl(_ softwareBitmap: UWP.SoftwareBitmap?, _ anchorPoint: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetContentFromSoftwareBitmapWithAnchorPoint(pThis, RawPointer(softwareBitmap), .from(swift: anchorPoint))) + } + } + + } + + public class IDropCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs } + + internal func get_DropResultImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropResult(pThis, &value)) + } + return value + } + + } + + public class IEffectiveViewportChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs } + + internal func get_EffectiveViewportImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EffectiveViewport(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_MaxViewportImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxViewport(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_BringIntoViewDistanceXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewDistanceX(pThis, &value)) + } + return value + } + + internal func get_BringIntoViewDistanceYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewDistanceY(pThis, &value)) + } + return value + } + + } + + public class IElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory } + + open func GetElementImpl(_ args: WinUI.ElementFactoryGetArgs?) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElement(pThis, RawPointer(args), &resultAbi)) + } + } + return .from(abi: result) + } + + open func RecycleElementImpl(_ args: WinUI.ElementFactoryRecycleArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RecycleElement(pThis, RawPointer(args))) + } + } + + } + + internal static var IElementFactoryVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryVtbl = .init( + QueryInterface: { IElementFactoryWrapper.queryInterface($0, $1, $2) }, + AddRef: { IElementFactoryWrapper.addRef($0) }, + Release: { IElementFactoryWrapper.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_Xaml.IElementFactoryWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.IElementFactory").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetElement: { + do { + guard let __unwrapped__instance = IElementFactoryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.ElementFactoryGetArgs? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.getElement(args) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RecycleElement: { + do { + guard let __unwrapped__instance = IElementFactoryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.ElementFactoryRecycleArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.recycleElement(args) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IElementFactoryWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.IElementFactoryBridge> + public class IElementFactoryGetArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs } + + internal func get_DataImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DataImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Data(pThis, _value)) + } + } + + internal func get_ParentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ParentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Parent(pThis, RawPointer(value))) + } + } + + } + + public class IElementFactoryGetArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IElementFactoryGetArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IElementFactoryGetArgs(value!) + } + + } + + public class IElementFactoryRecycleArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ElementImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Element(pThis, RawPointer(value))) + } + } + + internal func get_ParentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ParentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Parent(pThis, RawPointer(value))) + } + } + + } + + public class IElementFactoryRecycleArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IElementFactoryRecycleArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IElementFactoryRecycleArgs(value!) + } + + } + + public class IExceptionRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs } + + internal func get_ErrorMessageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ErrorMessage(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IExceptionRoutedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgsFactory } + + } + + public class IFrameworkElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement } + + internal func get_TriggersImpl() throws -> WinUI.TriggerCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Triggers(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ResourcesImpl() throws -> WinUI.ResourceDictionary? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Resources(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ResourcesImpl(_ value: WinUI.ResourceDictionary?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Resources(pThis, RawPointer(value))) + } + } + + internal func get_TagImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Tag(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_TagImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Tag(pThis, _value)) + } + } + + internal func get_LanguageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Language(pThis, &value)) + } + return .init(from: value) + } + + internal func put_LanguageImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Language(pThis, _value.get())) + } + } + + internal func get_ActualWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualWidth(pThis, &value)) + } + return value + } + + internal func get_ActualHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualHeight(pThis, &value)) + } + return value + } + + internal func get_WidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value)) + } + return value + } + + internal func put_WidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Width(pThis, value)) + } + } + + internal func get_HeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value)) + } + return value + } + + internal func put_HeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Height(pThis, value)) + } + } + + internal func get_MinWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidth(pThis, &value)) + } + return value + } + + internal func put_MinWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinWidth(pThis, value)) + } + } + + internal func get_MaxWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidth(pThis, &value)) + } + return value + } + + internal func put_MaxWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxWidth(pThis, value)) + } + } + + internal func get_MinHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeight(pThis, &value)) + } + return value + } + + internal func put_MinHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinHeight(pThis, value)) + } + } + + internal func get_MaxHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeight(pThis, &value)) + } + return value + } + + internal func put_MaxHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxHeight(pThis, value)) + } + } + + internal func get_HorizontalAlignmentImpl() throws -> WinUI.HorizontalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalAlignmentImpl(_ value: WinUI.HorizontalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAlignment(pThis, value)) + } + } + + internal func get_VerticalAlignmentImpl() throws -> WinUI.VerticalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignment(pThis, &value)) + } + return value + } + + internal func put_VerticalAlignmentImpl(_ value: WinUI.VerticalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAlignment(pThis, value)) + } + } + + internal func get_MarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Margin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_MarginImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Margin(pThis, .from(swift: value))) + } + } + + internal func get_NameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value)) + } + return .init(from: value) + } + + internal func put_NameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Name(pThis, _value.get())) + } + } + + internal func get_BaseUriImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BaseUri(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DataContextImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataContext(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DataContextImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DataContext(pThis, _value)) + } + } + + internal func get_AllowFocusOnInteractionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteraction(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowFocusOnInteractionImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusOnInteraction(pThis, .init(from: value))) + } + } + + internal func get_FocusVisualMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FocusVisualMarginImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualMargin(pThis, .from(swift: value))) + } + } + + internal func get_FocusVisualSecondaryThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FocusVisualSecondaryThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualSecondaryThickness(pThis, .from(swift: value))) + } + } + + internal func get_FocusVisualPrimaryThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FocusVisualPrimaryThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualPrimaryThickness(pThis, .from(swift: value))) + } + } + + internal func get_FocusVisualSecondaryBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FocusVisualSecondaryBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualSecondaryBrush(pThis, RawPointer(value))) + } + } + + internal func get_FocusVisualPrimaryBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FocusVisualPrimaryBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FocusVisualPrimaryBrush(pThis, RawPointer(value))) + } + } + + internal func get_AllowFocusWhenDisabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowFocusWhenDisabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusWhenDisabled(pThis, .init(from: value))) + } + } + + internal func get_StyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Style(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_StyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Style(pThis, RawPointer(value))) + } + } + + internal func get_ParentImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FlowDirectionImpl() throws -> WinUI.FlowDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirection(pThis, &value)) + } + return value + } + + internal func put_FlowDirectionImpl(_ value: WinUI.FlowDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FlowDirection(pThis, value)) + } + } + + internal func get_RequestedThemeImpl() throws -> WinUI.ElementTheme { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedTheme(pThis, &value)) + } + return value + } + + internal func put_RequestedThemeImpl(_ value: WinUI.ElementTheme) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequestedTheme(pThis, value)) + } + } + + internal func get_IsLoadedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLoaded(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ActualThemeImpl() throws -> WinUI.ElementTheme { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualTheme(pThis, &value)) + } + return value + } + + internal func add_LoadedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Loaded(pThis, _handler, &token)) + } + return token + } + + internal func remove_LoadedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Loaded(pThis, token)) + } + } + + internal func add_UnloadedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Unloaded(pThis, _handler, &token)) + } + return token + } + + internal func remove_UnloadedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Unloaded(pThis, token)) + } + } + + internal func add_DataContextChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DataContextChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_DataContextChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DataContextChanged(pThis, token)) + } + } + + internal func add_SizeChangedImpl(_ handler: WinUI.SizeChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.SizeChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SizeChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SizeChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SizeChanged(pThis, token)) + } + } + + internal func add_LayoutUpdatedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_LayoutUpdated(pThis, _handler, &token)) + } + return token + } + + internal func remove_LayoutUpdatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LayoutUpdated(pThis, token)) + } + } + + internal func add_LoadingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Loading(pThis, _handler, &token)) + } + return token + } + + internal func remove_LoadingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Loading(pThis, token)) + } + } + + internal func add_ActualThemeChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ActualThemeChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ActualThemeChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ActualThemeChanged(pThis, token)) + } + } + + internal func add_EffectiveViewportChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_EffectiveViewportChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_EffectiveViewportChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_EffectiveViewportChanged(pThis, token)) + } + } + + internal func FindNameImpl(_ name: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindName(pThis, _name.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetBindingImpl(_ dp: WinUI.DependencyProperty?, _ binding: WinUI.BindingBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBinding(pThis, RawPointer(dp), RawPointer(binding))) + } + } + + internal func GetBindingExpressionImpl(_ dp: WinUI.DependencyProperty?) throws -> WinUI.BindingExpression? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBindingExpression(pThis, RawPointer(dp), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IFrameworkElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrameworkElement { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFrameworkElement(value!) + } + + } + + public class IFrameworkElementOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides } + + internal func MeasureOverrideImpl(_ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MeasureOverride(pThis, .from(swift: availableSize), &result)) + } + return .from(abi: result) + } + + internal func ArrangeOverrideImpl(_ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ArrangeOverride(pThis, .from(swift: finalSize), &result)) + } + return .from(abi: result) + } + + internal func OnApplyTemplateImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnApplyTemplate(pThis)) + } + } + + internal func GoToElementStateCoreImpl(_ stateName: String, _ useTransitions: Bool) throws -> Bool { + var result: boolean = 0 + let _stateName = try! HString(stateName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GoToElementStateCore(pThis, _stateName.get(), .init(from: useTransitions), &result)) + } + return .init(from: result) + } + + } + + public class IFrameworkElementProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected } + + internal func InvalidateViewportImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateViewport(pThis)) + } + } + + } + + public class IFrameworkElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics } + + internal func get_TagPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TagProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LanguagePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LanguageProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActualWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActualHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_WidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_WidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MarginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MarginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DataContextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataContextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusOnInteractionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteractionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusVisualMarginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualMarginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusVisualSecondaryThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusVisualPrimaryThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusVisualSecondaryBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualSecondaryBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusVisualPrimaryBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusVisualPrimaryBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusWhenDisabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FlowDirectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RequestedThemePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestedThemeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActualThemePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualThemeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func DeferTreeImpl(_ element: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.DeferTree(pThis, RawPointer(element))) + } + } + + } + + public class IFrameworkTemplate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate } + + } + + public class IFrameworkTemplateFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplateFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrameworkTemplate { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplateFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFrameworkTemplate(value!) + } + + } + + public class ILaunchActivatedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs } + + internal func get_ArgumentsImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Arguments(pThis, &value)) + } + return .init(from: value) + } + + internal func get_UWPLaunchActivatedEventArgsImpl() throws -> UWP.LaunchActivatedEventArgs? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UWPLaunchActivatedEventArgs(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPropertyMetadata: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata } + + internal func get_DefaultValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_CreateDefaultValueCallbackImpl() throws -> WinUI.CreateDefaultValueCallback? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CreateDefaultValueCallback(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper.unwrapFrom(abi: value) + } + + } + + public class IPropertyMetadataFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory } + + internal func CreateInstanceWithDefaultValueImpl(_ defaultValue: Any?, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPropertyMetadata { + let (value) = try ComPtrs.initialize { valueAbi in + let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue) + let _defaultValue = try! defaultValueWrapper?.toABI { $0 } + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDefaultValue(pThis, _defaultValue, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPropertyMetadata(value!) + } + + internal func CreateInstanceWithDefaultValueAndCallbackImpl(_ defaultValue: Any?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPropertyMetadata { + let (value) = try ComPtrs.initialize { valueAbi in + let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue) + let _defaultValue = try! defaultValueWrapper?.toABI { $0 } + let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback) + let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 } + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDefaultValueAndCallback(pThis, _defaultValue, _propertyChangedCallback, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPropertyMetadata(value!) + } + + } + + public class IPropertyMetadataStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics } + + internal func CreateWithDefaultValueImpl(_ defaultValue: Any?) throws -> WinUI.PropertyMetadata? { + let (result) = try ComPtrs.initialize { resultAbi in + let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue) + let _defaultValue = try! defaultValueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithDefaultValue(pThis, _defaultValue, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithDefaultValueAndCallbackImpl(_ defaultValue: Any?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?) throws -> WinUI.PropertyMetadata? { + let (result) = try ComPtrs.initialize { resultAbi in + let defaultValueWrapper = __ABI_.AnyWrapper(defaultValue) + let _defaultValue = try! defaultValueWrapper?.toABI { $0 } + let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback) + let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithDefaultValueAndCallback(pThis, _defaultValue, _propertyChangedCallback, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithFactoryImpl(_ createDefaultValueCallback: WinUI.CreateDefaultValueCallback?) throws -> WinUI.PropertyMetadata? { + let (result) = try ComPtrs.initialize { resultAbi in + let createDefaultValueCallbackWrapper = __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper(createDefaultValueCallback) + let _createDefaultValueCallback = try! createDefaultValueCallbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithFactory(pThis, _createDefaultValueCallback, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CreateWithFactoryAndCallbackImpl(_ createDefaultValueCallback: WinUI.CreateDefaultValueCallback?, _ propertyChangedCallback: WinUI.PropertyChangedCallback?) throws -> WinUI.PropertyMetadata? { + let (result) = try ComPtrs.initialize { resultAbi in + let createDefaultValueCallbackWrapper = __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackWrapper(createDefaultValueCallback) + let _createDefaultValueCallback = try! createDefaultValueCallbackWrapper?.toABI { $0 } + let propertyChangedCallbackWrapper = __ABI_Microsoft_UI_Xaml.PropertyChangedCallbackWrapper(propertyChangedCallback) + let _propertyChangedCallback = try! propertyChangedCallbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadataStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithFactoryAndCallback(pThis, _createDefaultValueCallback, _propertyChangedCallback, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IPropertyPath: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath } + + internal func get_PathImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IPropertyPathFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory } + + internal func CreateInstanceImpl(_ path: String) throws -> IPropertyPath { + let (value) = try ComPtrs.initialize { valueAbi in + let _path = try! HString(path) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPathFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _path.get(), &valueAbi)) + } + } + return IPropertyPath(value!) + } + + } + + public class IResourceDictionary: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary } + + internal func get_SourceImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + internal func get_MergedDictionariesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MergedDictionaries(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.unwrapFrom(abi: value) + } + + internal func get_ThemeDictionariesImpl() throws -> WindowsFoundation.AnyIMap? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ThemeDictionaries(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class IResourceDictionaryFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionaryFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IResourceDictionary { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionaryFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IResourceDictionary(value!) + } + + } + + public class IResourceManagerRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs } + + internal func get_CustomResourceManagerImpl() throws -> WinAppSDK.AnyIResourceManager? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CustomResourceManager(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper.unwrapFrom(abi: value) + } + + internal func put_CustomResourceManagerImpl(_ value: WinAppSDK.AnyIResourceManager?) throws { + let valueWrapper = __ABI_Microsoft_Windows_ApplicationModel_Resources.IResourceManagerWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CustomResourceManager(pThis, _value)) + } + } + + } + + public class IRoutedEvent: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEvent } + + } + + public class IRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs } + + internal func get_OriginalSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OriginalSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class IRoutedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRoutedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRoutedEventArgs(value!) + } + + } + + public class IScalarTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition } + + internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition.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_CXaml_CIScalarTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value))) + } + } + + } + + public class IScalarTransitionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransitionFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScalarTransition { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransitionFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScalarTransition(value!) + } + + } + + public class ISetter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetter } + + internal func get_PropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Property(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PropertyImpl(_ value: WinUI.DependencyProperty?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Property(pThis, RawPointer(value))) + } + } + + internal func get_ValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ValueImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value)) + } + } + + internal func get_TargetImpl() throws -> WinUI.TargetPropertyPath? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TargetImpl(_ value: WinUI.TargetPropertyPath?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, RawPointer(value))) + } + } + + } + + public class ISetterBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBase } + + internal func get_IsSealedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value)) + } + return .init(from: value) + } + + } + + public class ISetterBaseCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection } + + internal func get_IsSealedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value)) + } + return .init(from: value) + } + + } + + public class ISetterBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseFactory } + + } + + public class ISetterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory } + + internal func CreateInstanceImpl(_ targetProperty: WinUI.DependencyProperty?, _ value: Any?) throws -> ISetter { + let (instance) = try ComPtrs.initialize { instanceAbi in + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISetterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, RawPointer(targetProperty), _value, &instanceAbi)) + } + } + return ISetter(instance!) + } + + } + + public class ISizeChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs } + + internal func get_PreviousSizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NewSizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewSize(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyle } + + internal func get_IsSealedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSealed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_SettersImpl() throws -> WinUI.SetterBaseCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Setters(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TargetTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetType(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TargetTypeImpl(_ value: WinUI.TypeName) throws { + let _value = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetType(pThis, _value.val)) + } + } + + internal func get_BasedOnImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BasedOn(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BasedOnImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BasedOn(pThis, RawPointer(value))) + } + } + + internal func SealImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Seal(pThis)) + } + } + + } + + public class IStyleFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory } + + internal func CreateInstanceImpl(_ targetType: WinUI.TypeName) throws -> IStyle { + let (value) = try ComPtrs.initialize { valueAbi in + let _targetType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: targetType) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIStyleFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _targetType.val, &valueAbi)) + } + } + return IStyle(value!) + } + + } + + public class ITargetPropertyPath: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath } + + internal func get_PathImpl() throws -> WinUI.PropertyPath? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PathImpl(_ value: WinUI.PropertyPath?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Path(pThis, RawPointer(value))) + } + } + + internal func get_TargetImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_TargetImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, _value)) + } + } + + } + + public class ITargetPropertyPathFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory } + + internal func CreateInstanceImpl(_ targetProperty: WinUI.DependencyProperty?) throws -> ITargetPropertyPath { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPathFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, RawPointer(targetProperty), &valueAbi)) + } + } + return ITargetPropertyPath(value!) + } + + } + + public class ITriggerAction: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction } + + } + + public class ITriggerActionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerActionFactory } + + } + + public class ITriggerBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase } + + } + + public class ITriggerBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CITriggerBaseFactory } + + } + + public class IUIElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElement } + + internal func get_DesiredSizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_AllowDropImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowDrop(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowDropImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowDrop(pThis, .init(from: value))) + } + } + + internal func get_OpacityImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Opacity(pThis, &value)) + } + return value + } + + internal func put_OpacityImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Opacity(pThis, value)) + } + } + + internal func get_ClipImpl() throws -> WinUI.RectangleGeometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Clip(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ClipImpl(_ value: WinUI.RectangleGeometry?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Clip(pThis, RawPointer(value))) + } + } + + internal func get_RenderTransformImpl() throws -> WinUI.Transform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RenderTransformImpl(_ value: WinUI.Transform?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RenderTransform(pThis, RawPointer(value))) + } + } + + internal func get_ProjectionImpl() throws -> WinUI.Projection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Projection(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ProjectionImpl(_ value: WinUI.Projection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Projection(pThis, RawPointer(value))) + } + } + + internal func get_Transform3DImpl() throws -> WinUI.Transform3D? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform3D(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_Transform3DImpl(_ value: WinUI.Transform3D?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transform3D(pThis, RawPointer(value))) + } + } + + internal func get_RenderTransformOriginImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformOrigin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RenderTransformOriginImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RenderTransformOrigin(pThis, .from(swift: value))) + } + } + + internal func get_IsHitTestVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHitTestVisible(pThis, .init(from: value))) + } + } + + internal func get_VisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visibility(pThis, &value)) + } + return value + } + + internal func put_VisibilityImpl(_ value: WinUI.Visibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Visibility(pThis, value)) + } + } + + internal func get_RenderSizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_UseLayoutRoundingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseLayoutRounding(pThis, &value)) + } + return .init(from: value) + } + + internal func put_UseLayoutRoundingImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseLayoutRounding(pThis, .init(from: value))) + } + } + + internal func get_TransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transitions(pThis, RawPointer(value))) + } + } + + internal func get_CacheModeImpl() throws -> WinUI.CacheMode? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheMode(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CacheModeImpl(_ value: WinUI.CacheMode?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CacheMode(pThis, RawPointer(value))) + } + } + + internal func get_IsTapEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTapEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTapEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTapEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsDoubleTapEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDoubleTapEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsDoubleTapEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDoubleTapEnabled(pThis, .init(from: value))) + } + } + + internal func get_CanDragImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDrag(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanDragImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanDrag(pThis, .init(from: value))) + } + } + + internal func get_IsRightTapEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRightTapEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsRightTapEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsRightTapEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsHoldingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHoldingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHoldingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHoldingEnabled(pThis, .init(from: value))) + } + } + + internal func get_ManipulationModeImpl() throws -> WinUI.ManipulationModes { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationMode(pThis, &value)) + } + return value + } + + internal func put_ManipulationModeImpl(_ value: WinUI.ManipulationModes) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ManipulationMode(pThis, value)) + } + } + + internal func get_PointerCapturesImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCaptures(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.unwrapFrom(abi: value) + } + + internal func get_ContextFlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextFlyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContextFlyoutImpl(_ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContextFlyout(pThis, RawPointer(value))) + } + } + + internal func get_CompositeModeImpl() throws -> WinUI.ElementCompositeMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositeMode(pThis, &value)) + } + return value + } + + internal func put_CompositeModeImpl(_ value: WinUI.ElementCompositeMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompositeMode(pThis, value)) + } + } + + internal func get_LightsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Lights(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.unwrapFrom(abi: value) + } + + internal func get_CanBeScrollAnchorImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanBeScrollAnchor(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanBeScrollAnchorImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanBeScrollAnchor(pThis, .init(from: value))) + } + } + + internal func get_ExitDisplayModeOnAccessKeyInvokedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvoked(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExitDisplayModeOnAccessKeyInvokedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitDisplayModeOnAccessKeyInvoked(pThis, .init(from: value))) + } + } + + internal func get_IsAccessKeyScopeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScope(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsAccessKeyScopeImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsAccessKeyScope(pThis, .init(from: value))) + } + } + + internal func get_AccessKeyScopeOwnerImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwner(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AccessKeyScopeOwnerImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKeyScopeOwner(pThis, RawPointer(value))) + } + } + + internal func get_AccessKeyImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKey(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AccessKeyImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKey(pThis, _value.get())) + } + } + + internal func get_KeyTipPlacementModeImpl() throws -> WinUI.KeyTipPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementMode(pThis, &value)) + } + return value + } + + internal func put_KeyTipPlacementModeImpl(_ value: WinUI.KeyTipPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipPlacementMode(pThis, value)) + } + } + + internal func get_KeyTipHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_KeyTipHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipHorizontalOffset(pThis, value)) + } + } + + internal func get_KeyTipVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_KeyTipVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipVerticalOffset(pThis, value)) + } + } + + internal func get_KeyTipTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_KeyTipTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipTarget(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusKeyboardNavigationImpl() throws -> WinUI.XYFocusKeyboardNavigationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusKeyboardNavigation(pThis, &value)) + } + return value + } + + internal func put_XYFocusKeyboardNavigationImpl(_ value: WinUI.XYFocusKeyboardNavigationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusKeyboardNavigation(pThis, value)) + } + } + + internal func get_XYFocusUpNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusUpNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUpNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusDownNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusDownNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDownNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusLeftNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusLeftNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeftNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusRightNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusRightNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRightNavigationStrategy(pThis, value)) + } + } + + internal func get_KeyboardAcceleratorsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAccelerators(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.unwrapFrom(abi: value) + } + + internal func get_KeyboardAcceleratorPlacementTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_KeyboardAcceleratorPlacementTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyboardAcceleratorPlacementTarget(pThis, RawPointer(value))) + } + } + + internal func get_KeyboardAcceleratorPlacementModeImpl() throws -> WinUI.KeyboardAcceleratorPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardAcceleratorPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementMode(pThis, &value)) + } + return value + } + + internal func put_KeyboardAcceleratorPlacementModeImpl(_ value: WinUI.KeyboardAcceleratorPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyboardAcceleratorPlacementMode(pThis, value)) + } + } + + internal func get_HighContrastAdjustmentImpl() throws -> WinUI.ElementHighContrastAdjustment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustment(pThis, &value)) + } + return value + } + + internal func put_HighContrastAdjustmentImpl(_ value: WinUI.ElementHighContrastAdjustment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HighContrastAdjustment(pThis, value)) + } + } + + internal func get_TabFocusNavigationImpl() throws -> WinUI.KeyboardNavigationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabFocusNavigation(pThis, &value)) + } + return value + } + + internal func put_TabFocusNavigationImpl(_ value: WinUI.KeyboardNavigationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabFocusNavigation(pThis, value)) + } + } + + internal func get_OpacityTransitionImpl() throws -> WinUI.ScalarTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpacityTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OpacityTransitionImpl(_ value: WinUI.ScalarTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpacityTransition(pThis, RawPointer(value))) + } + } + + internal func get_TranslationImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Translation(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TranslationImpl(_ value: WindowsFoundation.Vector3) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Translation(pThis, .from(swift: value))) + } + } + + internal func get_TranslationTransitionImpl() throws -> WinUI.Vector3Transition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslationTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TranslationTransitionImpl(_ value: WinUI.Vector3Transition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TranslationTransition(pThis, RawPointer(value))) + } + } + + internal func get_RotationImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rotation(pThis, &value)) + } + return value + } + + internal func put_RotationImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rotation(pThis, value)) + } + } + + internal func get_RotationTransitionImpl() throws -> WinUI.ScalarTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RotationTransitionImpl(_ value: WinUI.ScalarTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationTransition(pThis, RawPointer(value))) + } + } + + internal func get_ScaleImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Scale(pThis, .from(swift: value))) + } + } + + internal func get_ScaleTransitionImpl() throws -> WinUI.Vector3Transition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ScaleTransitionImpl(_ value: WinUI.Vector3Transition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleTransition(pThis, RawPointer(value))) + } + } + + internal func get_TransformMatrixImpl() throws -> WindowsFoundation.Matrix4x4 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CMatrix4x4 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransformMatrix(pThis, .from(swift: value))) + } + } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterPoint(pThis, .from(swift: value))) + } + } + + internal func get_RotationAxisImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationAxis(pThis, .from(swift: value))) + } + } + + internal func get_ActualOffsetImpl() throws -> WindowsFoundation.Vector3 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector3 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualOffset(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ActualSizeImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualSize(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_XamlRootImpl() throws -> WinUI.XamlRoot? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XamlRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XamlRootImpl(_ value: WinUI.XamlRoot?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XamlRoot(pThis, RawPointer(value))) + } + } + + internal func get_ShadowImpl() throws -> WinUI.Shadow? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Shadow(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ShadowImpl(_ value: WinUI.Shadow?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Shadow(pThis, RawPointer(value))) + } + } + + internal func get_RasterizationScaleImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value)) + } + return value + } + + internal func put_RasterizationScaleImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RasterizationScale(pThis, value)) + } + } + + internal func get_FocusStateImpl() throws -> WinUI.FocusState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusState(pThis, &value)) + } + return value + } + + internal func get_UseSystemFocusVisualsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseSystemFocusVisuals(pThis, &value)) + } + return .init(from: value) + } + + internal func put_UseSystemFocusVisualsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseSystemFocusVisuals(pThis, .init(from: value))) + } + } + + internal func get_XYFocusLeftImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeft(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusLeftImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeft(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusRightImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRight(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusRightImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRight(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusUpImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUp(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusUpImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUp(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusDownImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDown(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusDownImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDown(pThis, RawPointer(value))) + } + } + + internal func get_IsTabStopImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStop(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTabStopImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTabStop(pThis, .init(from: value))) + } + } + + internal func get_TabIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndex(pThis, &value)) + } + return value + } + + internal func put_TabIndexImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabIndex(pThis, value)) + } + } + + internal func add_KeyUpImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyUp(pThis, token)) + } + } + + internal func add_KeyDownImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_KeyDown(pThis, token)) + } + } + + internal func add_GotFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token)) + } + } + + internal func add_LostFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LostFocus(pThis, token)) + } + } + + internal func add_DragStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragStarting(pThis, token)) + } + } + + internal func add_DropCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DropCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_DropCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DropCompleted(pThis, token)) + } + } + + internal func add_CharacterReceivedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CharacterReceived(pThis, token)) + } + } + + internal func add_DragEnterImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragEnter(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragEnterImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragEnter(pThis, token)) + } + } + + internal func add_DragLeaveImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragLeave(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragLeaveImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragLeave(pThis, token)) + } + } + + internal func add_DragOverImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragOver(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragOverImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragOver(pThis, token)) + } + } + + internal func add_DropImpl(_ handler: WinUI.DragEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.DragEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Drop(pThis, _handler, &token)) + } + return token + } + + internal func remove_DropImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Drop(pThis, token)) + } + } + + internal func add_PointerPressedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerPressed(pThis, token)) + } + } + + internal func add_PointerMovedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerMoved(pThis, token)) + } + } + + internal func add_PointerReleasedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerReleased(pThis, token)) + } + } + + internal func add_PointerEnteredImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerEntered(pThis, token)) + } + } + + internal func add_PointerExitedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerExited(pThis, token)) + } + } + + internal func add_PointerCaptureLostImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerCaptureLost(pThis, token)) + } + } + + internal func add_PointerCanceledImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PointerCanceled(pThis, _handler, &token)) + } + return token + } + + internal func remove_PointerCanceledImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerCanceled(pThis, token)) + } + } + + internal func add_PointerWheelChangedImpl(_ handler: WinUI.PointerEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PointerWheelChanged(pThis, token)) + } + } + + internal func add_TappedImpl(_ handler: WinUI.TappedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.TappedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Tapped(pThis, token)) + } + } + + internal func add_DoubleTappedImpl(_ handler: WinUI.DoubleTappedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.DoubleTappedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DoubleTapped(pThis, _handler, &token)) + } + return token + } + + internal func remove_DoubleTappedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DoubleTapped(pThis, token)) + } + } + + internal func add_HoldingImpl(_ handler: WinUI.HoldingEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.HoldingEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Holding(pThis, token)) + } + } + + internal func add_ContextRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextRequested(pThis, token)) + } + } + + internal func add_ContextCanceledImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextCanceled(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextCanceledImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextCanceled(pThis, token)) + } + } + + internal func add_RightTappedImpl(_ handler: WinUI.RightTappedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.RightTappedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_RightTapped(pThis, token)) + } + } + + internal func add_ManipulationStartingImpl(_ handler: WinUI.ManipulationStartingEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartingEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationStarting(pThis, token)) + } + } + + internal func add_ManipulationInertiaStartingImpl(_ handler: WinUI.ManipulationInertiaStartingEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationInertiaStartingEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationInertiaStarting(pThis, token)) + } + } + + internal func add_ManipulationStartedImpl(_ handler: WinUI.ManipulationStartedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationStarted(pThis, token)) + } + } + + internal func add_ManipulationDeltaImpl(_ handler: WinUI.ManipulationDeltaEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationDeltaEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ManipulationDelta(pThis, _handler, &token)) + } + return token + } + + internal func remove_ManipulationDeltaImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationDelta(pThis, token)) + } + } + + internal func add_ManipulationCompletedImpl(_ handler: WinUI.ManipulationCompletedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.ManipulationCompletedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.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_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ManipulationCompleted(pThis, token)) + } + } + + internal func add_AccessKeyDisplayRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyDisplayRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayRequested(pThis, token)) + } + } + + internal func add_AccessKeyDisplayDismissedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayDismissed(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyDisplayDismissedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayDismissed(pThis, token)) + } + } + + internal func add_AccessKeyInvokedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyInvoked(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyInvokedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyInvoked(pThis, token)) + } + } + + internal func add_ProcessKeyboardAcceleratorsImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ProcessKeyboardAccelerators(pThis, _handler, &token)) + } + return token + } + + internal func remove_ProcessKeyboardAcceleratorsImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ProcessKeyboardAccelerators(pThis, token)) + } + } + + internal func add_GettingFocusImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_GettingFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_GettingFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GettingFocus(pThis, token)) + } + } + + internal func add_LosingFocusImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_LosingFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_LosingFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LosingFocus(pThis, token)) + } + } + + internal func add_NoFocusCandidateFoundImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_NoFocusCandidateFound(pThis, _handler, &token)) + } + return token + } + + internal func remove_NoFocusCandidateFoundImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_NoFocusCandidateFound(pThis, token)) + } + } + + internal func add_PreviewKeyDownImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PreviewKeyDown(pThis, _handler, &token)) + } + return token + } + + internal func remove_PreviewKeyDownImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PreviewKeyDown(pThis, token)) + } + } + + internal func add_PreviewKeyUpImpl(_ handler: WinUI.KeyEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PreviewKeyUp(pThis, _handler, &token)) + } + return token + } + + internal func remove_PreviewKeyUpImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PreviewKeyUp(pThis, token)) + } + } + + internal func add_BringIntoViewRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_BringIntoViewRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_BringIntoViewRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BringIntoViewRequested(pThis, token)) + } + } + + internal func MeasureImpl(_ availableSize: WindowsFoundation.Size) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Measure(pThis, .from(swift: availableSize))) + } + } + + internal func ArrangeImpl(_ finalRect: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Arrange(pThis, .from(swift: finalRect))) + } + } + + internal func CapturePointerImpl(_ value: WinUI.Pointer?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CapturePointer(pThis, RawPointer(value), &result)) + } + return .init(from: result) + } + + internal func ReleasePointerCaptureImpl(_ value: WinUI.Pointer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ReleasePointerCapture(pThis, RawPointer(value))) + } + } + + internal func ReleasePointerCapturesImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ReleasePointerCaptures(pThis)) + } + } + + internal func AddHandlerImpl(_ routedEvent: WinUI.RoutedEvent?, _ handler: Any?, _ handledEventsToo: Bool) throws { + let handlerWrapper = __ABI_.AnyWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddHandler(pThis, RawPointer(routedEvent), _handler, .init(from: handledEventsToo))) + } + } + + internal func RemoveHandlerImpl(_ routedEvent: WinUI.RoutedEvent?, _ handler: Any?) throws { + let handlerWrapper = __ABI_.AnyWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveHandler(pThis, RawPointer(routedEvent), _handler)) + } + } + + internal func TransformToVisualImpl(_ visual: WinUI.UIElement?) throws -> WinUI.GeneralTransform? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TransformToVisual(pThis, RawPointer(visual), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func InvalidateMeasureImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateMeasure(pThis)) + } + } + + internal func InvalidateArrangeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateArrange(pThis)) + } + } + + internal func UpdateLayoutImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UpdateLayout(pThis)) + } + } + + internal func CancelDirectManipulationsImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CancelDirectManipulations(pThis, &result)) + } + return .init(from: result) + } + + internal func StartDragAsyncImpl(_ pointerPoint: WinAppSDK.PointerPoint?) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartDragAsync(pThis, RawPointer(pointerPoint), &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.unwrapFrom(abi: operation) + } + + internal func StartBringIntoViewImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartBringIntoView(pThis)) + } + } + + internal func StartBringIntoViewWithOptionsImpl(_ options: WinUI.BringIntoViewOptions?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartBringIntoViewWithOptions(pThis, RawPointer(options))) + } + } + + internal func TryInvokeKeyboardAcceleratorImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryInvokeKeyboardAccelerator(pThis, RawPointer(args))) + } + } + + internal func FocusImpl(_ value: WinUI.FocusState) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Focus(pThis, value, &result)) + } + return .init(from: result) + } + + internal func StartAnimationImpl(_ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAnimation(pThis, _animation)) + } + } + + internal func StopAnimationImpl(_ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StopAnimation(pThis, _animation)) + } + } + + } + + public class IUIElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementFactory } + + } + + public class IUIElementOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides } + + internal func OnCreateAutomationPeerImpl() throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnCreateAutomationPeer(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func OnDisconnectVisualChildrenImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDisconnectVisualChildren(pThis)) + } + } + + internal func FindSubElementsForTouchTargetingImpl(_ point: WindowsFoundation.Point, _ boundingRect: WindowsFoundation.Rect) throws -> WindowsFoundation.AnyIIterable?>? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindSubElementsForTouchTargeting(pThis, .from(swift: point), .from(swift: boundingRect), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result) + } + + internal func GetChildrenInTabFocusOrderImpl() throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildrenInTabFocusOrder(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + + internal func OnKeyboardAcceleratorInvokedImpl(_ args: WinUI.KeyboardAcceleratorInvokedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnKeyboardAcceleratorInvoked(pThis, RawPointer(args))) + } + } + + internal func OnProcessKeyboardAcceleratorsImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnProcessKeyboardAccelerators(pThis, RawPointer(args))) + } + } + + internal func OnBringIntoViewRequestedImpl(_ e: WinUI.BringIntoViewRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnBringIntoViewRequested(pThis, RawPointer(e))) + } + } + + internal func PopulatePropertyInfoOverrideImpl(_ propertyName: String, _ animationPropertyInfo: WinAppSDK.AnimationPropertyInfo?) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PopulatePropertyInfoOverride(pThis, _propertyName.get(), RawPointer(animationPropertyInfo))) + } + } + + } + + public class IUIElementProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected } + + internal func get_ProtectedCursorImpl() throws -> WinAppSDK.InputCursor? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProtectedCursor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ProtectedCursorImpl(_ value: WinAppSDK.InputCursor?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ProtectedCursor(pThis, RawPointer(value))) + } + } + + } + + public class IUIElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics } + + internal func get_KeyDownEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyDownEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyUpEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyUpEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerEnteredEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerEnteredEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerPressedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerPressedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerMovedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerMovedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerReleasedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerReleasedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerExitedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerExitedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerCaptureLostEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCaptureLostEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerCanceledEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCanceledEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerWheelChangedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerWheelChangedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TappedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TappedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DoubleTappedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DoubleTappedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HoldingEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HoldingEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RightTappedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightTappedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationStartingEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationStartingEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationInertiaStartingEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationInertiaStartingEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationStartedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationStartedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationDeltaEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationDeltaEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationCompletedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationCompletedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragEnterEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragEnterEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragLeaveEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragLeaveEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragOverEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragOverEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DropEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_GettingFocusEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GettingFocusEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LosingFocusEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LosingFocusEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NoFocusCandidateFoundEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NoFocusCandidateFoundEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreviewKeyDownEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviewKeyDownEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterReceivedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterReceivedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreviewKeyUpEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviewKeyUpEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BringIntoViewRequestedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewRequestedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContextRequestedEventImpl() throws -> WinUI.RoutedEvent? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextRequestedEvent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowDropPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowDropProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpacityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpacityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClipPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClipProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RenderTransformPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ProjectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProjectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_Transform3DPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform3DProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RenderTransformOriginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RenderTransformOriginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsHitTestVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHitTestVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_UseLayoutRoundingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseLayoutRoundingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CacheModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTapEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsDoubleTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDoubleTapEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanDragPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsRightTapEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRightTapEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsHoldingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHoldingEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ManipulationModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ManipulationModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PointerCapturesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerCapturesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContextFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContextFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CompositeModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositeModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanBeScrollAnchorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanBeScrollAnchorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitDisplayModeOnAccessKeyInvokedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvokedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsAccessKeyScopePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScopeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AccessKeyScopeOwnerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwnerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AccessKeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipPlacementModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusKeyboardNavigationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusKeyboardNavigationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusUpNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusDownNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusLeftNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusRightNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyboardAcceleratorPlacementTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyboardAcceleratorPlacementModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorPlacementModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HighContrastAdjustmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HighContrastAdjustmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TabFocusNavigationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabFocusNavigationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShadowPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShadowProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusStatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusStateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_UseSystemFocusVisualsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseSystemFocusVisualsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusLeftPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusRightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusUpPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusDownPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTabStopPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStopProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TabIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func TryStartDirectManipulationImpl(_ value: WinUI.Pointer?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryStartDirectManipulation(pThis, RawPointer(value), &result)) + } + return .init(from: result) + } + + internal func RegisterAsScrollPortImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAsScrollPort(pThis, RawPointer(element))) + } + } + + } + + public class IUIElementWeakCollectionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUIElementWeakCollectionFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVectorUIElement { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementWeakCollectionFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IVectorUIElement(value!) + } + + } + + public class IUnhandledExceptionEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs } + + internal func get_ExceptionImpl() throws -> HRESULT { + var value: HRESULT = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exception(pThis, &value)) + } + return value + } + + internal func get_MessageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value)) + } + return .init(from: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs.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_CXaml_CIUnhandledExceptionEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IVector3Transition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition } + + internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.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_CXaml_CIVector3Transition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value))) + } + } + + internal func get_ComponentsImpl() throws -> WinUI.Vector3TransitionComponents { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Components(pThis, &value)) + } + return value + } + + internal func put_ComponentsImpl(_ value: WinUI.Vector3TransitionComponents) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Components(pThis, value)) + } + } + + } + + public class IVector3TransitionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIVector3TransitionFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVector3Transition { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIVector3TransitionFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IVector3Transition(value!) + } + + } + + public class IWindow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow } + + internal func get_BoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounds(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_VisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visible(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_CoreWindowImpl() throws -> UWP.CoreWindow? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CoreWindow(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CompositorImpl() throws -> WinAppSDK.Compositor? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Compositor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DispatcherImpl() throws -> UWP.CoreDispatcher? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Dispatcher(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DispatcherQueueImpl() throws -> WinAppSDK.DispatcherQueue? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DispatcherQueue(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.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_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get())) + } + } + + internal func get_ExtendsContentIntoTitleBarImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.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_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExtendsContentIntoTitleBar(pThis, .init(from: value))) + } + } + + internal func add_ActivatedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.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_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Activated(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + internal func add_SizeChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SizeChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SizeChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SizeChanged(pThis, token)) + } + } + + internal func add_VisibilityChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_VisibilityChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_VisibilityChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_VisibilityChanged(pThis, token)) + } + } + + internal func ActivateImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Activate(pThis)) + } + } + + internal func CloseImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Close(pThis)) + } + } + + internal func SetTitleBarImpl(_ titleBar: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTitleBar(pThis, RawPointer(titleBar))) + } + } + + } + + public class IWindow2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindow2 } + + internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SystemBackdropImpl(_ value: WinUI.SystemBackdrop?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value))) + } + } + + internal func get_AppWindowImpl() throws -> WinAppSDK.AppWindow? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindow2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AppWindow(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IWindowActivatedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs.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_CXaml_CIWindowActivatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_WindowActivationStateImpl() throws -> WinUI.WindowActivationState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_WindowActivationState(pThis, &value)) + } + return value + } + + } + + public class IWindowEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs.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_CXaml_CIWindowEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IWindowFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IWindow { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IWindow(value!) + } + + } + + public class IWindowSizeChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs.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_CXaml_CIWindowSizeChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IWindowStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics } + + internal func get_CurrentImpl() throws -> WinUI.Window? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IWindowVisibilityChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs.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_CXaml_CIWindowVisibilityChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_VisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Visible(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IXamlResourceReferenceFailedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs } + + internal func get_MessageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IXamlRoot: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SizeImpl() throws -> WindowsFoundation.Size { + var value: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_RasterizationScaleImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizationScale(pThis, &value)) + } + return value + } + + internal func get_IsHostVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHostVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func add_ChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot.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_CXaml_CIXamlRoot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Changed(pThis, token)) + } + } + + } + + public class IXamlRoot2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2 } + + internal func get_ContentIslandEnvironmentImpl() throws -> WinAppSDK.ContentIslandEnvironment? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentIslandEnvironment(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IXamlRootChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIXamlRootChangedEventArgs } + + } + + internal typealias IApplicationOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IApplicationOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverridesVtbl = .init( + QueryInterface: { IApplicationOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IApplicationOverridesWrapper.addRef($0) }, + Release: { IApplicationOverridesWrapper.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_Xaml.IApplicationOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IApplicationOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnLaunched: { + do { + guard let __unwrapped__instance = IApplicationOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.LaunchActivatedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onLaunched(args) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IFrameworkElementOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IFrameworkElementOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverridesVtbl = .init( + QueryInterface: { IFrameworkElementOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IFrameworkElementOverridesWrapper.addRef($0) }, + Release: { IFrameworkElementOverridesWrapper.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_Xaml.IFrameworkElementOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + MeasureOverride: { + do { + guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let availableSize: WindowsFoundation.Size = .from(abi: $1) + let result = try __unwrapped__instance.measureOverride(availableSize) + $2?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ArrangeOverride: { + do { + guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let finalSize: WindowsFoundation.Size = .from(abi: $1) + let result = try __unwrapped__instance.arrangeOverride(finalSize) + $2?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnApplyTemplate: { + do { + guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onApplyTemplate() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GoToElementStateCore: { + do { + guard let __unwrapped__instance = IFrameworkElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let stateName: String = .init(from: $1) + let useTransitions: Bool = .init(from: $2) + let result = try __unwrapped__instance.goToElementStateCore(stateName, useTransitions) + $3?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IUIElementOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IUIElementOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverridesVtbl = .init( + QueryInterface: { IUIElementOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IUIElementOverridesWrapper.addRef($0) }, + Release: { IUIElementOverridesWrapper.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_Xaml.IUIElementOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnCreateAutomationPeer: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.onCreateAutomationPeer() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDisconnectVisualChildren: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onDisconnectVisualChildren() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + FindSubElementsForTouchTargeting: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let point: WindowsFoundation.Point = .from(abi: $1) + let boundingRect: WindowsFoundation.Rect = .from(abi: $2) + let result = try __unwrapped__instance.findSubElementsForTouchTargeting(point, boundingRect) + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper(result) + resultWrapper?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetChildrenInTabFocusOrder: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getChildrenInTabFocusOrder() + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnKeyboardAcceleratorInvoked: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.KeyboardAcceleratorInvokedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onKeyboardAcceleratorInvoked(args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnProcessKeyboardAccelerators: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.ProcessKeyboardAcceleratorEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onProcessKeyboardAccelerators(args) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnBringIntoViewRequested: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.BringIntoViewRequestedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onBringIntoViewRequested(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + PopulatePropertyInfoOverride: { + do { + guard let __unwrapped__instance = IUIElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let propertyName: String = .init(from: $1) + let animationPropertyInfo: WinAppSDK.AnimationPropertyInfo? = .from(abi: ComPtr($2)) + try __unwrapped__instance.populatePropertyInfoOverride(propertyName, animationPropertyInfo) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius { + public static func from(swift: WinUI.CornerRadius) -> __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius { + .init(TopLeft: swift.topLeft, TopRight: swift.topRight, BottomRight: swift.bottomRight, BottomLeft: swift.bottomLeft) + } + } + extension __x_ABI_CMicrosoft_CUI_CXaml_CDuration { + public static func from(swift: WinUI.Duration) -> __x_ABI_CMicrosoft_CUI_CXaml_CDuration { + .init(TimeSpan: .from(swift: swift.timeSpan), Type: swift.type) + } + } + extension __x_ABI_CMicrosoft_CUI_CXaml_CGridLength { + public static func from(swift: WinUI.GridLength) -> __x_ABI_CMicrosoft_CUI_CXaml_CGridLength { + .init(Value: swift.value, GridUnitType: swift.gridUnitType) + } + } + extension __x_ABI_CMicrosoft_CUI_CXaml_CThickness { + public static func from(swift: WinUI.Thickness) -> __x_ABI_CMicrosoft_CUI_CXaml_CThickness { + .init(Left: swift.left, Top: swift.top, Right: swift.right, Bottom: swift.bottom) + } + } + extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IApplicationOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IUIElementOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +// MARK - ApplicationInitializationCallback +extension __ABI_Microsoft_UI_Xaml { + public class ApplicationInitializationCallback: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback } + + open func InvokeImpl(_ p: WinUI.ApplicationInitializationCallbackParams?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(p))) + } + } + + } + + + typealias ApplicationInitializationCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.ApplicationInitializationCallbackBridge> + internal static var ApplicationInitializationCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackVtbl = .init( + QueryInterface: { ApplicationInitializationCallbackWrapper.queryInterface($0, $1, $2) }, + AddRef: { ApplicationInitializationCallbackWrapper.addRef($0) }, + Release: { ApplicationInitializationCallbackWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ApplicationInitializationCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let p: WinUI.ApplicationInitializationCallbackParams? = .from(abi: ComPtr($1)) + __unwrapped__instance(p) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.ApplicationInitializationCallbackVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - BindingFailedEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class BindingFailedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.BindingFailedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias BindingFailedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.BindingFailedEventHandlerBridge> + internal static var BindingFailedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandlerVtbl = .init( + QueryInterface: { BindingFailedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { BindingFailedEventHandlerWrapper.addRef($0) }, + Release: { BindingFailedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = BindingFailedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.BindingFailedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.BindingFailedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - CreateDefaultValueCallback +extension __ABI_Microsoft_UI_Xaml { + public class CreateDefaultValueCallback: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback } + + open func InvokeImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + } + + + typealias CreateDefaultValueCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.CreateDefaultValueCallbackBridge> + internal static var CreateDefaultValueCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallbackVtbl = .init( + QueryInterface: { CreateDefaultValueCallbackWrapper.queryInterface($0, $1, $2) }, + AddRef: { CreateDefaultValueCallbackWrapper.addRef($0) }, + Release: { CreateDefaultValueCallbackWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = CreateDefaultValueCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance() + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.CreateDefaultValueCallbackVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - DependencyPropertyChangedCallback +extension __ABI_Microsoft_UI_Xaml { + public class DependencyPropertyChangedCallback: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback } + + open func InvokeImpl(_ sender: WinUI.DependencyObject?, _ dp: WinUI.DependencyProperty?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(sender), RawPointer(dp))) + } + } + + } + + + typealias DependencyPropertyChangedCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackBridge> + internal static var DependencyPropertyChangedCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallbackVtbl = .init( + QueryInterface: { DependencyPropertyChangedCallbackWrapper.queryInterface($0, $1, $2) }, + AddRef: { DependencyPropertyChangedCallbackWrapper.addRef($0) }, + Release: { DependencyPropertyChangedCallbackWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DependencyPropertyChangedCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let dp: WinUI.DependencyProperty? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, dp) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DependencyPropertyChangedCallbackVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - DependencyPropertyChangedEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class DependencyPropertyChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.DependencyPropertyChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias DependencyPropertyChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandlerBridge> + internal static var DependencyPropertyChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandlerVtbl = .init( + QueryInterface: { DependencyPropertyChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DependencyPropertyChangedEventHandlerWrapper.addRef($0) }, + Release: { DependencyPropertyChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DependencyPropertyChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.DependencyPropertyChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - DragEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class DragEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.DragEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias DragEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.DragEventHandlerBridge> + internal static var DragEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandlerVtbl = .init( + QueryInterface: { DragEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DragEventHandlerWrapper.addRef($0) }, + Release: { DragEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DragEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.DragEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.DragEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ExceptionRoutedEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class ExceptionRoutedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ExceptionRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ExceptionRoutedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerBridge> + internal static var ExceptionRoutedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandlerVtbl = .init( + QueryInterface: { ExceptionRoutedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ExceptionRoutedEventHandlerWrapper.addRef($0) }, + Release: { ExceptionRoutedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ExceptionRoutedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ExceptionRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - PropertyChangedCallback +extension __ABI_Microsoft_UI_Xaml { + public class PropertyChangedCallback: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback } + + open func InvokeImpl(_ d: WinUI.DependencyObject?, _ e: WinUI.DependencyPropertyChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, RawPointer(d), RawPointer(e))) + } + } + + } + + + typealias PropertyChangedCallbackWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.PropertyChangedCallbackBridge> + internal static var PropertyChangedCallbackVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallbackVtbl = .init( + QueryInterface: { PropertyChangedCallbackWrapper.queryInterface($0, $1, $2) }, + AddRef: { PropertyChangedCallbackWrapper.addRef($0) }, + Release: { PropertyChangedCallbackWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = PropertyChangedCallbackWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let d: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let e: WinUI.DependencyPropertyChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(d, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.PropertyChangedCallbackVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - RoutedEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class RoutedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.RoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias RoutedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.RoutedEventHandlerBridge> + internal static var RoutedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandlerVtbl = .init( + QueryInterface: { RoutedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { RoutedEventHandlerWrapper.addRef($0) }, + Release: { RoutedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = RoutedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.RoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.RoutedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - SizeChangedEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class SizeChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.SizeChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias SizeChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.SizeChangedEventHandlerBridge> + internal static var SizeChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandlerVtbl = .init( + QueryInterface: { SizeChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { SizeChangedEventHandlerWrapper.addRef($0) }, + Release: { SizeChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = SizeChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.SizeChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.SizeChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - UnhandledExceptionEventHandler +extension __ABI_Microsoft_UI_Xaml { + public class UnhandledExceptionEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.UnhandledExceptionEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias UnhandledExceptionEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerBridge> + internal static var UnhandledExceptionEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandlerVtbl = .init( + QueryInterface: { UnhandledExceptionEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { UnhandledExceptionEventHandlerWrapper.addRef($0) }, + Release: { UnhandledExceptionEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = UnhandledExceptionEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.UnhandledExceptionEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.UnhandledExceptionEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml+Impl.swift new file mode 100644 index 0000000..a072a3a --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml+Impl.swift @@ -0,0 +1,237 @@ +// 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_Xaml { + public enum IDataTemplateExtensionBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplateExtension + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDataTemplateExtension + public typealias SwiftProjection = AnyIDataTemplateExtension + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IDataTemplateExtensionImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IDataTemplateExtensionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IDataTemplateExtensionImpl: IDataTemplateExtension, WinRTAbiImpl { + fileprivate typealias Bridge = IDataTemplateExtensionBridge + 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.xaml.idatatemplateextension.resettemplate) + fileprivate func resetTemplate() throws { + try _default.ResetTemplateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension.processbinding) + fileprivate func processBinding(_ phase: UInt32) throws -> Bool { + try _default.ProcessBindingImpl(phase) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension.processbindings) + fileprivate func processBindings(_ arg: WinUI.ContainerContentChangingEventArgs!) throws -> Int32 { + try _default.ProcessBindingsImpl(arg) + } + + } + + public enum IElementFactoryBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactory + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IElementFactory + public typealias SwiftProjection = AnyIElementFactory + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IElementFactoryImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml.IElementFactoryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IElementFactoryImpl: IElementFactory, WinRTAbiImpl { + fileprivate typealias Bridge = IElementFactoryBridge + 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.xaml.ielementfactory.getelement) + fileprivate func getElement(_ args: ElementFactoryGetArgs!) throws -> UIElement! { + try _default.GetElementImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ielementfactory.recycleelement) + fileprivate func recycleElement(_ args: ElementFactoryRecycleArgs!) throws { + try _default.RecycleElementImpl(args) + } + + } + + public class ApplicationInitializationCallbackBridge : WinRTDelegateBridge { + public typealias Handler = ApplicationInitializationCallback + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallback + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ApplicationInitializationCallback + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (p) in + try! _default.InvokeImpl(p) + } + return handler + } + } + public class BindingFailedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = BindingFailedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.BindingFailedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class CreateDefaultValueCallbackBridge : WinRTDelegateBridge { + public typealias Handler = CreateDefaultValueCallback + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CICreateDefaultValueCallback + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.CreateDefaultValueCallback + + 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 + } + } + public class DependencyPropertyChangedCallbackBridge : WinRTDelegateBridge { + public typealias Handler = DependencyPropertyChangedCallback + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedCallback + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.DependencyPropertyChangedCallback + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, dp) in + try! _default.InvokeImpl(sender, dp) + } + return handler + } + } + public class DependencyPropertyChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DependencyPropertyChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class DragEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DragEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.DragEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ExceptionRoutedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ExceptionRoutedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ExceptionRoutedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class PropertyChangedCallbackBridge : WinRTDelegateBridge { + public typealias Handler = PropertyChangedCallback + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyChangedCallback + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.PropertyChangedCallback + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (d, e) in + try! _default.InvokeImpl(d, e) + } + return handler + } + } + public class RoutedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = RoutedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.RoutedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class SizeChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = SizeChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.SizeChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class UnhandledExceptionEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = UnhandledExceptionEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml.UnhandledExceptionEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+ABI.swift new file mode 100644 index 0000000..9be21bf --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+ABI.swift @@ -0,0 +1,789 @@ +// 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_CXaml_CAutomation_CIAutomationAnnotation: WindowsFoundation.IID { + .init(Data1: 0xC2CC46AD, Data2: 0x1414, Data3: 0x5F1B, Data4: ( 0x80,0x8A,0x89,0xE5,0xD5,0x3D,0x82,0xFE ))// C2CC46AD-1414-5F1B-808A-89E5D53D82FE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationFactory: WindowsFoundation.IID { + .init(Data1: 0x95F82773, Data2: 0xEAC5, Data3: 0x572E, Data4: ( 0x87,0xDE,0x24,0xD9,0x51,0x4B,0x9A,0x89 ))// 95F82773-EAC5-572E-87DE-24D9514B9A89 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationStatics: WindowsFoundation.IID { + .init(Data1: 0xC5ABDC1E, Data2: 0xFC26, Data3: 0x5444, Data4: ( 0xA8,0xB3,0x59,0xB2,0xC0,0xA9,0x55,0x78 ))// C5ABDC1E-FC26-5444-A8B3-59B2C0A95578 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperties: WindowsFoundation.IID { + .init(Data1: 0x525C6A71, Data2: 0xDD8A, Data3: 0x52A0, Data4: ( 0x97,0x7B,0xDB,0x1B,0x02,0xF8,0xE8,0x96 ))// 525C6A71-DD8A-52A0-977B-DB1B02F8E896 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics: WindowsFoundation.IID { + .init(Data1: 0xB1E3E0F3, Data2: 0x112F, Data3: 0x5966, Data4: ( 0x87,0xDC,0x78,0x62,0xD4,0xAD,0x50,0xE5 ))// B1E3E0F3-112F-5966-87DC-7862D4AD50E5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics2: WindowsFoundation.IID { + .init(Data1: 0xD933A3ED, Data2: 0xE90A, Data3: 0x5DF0, Data4: ( 0x85,0x3D,0xCA,0xD1,0x7A,0x0B,0x9E,0xC8 ))// D933A3ED-E90A-5DF0-853D-CAD17A0B9EC8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperty: WindowsFoundation.IID { + .init(Data1: 0x5CA6B2C8, Data2: 0xFF86, Data3: 0x5A41, Data4: ( 0xAA,0x18,0x69,0x48,0xFA,0xE5,0x92,0xCF ))// 5CA6B2C8-FF86-5A41-AA18-6948FAE592CF +} + +public enum __ABI_Microsoft_UI_Xaml_Automation { + public class IAutomationAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation } + + internal func get_TypeImpl() throws -> WinUI.AnnotationType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Type(pThis, &value)) + } + return value + } + + internal func put_TypeImpl(_ value: WinUI.AnnotationType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Type(pThis, value)) + } + } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ElementImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Element(pThis, RawPointer(value))) + } + } + + } + + public class IAutomationAnnotationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationFactory } + + internal func CreateInstanceImpl(_ type: WinUI.AnnotationType) throws -> IAutomationAnnotation { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, type, &valueAbi)) + } + } + return IAutomationAnnotation(value!) + } + + internal func CreateWithElementParameterImpl(_ type: WinUI.AnnotationType, _ element: WinUI.UIElement?) throws -> IAutomationAnnotation { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithElementParameter(pThis, type, RawPointer(element), &valueAbi)) + } + } + return IAutomationAnnotation(value!) + } + + } + + public class IAutomationAnnotationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationStatics } + + internal func get_TypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IAutomationProperties: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperties } + + } + + public class IAutomationPropertiesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics } + + internal func get_AcceleratorKeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AcceleratorKeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAcceleratorKeyImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAcceleratorKey(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAcceleratorKeyImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAcceleratorKey(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_AccessKeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAccessKeyImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessKey(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAccessKeyImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAccessKey(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_AutomationIdPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutomationIdProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAutomationIdImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationId(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAutomationIdImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAutomationId(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_HelpTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HelpTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetHelpTextImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHelpText(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetHelpTextImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetHelpText(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_IsRequiredForFormPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRequiredForFormProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsRequiredForFormImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsRequiredForForm(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsRequiredForFormImpl(_ element: WinUI.DependencyObject?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsRequiredForForm(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_ItemStatusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemStatusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetItemStatusImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemStatus(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetItemStatusImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetItemStatus(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_ItemTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetItemTypeImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemType(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetItemTypeImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetItemType(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_LabeledByPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LabeledByProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLabeledByImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLabeledBy(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetLabeledByImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLabeledBy(pThis, RawPointer(element), RawPointer(value))) + } + } + + internal func get_NamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetNameImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetName(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetNameImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetName(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_LiveSettingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LiveSettingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLiveSettingImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.AutomationLiveSetting { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLiveSetting(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetLiveSettingImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.AutomationLiveSetting) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLiveSetting(pThis, RawPointer(element), value)) + } + } + + internal func get_AccessibilityViewPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessibilityViewProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAccessibilityViewImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.AccessibilityView { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAccessibilityView = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessibilityView(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetAccessibilityViewImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.AccessibilityView) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAccessibilityView(pThis, RawPointer(element), value)) + } + } + + internal func get_ControlledPeersPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ControlledPeersProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetControlledPeersImpl(_ element: WinUI.DependencyObject?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetControlledPeers(pThis, RawPointer(element), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func get_PositionInSetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PositionInSetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetPositionInSetImpl(_ element: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionInSet(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetPositionInSetImpl(_ element: WinUI.DependencyObject?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPositionInSet(pThis, RawPointer(element), value)) + } + } + + internal func get_SizeOfSetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SizeOfSetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetSizeOfSetImpl(_ element: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetSizeOfSet(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetSizeOfSetImpl(_ element: WinUI.DependencyObject?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSizeOfSet(pThis, RawPointer(element), value)) + } + } + + internal func get_LevelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LevelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLevelImpl(_ element: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLevel(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetLevelImpl(_ element: WinUI.DependencyObject?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLevel(pThis, RawPointer(element), value)) + } + } + + internal func get_AnnotationsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnnotationsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAnnotationsImpl(_ element: WinUI.DependencyObject?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnnotations(pThis, RawPointer(element), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.unwrapFrom(abi: result) + } + + internal func get_LandmarkTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LandmarkTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLandmarkTypeImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.AutomationLandmarkType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLandmarkType(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetLandmarkTypeImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.AutomationLandmarkType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLandmarkType(pThis, RawPointer(element), value)) + } + } + + internal func get_LocalizedLandmarkTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LocalizedLandmarkTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLocalizedLandmarkTypeImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedLandmarkType(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetLocalizedLandmarkTypeImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLocalizedLandmarkType(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_IsPeripheralPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPeripheralProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsPeripheralImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsPeripheral(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsPeripheralImpl(_ element: WinUI.DependencyObject?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsPeripheral(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_IsDataValidForFormPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDataValidForFormProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsDataValidForFormImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsDataValidForForm(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsDataValidForFormImpl(_ element: WinUI.DependencyObject?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsDataValidForForm(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_FullDescriptionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FullDescriptionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetFullDescriptionImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFullDescription(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetFullDescriptionImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetFullDescription(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_LocalizedControlTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LocalizedControlTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLocalizedControlTypeImpl(_ element: WinUI.DependencyObject?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedControlType(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetLocalizedControlTypeImpl(_ element: WinUI.DependencyObject?, _ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLocalizedControlType(pThis, RawPointer(element), _value.get())) + } + } + + internal func get_DescribedByPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DescribedByProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetDescribedByImpl(_ element: WinUI.DependencyObject?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDescribedBy(pThis, RawPointer(element), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + + internal func get_FlowsToPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowsToProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetFlowsToImpl(_ element: WinUI.DependencyObject?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsTo(pThis, RawPointer(element), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + + internal func get_FlowsFromPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowsFromProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetFlowsFromImpl(_ element: WinUI.DependencyObject?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsFrom(pThis, RawPointer(element), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + + internal func get_CulturePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CultureProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetCultureImpl(_ element: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCulture(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetCultureImpl(_ element: WinUI.DependencyObject?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetCulture(pThis, RawPointer(element), value)) + } + } + + internal func get_HeadingLevelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeadingLevelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetHeadingLevelImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.AutomationHeadingLevel { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHeadingLevel(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetHeadingLevelImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.AutomationHeadingLevel) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetHeadingLevel(pThis, RawPointer(element), value)) + } + } + + internal func get_IsDialogPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDialogProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsDialogImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsDialog(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsDialogImpl(_ element: WinUI.DependencyObject?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsDialog(pThis, RawPointer(element), .init(from: value))) + } + } + + } + + public class IAutomationPropertiesStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics2 } + + internal func get_AutomationControlTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutomationControlTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAutomationControlTypeImpl(_ element: WinUI.UIElement?) throws -> WinUI.AutomationControlType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationControlType(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetAutomationControlTypeImpl(_ element: WinUI.UIElement?, _ value: WinUI.AutomationControlType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationPropertiesStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAutomationControlType(pThis, RawPointer(element), value)) + } + } + + } + + public class IAutomationProperty: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperty } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+Impl.swift new file mode 100644 index 0000000..aa89318 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation+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_Xaml_Automation { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+ABI.swift new file mode 100644 index 0000000..3becb7e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+ABI.swift @@ -0,0 +1,1482 @@ +// 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_CXaml_CAutomation_CPeers_CIAutomationPeer: WindowsFoundation.IID { + .init(Data1: 0xE51D3E4E, Data2: 0x34F0, Data3: 0x568C, Data4: ( 0x99,0x9F,0x62,0x77,0xE2,0xAF,0xE6,0xD7 ))// E51D3E4E-34F0-568C-999F-6277E2AFE6D7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation: WindowsFoundation.IID { + .init(Data1: 0x2738B92A, Data2: 0x2528, Data3: 0x5B63, Data4: ( 0x97,0x3D,0xD2,0x9E,0xB0,0x59,0x36,0x47 ))// 2738B92A-2528-5B63-973D-D29EB0593647 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory: WindowsFoundation.IID { + .init(Data1: 0x25A1A202, Data2: 0xBD68, Data3: 0x5D41, Data4: ( 0xA3,0x11,0xF8,0x4A,0xF9,0xC8,0xC4,0x40 ))// 25A1A202-BD68-5D41-A311-F84AF9C8C440 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics: WindowsFoundation.IID { + .init(Data1: 0xC46105D7, Data2: 0x8CA3, Data3: 0x50E3, Data4: ( 0xA1,0xBC,0xB6,0xBB,0x2F,0x9C,0xE1,0xCD ))// C46105D7-8CA3-50E3-A1BC-B6BB2F9CE1CD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerFactory: WindowsFoundation.IID { + .init(Data1: 0xA1AF86A0, Data2: 0x6EC6, Data3: 0x5BE2, Data4: ( 0x85,0x8F,0x72,0x80,0x8B,0xE6,0xFD,0xDD ))// A1AF86A0-6EC6-5BE2-858F-72808BE6FDDD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides: WindowsFoundation.IID { + .init(Data1: 0x44F8F6DF, Data2: 0x1B60, Data3: 0x512D, Data4: ( 0xA2,0x95,0xDD,0x8C,0x27,0x6C,0x46,0x18 ))// 44F8F6DF-1B60-512D-A295-DD8C276C4618 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected: WindowsFoundation.IID { + .init(Data1: 0x9663B2C3, Data2: 0x8C1F, Data3: 0x56D4, Data4: ( 0xAB,0xD9,0x26,0x80,0x82,0xA9,0xE8,0xBC ))// 9663B2C3-8C1F-56D4-ABD9-268082A9E8BC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics: WindowsFoundation.IID { + .init(Data1: 0x90B157FF, Data2: 0x18D5, Data3: 0x5623, Data4: ( 0x85,0x0C,0x61,0x2C,0xEA,0xE5,0x76,0xBD ))// 90B157FF-18D5-5623-850C-612CEAE576BD +} + +public enum __ABI_Microsoft_UI_Xaml_Automation_Peers { + public class IAutomationPeer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer } + + internal func get_EventsSourceImpl() throws -> WinUI.AutomationPeer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EventsSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EventsSourceImpl(_ value: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EventsSource(pThis, RawPointer(value))) + } + } + + internal func GetPatternImpl(_ patternInterface: WinUI.PatternInterface) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPattern(pThis, patternInterface, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func RaiseAutomationEventImpl(_ eventId: WinUI.AutomationEvents) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseAutomationEvent(pThis, eventId)) + } + } + + internal func RaisePropertyChangedEventImpl(_ automationProperty: WinUI.AutomationProperty?, _ oldValue: Any?, _ newValue: Any?) throws { + let oldValueWrapper = __ABI_.AnyWrapper(oldValue) + let _oldValue = try! oldValueWrapper?.toABI { $0 } + let newValueWrapper = __ABI_.AnyWrapper(newValue) + let _newValue = try! newValueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RaisePropertyChangedEvent(pThis, RawPointer(automationProperty), _oldValue, _newValue)) + } + } + + internal func GetAcceleratorKeyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAcceleratorKey(pThis, &result)) + } + return .init(from: result) + } + + internal func GetAccessKeyImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessKey(pThis, &result)) + } + return .init(from: result) + } + + internal func GetAutomationControlTypeImpl() throws -> WinUI.AutomationControlType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationControlType(pThis, &result)) + } + return result + } + + internal func GetAutomationIdImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationId(pThis, &result)) + } + return .init(from: result) + } + + internal func GetBoundingRectangleImpl() throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBoundingRectangle(pThis, &result)) + } + return .from(abi: result) + } + + internal func GetChildrenImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildren(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func NavigateImpl(_ direction: WinUI.AutomationNavigationDirection) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Navigate(pThis, direction, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetClassNameImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetClassName(pThis, &result)) + } + return .init(from: result) + } + + internal func GetClickablePointImpl() throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetClickablePoint(pThis, &result)) + } + return .from(abi: result) + } + + internal func GetHelpTextImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHelpText(pThis, &result)) + } + return .init(from: result) + } + + internal func GetItemStatusImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemStatus(pThis, &result)) + } + return .init(from: result) + } + + internal func GetItemTypeImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemType(pThis, &result)) + } + return .init(from: result) + } + + internal func GetLabeledByImpl() throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLabeledBy(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetLocalizedControlTypeImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedControlType(pThis, &result)) + } + return .init(from: result) + } + + internal func GetNameImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetName(pThis, &result)) + } + return .init(from: result) + } + + internal func GetOrientationImpl() throws -> WinUI.AutomationOrientation { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrientation(pThis, &result)) + } + return result + } + + internal func HasKeyboardFocusImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKeyboardFocus(pThis, &result)) + } + return .init(from: result) + } + + internal func IsContentElementImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsContentElement(pThis, &result)) + } + return .init(from: result) + } + + internal func IsControlElementImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsControlElement(pThis, &result)) + } + return .init(from: result) + } + + internal func IsEnabledImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsEnabled(pThis, &result)) + } + return .init(from: result) + } + + internal func IsKeyboardFocusableImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsKeyboardFocusable(pThis, &result)) + } + return .init(from: result) + } + + internal func IsOffscreenImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsOffscreen(pThis, &result)) + } + return .init(from: result) + } + + internal func IsPasswordImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsPassword(pThis, &result)) + } + return .init(from: result) + } + + internal func IsRequiredForFormImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsRequiredForForm(pThis, &result)) + } + return .init(from: result) + } + + internal func SetFocusImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetFocus(pThis)) + } + } + + internal func GetParentImpl() throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetParent(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func InvalidatePeerImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidatePeer(pThis)) + } + } + + internal func GetPeerFromPointImpl(_ point: WindowsFoundation.Point) throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPeerFromPoint(pThis, .from(swift: point), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetElementFromPointImpl(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementFromPoint(pThis, .from(swift: pointInWindowCoordinates), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetFocusedElementImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElement(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetLiveSettingImpl() throws -> WinUI.AutomationLiveSetting { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLiveSetting(pThis, &result)) + } + return result + } + + internal func ShowContextMenuImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowContextMenu(pThis)) + } + } + + internal func GetControlledPeersImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetControlledPeers(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func GetAnnotationsImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnnotations(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result) + } + + internal func SetParentImpl(_ peer: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetParent(pThis, RawPointer(peer))) + } + } + + internal func RaiseTextEditTextChangedEventImpl(_ automationTextEditChangeType: WinUI.AutomationTextEditChangeType, _ changedData: WindowsFoundation.AnyIVectorView?) throws { + let changedDataWrapper = WinUI.__x_ABI_C__FIVectorView_1_HSTRINGWrapper(changedData) + let _changedData = try! changedDataWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseTextEditTextChangedEvent(pThis, automationTextEditChangeType, _changedData)) + } + } + + internal func GetPositionInSetImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionInSet(pThis, &result)) + } + return result + } + + internal func GetSizeOfSetImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetSizeOfSet(pThis, &result)) + } + return result + } + + internal func GetLevelImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLevel(pThis, &result)) + } + return result + } + + internal func RaiseStructureChangedEventImpl(_ structureChangeType: WinUI.AutomationStructureChangeType, _ child: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseStructureChangedEvent(pThis, structureChangeType, RawPointer(child))) + } + } + + internal func GetLandmarkTypeImpl() throws -> WinUI.AutomationLandmarkType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLandmarkType(pThis, &result)) + } + return result + } + + internal func GetLocalizedLandmarkTypeImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedLandmarkType(pThis, &result)) + } + return .init(from: result) + } + + internal func IsPeripheralImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsPeripheral(pThis, &result)) + } + return .init(from: result) + } + + internal func IsDataValidForFormImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsDataValidForForm(pThis, &result)) + } + return .init(from: result) + } + + internal func GetFullDescriptionImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFullDescription(pThis, &result)) + } + return .init(from: result) + } + + internal func GetCultureImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCulture(pThis, &result)) + } + return result + } + + internal func RaiseNotificationEventImpl(_ notificationKind: WinUI.AutomationNotificationKind, _ notificationProcessing: WinUI.AutomationNotificationProcessing, _ displayString: String, _ activityId: String) throws { + let _displayString = try! HString(displayString) + let _activityId = try! HString(activityId) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RaiseNotificationEvent(pThis, notificationKind, notificationProcessing, _displayString.get(), _activityId.get())) + } + } + + internal func GetHeadingLevelImpl() throws -> WinUI.AutomationHeadingLevel { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHeadingLevel(pThis, &result)) + } + return result + } + + internal func IsDialogImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsDialog(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IAutomationPeerAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation } + + internal func get_TypeImpl() throws -> WinUI.AnnotationType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Type(pThis, &value)) + } + return value + } + + internal func put_TypeImpl(_ value: WinUI.AnnotationType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Type(pThis, value)) + } + } + + internal func get_PeerImpl() throws -> WinUI.AutomationPeer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Peer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PeerImpl(_ value: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Peer(pThis, RawPointer(value))) + } + } + + } + + public class IAutomationPeerAnnotationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory } + + internal func CreateInstanceImpl(_ type: WinUI.AnnotationType) throws -> IAutomationPeerAnnotation { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, type, &valueAbi)) + } + } + return IAutomationPeerAnnotation(value!) + } + + internal func CreateWithPeerParameterImpl(_ type: WinUI.AnnotationType, _ peer: WinUI.AutomationPeer?) throws -> IAutomationPeerAnnotation { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateWithPeerParameter(pThis, type, RawPointer(peer), &valueAbi)) + } + } + return IAutomationPeerAnnotation(value!) + } + + } + + public class IAutomationPeerAnnotationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics } + + internal func get_TypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PeerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PeerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IAutomationPeerFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IAutomationPeer { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IAutomationPeer(value!) + } + + } + + public class IAutomationPeerOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides } + + internal func GetPatternCoreImpl(_ patternInterface: WinUI.PatternInterface) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPatternCore(pThis, patternInterface, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetAcceleratorKeyCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAcceleratorKeyCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetAccessKeyCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAccessKeyCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetAutomationControlTypeCoreImpl() throws -> WinUI.AutomationControlType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationControlTypeCore(pThis, &result)) + } + return result + } + + internal func GetAutomationIdCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAutomationIdCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetBoundingRectangleCoreImpl() throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBoundingRectangleCore(pThis, &result)) + } + return .from(abi: result) + } + + internal func GetChildrenCoreImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildrenCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func NavigateCoreImpl(_ direction: WinUI.AutomationNavigationDirection) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateCore(pThis, direction, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetClassNameCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetClassNameCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetClickablePointCoreImpl() throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetClickablePointCore(pThis, &result)) + } + return .from(abi: result) + } + + internal func GetHelpTextCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHelpTextCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetItemStatusCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemStatusCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetItemTypeCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemTypeCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetLabeledByCoreImpl() throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLabeledByCore(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetLocalizedControlTypeCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedControlTypeCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetNameCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetNameCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetOrientationCoreImpl() throws -> WinUI.AutomationOrientation { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrientationCore(pThis, &result)) + } + return result + } + + internal func HasKeyboardFocusCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKeyboardFocusCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsContentElementCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsContentElementCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsControlElementCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsControlElementCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsEnabledCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsEnabledCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsKeyboardFocusableCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsKeyboardFocusableCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsOffscreenCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsOffscreenCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsPasswordCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsPasswordCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsRequiredForFormCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsRequiredForFormCore(pThis, &result)) + } + return .init(from: result) + } + + internal func SetFocusCoreImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetFocusCore(pThis)) + } + } + + internal func GetPeerFromPointCoreImpl(_ point: WindowsFoundation.Point) throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPeerFromPointCore(pThis, .from(swift: point), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetElementFromPointCoreImpl(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementFromPointCore(pThis, .from(swift: pointInWindowCoordinates), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetFocusedElementCoreImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElementCore(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetLiveSettingCoreImpl() throws -> WinUI.AutomationLiveSetting { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLiveSettingCore(pThis, &result)) + } + return result + } + + internal func ShowContextMenuCoreImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowContextMenuCore(pThis)) + } + } + + internal func GetControlledPeersCoreImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetControlledPeersCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func GetAnnotationsCoreImpl() throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnnotationsCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result) + } + + internal func GetPositionInSetCoreImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionInSetCore(pThis, &result)) + } + return result + } + + internal func GetSizeOfSetCoreImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetSizeOfSetCore(pThis, &result)) + } + return result + } + + internal func GetLevelCoreImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLevelCore(pThis, &result)) + } + return result + } + + internal func GetLandmarkTypeCoreImpl() throws -> WinUI.AutomationLandmarkType { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLandmarkTypeCore(pThis, &result)) + } + return result + } + + internal func GetLocalizedLandmarkTypeCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLocalizedLandmarkTypeCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsPeripheralCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsPeripheralCore(pThis, &result)) + } + return .init(from: result) + } + + internal func IsDataValidForFormCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsDataValidForFormCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetFullDescriptionCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFullDescriptionCore(pThis, &result)) + } + return .init(from: result) + } + + internal func GetDescribedByCoreImpl() throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDescribedByCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func GetFlowsToCoreImpl() throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsToCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func GetFlowsFromCoreImpl() throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFlowsFromCore(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func GetCultureCoreImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCultureCore(pThis, &result)) + } + return result + } + + internal func GetHeadingLevelCoreImpl() throws -> WinUI.AutomationHeadingLevel { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHeadingLevelCore(pThis, &result)) + } + return result + } + + internal func IsDialogCoreImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsDialogCore(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IAutomationPeerProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected } + + internal func PeerFromProviderImpl(_ provider: WinUI.IRawElementProviderSimple?) throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PeerFromProvider(pThis, RawPointer(provider), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func ProviderFromPeerImpl(_ peer: WinUI.AutomationPeer?) throws -> WinUI.IRawElementProviderSimple? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProviderFromPeer(pThis, RawPointer(peer), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IAutomationPeerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics } + + internal func ListenerExistsImpl(_ eventId: WinUI.AutomationEvents) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ListenerExists(pThis, eventId, &result)) + } + return .init(from: result) + } + + internal func GenerateRawElementProviderRuntimeIdImpl() throws -> WinUI.RawElementProviderRuntimeId { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GenerateRawElementProviderRuntimeId(pThis, &result)) + } + return .from(abi: result) + } + + } + + internal typealias IAutomationPeerOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IAutomationPeerOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverridesVtbl = .init( + QueryInterface: { IAutomationPeerOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IAutomationPeerOverridesWrapper.addRef($0) }, + Release: { IAutomationPeerOverridesWrapper.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_Xaml_Automation_Peers.IAutomationPeerOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetPatternCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let patternInterface: WinUI.PatternInterface = $1 + let result = try __unwrapped__instance.getPatternCore(patternInterface) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetAcceleratorKeyCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getAcceleratorKeyCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetAccessKeyCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getAccessKeyCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetAutomationControlTypeCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getAutomationControlTypeCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetAutomationIdCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getAutomationIdCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetBoundingRectangleCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getBoundingRectangleCore() + $1?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetChildrenCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getChildrenCore() + let resultWrapper = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + NavigateCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let direction: WinUI.AutomationNavigationDirection = $1 + let result = try __unwrapped__instance.navigateCore(direction) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetClassNameCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getClassNameCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetClickablePointCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getClickablePointCore() + $1?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetHelpTextCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getHelpTextCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetItemStatusCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getItemStatusCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetItemTypeCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getItemTypeCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLabeledByCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLabeledByCore() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLocalizedControlTypeCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLocalizedControlTypeCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetNameCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getNameCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetOrientationCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getOrientationCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + HasKeyboardFocusCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.hasKeyboardFocusCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsContentElementCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isContentElementCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsControlElementCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isControlElementCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsEnabledCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isEnabledCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsKeyboardFocusableCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isKeyboardFocusableCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsOffscreenCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isOffscreenCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsPasswordCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isPasswordCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsRequiredForFormCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isRequiredForFormCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetFocusCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.setFocusCore() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetPeerFromPointCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let point: WindowsFoundation.Point = .from(abi: $1) + let result = try __unwrapped__instance.getPeerFromPointCore(point) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetElementFromPointCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let pointInWindowCoordinates: WindowsFoundation.Point = .from(abi: $1) + let result = try __unwrapped__instance.getElementFromPointCore(pointInWindowCoordinates) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetFocusedElementCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getFocusedElementCore() + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLiveSettingCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLiveSettingCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ShowContextMenuCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.showContextMenuCore() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetControlledPeersCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getControlledPeersCore() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetAnnotationsCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getAnnotationsCore() + let resultWrapper = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetPositionInSetCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getPositionInSetCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetSizeOfSetCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getSizeOfSetCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLevelCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLevelCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLandmarkTypeCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLandmarkTypeCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetLocalizedLandmarkTypeCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getLocalizedLandmarkTypeCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsPeripheralCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isPeripheralCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsDataValidForFormCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isDataValidForFormCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetFullDescriptionCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getFullDescriptionCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetDescribedByCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getDescribedByCore() + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetFlowsToCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getFlowsToCore() + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetFlowsFromCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getFlowsFromCore() + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetCultureCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getCultureCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetHeadingLevelCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getHeadingLevelCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IsDialogCore: { + do { + guard let __unwrapped__instance = IAutomationPeerOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.isDialogCore() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId { + public static func from(swift: WinUI.RawElementProviderRuntimeId) -> __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId { + .init(Part1: swift.part1, Part2: swift.part2) + } + } + extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+Impl.swift new file mode 100644 index 0000000..84cb356 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers+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_Xaml_Automation_Peers { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers.swift new file mode 100644 index 0000000..4fb05f7 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Peers.swift @@ -0,0 +1,1204 @@ +// 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.xaml.automation.peers.accessibilityview) +public typealias AccessibilityView = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAccessibilityView +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationcontroltype) +public typealias AutomationControlType = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationevents) +public typealias AutomationEvents = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationheadinglevel) +public typealias AutomationHeadingLevel = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationlandmarktype) +public typealias AutomationLandmarkType = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationlivesetting) +public typealias AutomationLiveSetting = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationnavigationdirection) +public typealias AutomationNavigationDirection = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationnotificationkind) +public typealias AutomationNotificationKind = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationnotificationprocessing) +public typealias AutomationNotificationProcessing = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationorientation) +public typealias AutomationOrientation = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationstructurechangetype) +public typealias AutomationStructureChangeType = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.patterninterface) +public typealias PatternInterface = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer) +open class AutomationPeer : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer + 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_CXaml_CAutomation_CPeers_CIAutomationPeer>?) -> AutomationPeer? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IAutomationPeerFactory : __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.Peers.AutomationPeer")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IAutomationPeerFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IAutomationPeerStatics: __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.Peers.AutomationPeer")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.listenerexists) + public class func listenerExists(_ eventId: AutomationEvents) -> Bool { + return try! _IAutomationPeerStatics.ListenerExistsImpl(eventId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.generaterawelementproviderruntimeid) + public class func generateRawElementProviderRuntimeId() -> RawElementProviderRuntimeId { + return try! _IAutomationPeerStatics.GenerateRawElementProviderRuntimeIdImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpattern) + public func getPattern(_ patternInterface: PatternInterface) throws -> Any! { + try _default.GetPatternImpl(patternInterface) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.raiseautomationevent) + public func raiseAutomationEvent(_ eventId: AutomationEvents) throws { + try _default.RaiseAutomationEventImpl(eventId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.raisepropertychangedevent) + public func raisePropertyChangedEvent(_ automationProperty: WinUI.AutomationProperty!, _ oldValue: Any!, _ newValue: Any!) throws { + try _default.RaisePropertyChangedEventImpl(automationProperty, oldValue, newValue) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getacceleratorkey) + public func getAcceleratorKey() throws -> String { + try _default.GetAcceleratorKeyImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getaccesskey) + public func getAccessKey() throws -> String { + try _default.GetAccessKeyImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getautomationcontroltype) + public func getAutomationControlType() throws -> AutomationControlType { + try _default.GetAutomationControlTypeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getautomationid) + public func getAutomationId() throws -> String { + try _default.GetAutomationIdImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getboundingrectangle) + public func getBoundingRectangle() throws -> WindowsFoundation.Rect { + try _default.GetBoundingRectangleImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getchildren) + public func getChildren() throws -> WindowsFoundation.AnyIVector! { + try _default.GetChildrenImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.navigate) + public func navigate(_ direction: AutomationNavigationDirection) throws -> Any! { + try _default.NavigateImpl(direction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getclassname) + public func getClassName() throws -> String { + try _default.GetClassNameImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getclickablepoint) + public func getClickablePoint() throws -> WindowsFoundation.Point { + try _default.GetClickablePointImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.gethelptext) + public func getHelpText() throws -> String { + try _default.GetHelpTextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getitemstatus) + public func getItemStatus() throws -> String { + try _default.GetItemStatusImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getitemtype) + public func getItemType() throws -> String { + try _default.GetItemTypeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlabeledby) + public func getLabeledBy() throws -> AutomationPeer! { + try _default.GetLabeledByImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlocalizedcontroltype) + public func getLocalizedControlType() throws -> String { + try _default.GetLocalizedControlTypeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getname) + public func getName() throws -> String { + try _default.GetNameImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getorientation) + public func getOrientation() throws -> AutomationOrientation { + try _default.GetOrientationImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.haskeyboardfocus) + public func hasKeyboardFocus() throws -> Bool { + try _default.HasKeyboardFocusImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iscontentelement) + public func isContentElement() throws -> Bool { + try _default.IsContentElementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iscontrolelement) + public func isControlElement() throws -> Bool { + try _default.IsControlElementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isenabled) + public func isEnabled() throws -> Bool { + try _default.IsEnabledImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iskeyboardfocusable) + public func isKeyboardFocusable() throws -> Bool { + try _default.IsKeyboardFocusableImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isoffscreen) + public func isOffscreen() throws -> Bool { + try _default.IsOffscreenImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.ispassword) + public func isPassword() throws -> Bool { + try _default.IsPasswordImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isrequiredforform) + public func isRequiredForForm() throws -> Bool { + try _default.IsRequiredForFormImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.setfocus) + public func setFocus() throws { + try _default.SetFocusImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getparent) + public func getParent() throws -> AutomationPeer! { + try _default.GetParentImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.invalidatepeer) + public func invalidatePeer() throws { + try _default.InvalidatePeerImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpeerfrompoint) + public func getPeerFromPoint(_ point: WindowsFoundation.Point) throws -> AutomationPeer! { + try _default.GetPeerFromPointImpl(point) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getelementfrompoint) + public func getElementFromPoint(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any! { + try _default.GetElementFromPointImpl(pointInWindowCoordinates) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getfocusedelement) + public func getFocusedElement() throws -> Any! { + try _default.GetFocusedElementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlivesetting) + public func getLiveSetting() throws -> AutomationLiveSetting { + try _default.GetLiveSettingImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.showcontextmenu) + public func showContextMenu() throws { + try _default.ShowContextMenuImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getcontrolledpeers) + public func getControlledPeers() throws -> WindowsFoundation.AnyIVectorView! { + try _default.GetControlledPeersImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getannotations) + public func getAnnotations() throws -> WindowsFoundation.AnyIVector! { + try _default.GetAnnotationsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.setparent) + public func setParent(_ peer: AutomationPeer!) throws { + try _default.SetParentImpl(peer) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.raisetextedittextchangedevent) + public func raiseTextEditTextChangedEvent(_ automationTextEditChangeType: WinUI.AutomationTextEditChangeType, _ changedData: WindowsFoundation.AnyIVectorView!) throws { + try _default.RaiseTextEditTextChangedEventImpl(automationTextEditChangeType, changedData) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpositioninset) + public func getPositionInSet() throws -> Int32 { + try _default.GetPositionInSetImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getsizeofset) + public func getSizeOfSet() throws -> Int32 { + try _default.GetSizeOfSetImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlevel) + public func getLevel() throws -> Int32 { + try _default.GetLevelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.raisestructurechangedevent) + public func raiseStructureChangedEvent(_ structureChangeType: AutomationStructureChangeType, _ child: AutomationPeer!) throws { + try _default.RaiseStructureChangedEventImpl(structureChangeType, child) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlandmarktype) + public func getLandmarkType() throws -> AutomationLandmarkType { + try _default.GetLandmarkTypeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlocalizedlandmarktype) + public func getLocalizedLandmarkType() throws -> String { + try _default.GetLocalizedLandmarkTypeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isperipheral) + public func isPeripheral() throws -> Bool { + try _default.IsPeripheralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isdatavalidforform) + public func isDataValidForForm() throws -> Bool { + try _default.IsDataValidForFormImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getfulldescription) + public func getFullDescription() throws -> String { + try _default.GetFullDescriptionImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getculture) + public func getCulture() throws -> Int32 { + try _default.GetCultureImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.raisenotificationevent) + public func raiseNotificationEvent(_ notificationKind: AutomationNotificationKind, _ notificationProcessing: AutomationNotificationProcessing, _ displayString: String, _ activityId: String) throws { + try _default.RaiseNotificationEventImpl(notificationKind, notificationProcessing, displayString, activityId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getheadinglevel) + public func getHeadingLevel() throws -> AutomationHeadingLevel { + try _default.GetHeadingLevelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isdialog) + public func isDialog() throws -> Bool { + try _default.IsDialogImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.eventssource) + public var eventsSource : AutomationPeer! { + get { try! _default.get_EventsSourceImpl() } + set { try! _default.put_EventsSourceImpl(newValue) } + } + + private lazy var _IAutomationPeerProtected: __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.peerfromprovider) + public func peerFromProvider(_ provider: WinUI.IRawElementProviderSimple!) throws -> AutomationPeer! { + try _IAutomationPeerProtected.PeerFromProviderImpl(provider) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.providerfrompeer) + public func providerFromPeer(_ peer: AutomationPeer!) throws -> WinUI.IRawElementProviderSimple! { + try _IAutomationPeerProtected.ProviderFromPeerImpl(peer) + } + + private lazy var _IAutomationPeerOverrides: __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpatterncore) + open func getPatternCore(_ patternInterface: PatternInterface) throws -> Any! { + try _IAutomationPeerOverrides.GetPatternCoreImpl(patternInterface) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getacceleratorkeycore) + open func getAcceleratorKeyCore() throws -> String { + try _IAutomationPeerOverrides.GetAcceleratorKeyCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getaccesskeycore) + open func getAccessKeyCore() throws -> String { + try _IAutomationPeerOverrides.GetAccessKeyCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getautomationcontroltypecore) + open func getAutomationControlTypeCore() throws -> AutomationControlType { + try _IAutomationPeerOverrides.GetAutomationControlTypeCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getautomationidcore) + open func getAutomationIdCore() throws -> String { + try _IAutomationPeerOverrides.GetAutomationIdCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getboundingrectanglecore) + open func getBoundingRectangleCore() throws -> WindowsFoundation.Rect { + try _IAutomationPeerOverrides.GetBoundingRectangleCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getchildrencore) + open func getChildrenCore() throws -> WindowsFoundation.AnyIVector! { + try _IAutomationPeerOverrides.GetChildrenCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.navigatecore) + open func navigateCore(_ direction: AutomationNavigationDirection) throws -> Any! { + try _IAutomationPeerOverrides.NavigateCoreImpl(direction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getclassnamecore) + open func getClassNameCore() throws -> String { + try _IAutomationPeerOverrides.GetClassNameCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getclickablepointcore) + open func getClickablePointCore() throws -> WindowsFoundation.Point { + try _IAutomationPeerOverrides.GetClickablePointCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.gethelptextcore) + open func getHelpTextCore() throws -> String { + try _IAutomationPeerOverrides.GetHelpTextCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getitemstatuscore) + open func getItemStatusCore() throws -> String { + try _IAutomationPeerOverrides.GetItemStatusCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getitemtypecore) + open func getItemTypeCore() throws -> String { + try _IAutomationPeerOverrides.GetItemTypeCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlabeledbycore) + open func getLabeledByCore() throws -> AutomationPeer! { + try _IAutomationPeerOverrides.GetLabeledByCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlocalizedcontroltypecore) + open func getLocalizedControlTypeCore() throws -> String { + try _IAutomationPeerOverrides.GetLocalizedControlTypeCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getnamecore) + open func getNameCore() throws -> String { + try _IAutomationPeerOverrides.GetNameCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getorientationcore) + open func getOrientationCore() throws -> AutomationOrientation { + try _IAutomationPeerOverrides.GetOrientationCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.haskeyboardfocuscore) + open func hasKeyboardFocusCore() throws -> Bool { + try _IAutomationPeerOverrides.HasKeyboardFocusCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iscontentelementcore) + open func isContentElementCore() throws -> Bool { + try _IAutomationPeerOverrides.IsContentElementCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iscontrolelementcore) + open func isControlElementCore() throws -> Bool { + try _IAutomationPeerOverrides.IsControlElementCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isenabledcore) + open func isEnabledCore() throws -> Bool { + try _IAutomationPeerOverrides.IsEnabledCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.iskeyboardfocusablecore) + open func isKeyboardFocusableCore() throws -> Bool { + try _IAutomationPeerOverrides.IsKeyboardFocusableCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isoffscreencore) + open func isOffscreenCore() throws -> Bool { + try _IAutomationPeerOverrides.IsOffscreenCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.ispasswordcore) + open func isPasswordCore() throws -> Bool { + try _IAutomationPeerOverrides.IsPasswordCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isrequiredforformcore) + open func isRequiredForFormCore() throws -> Bool { + try _IAutomationPeerOverrides.IsRequiredForFormCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.setfocuscore) + open func setFocusCore() throws { + try _IAutomationPeerOverrides.SetFocusCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpeerfrompointcore) + open func getPeerFromPointCore(_ point: WindowsFoundation.Point) throws -> AutomationPeer! { + try _IAutomationPeerOverrides.GetPeerFromPointCoreImpl(point) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getelementfrompointcore) + open func getElementFromPointCore(_ pointInWindowCoordinates: WindowsFoundation.Point) throws -> Any! { + try _IAutomationPeerOverrides.GetElementFromPointCoreImpl(pointInWindowCoordinates) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getfocusedelementcore) + open func getFocusedElementCore() throws -> Any! { + try _IAutomationPeerOverrides.GetFocusedElementCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlivesettingcore) + open func getLiveSettingCore() throws -> AutomationLiveSetting { + try _IAutomationPeerOverrides.GetLiveSettingCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.showcontextmenucore) + open func showContextMenuCore() throws { + try _IAutomationPeerOverrides.ShowContextMenuCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getcontrolledpeerscore) + open func getControlledPeersCore() throws -> WindowsFoundation.AnyIVectorView! { + try _IAutomationPeerOverrides.GetControlledPeersCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getannotationscore) + open func getAnnotationsCore() throws -> WindowsFoundation.AnyIVector! { + try _IAutomationPeerOverrides.GetAnnotationsCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getpositioninsetcore) + open func getPositionInSetCore() throws -> Int32 { + try _IAutomationPeerOverrides.GetPositionInSetCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getsizeofsetcore) + open func getSizeOfSetCore() throws -> Int32 { + try _IAutomationPeerOverrides.GetSizeOfSetCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlevelcore) + open func getLevelCore() throws -> Int32 { + try _IAutomationPeerOverrides.GetLevelCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlandmarktypecore) + open func getLandmarkTypeCore() throws -> AutomationLandmarkType { + try _IAutomationPeerOverrides.GetLandmarkTypeCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getlocalizedlandmarktypecore) + open func getLocalizedLandmarkTypeCore() throws -> String { + try _IAutomationPeerOverrides.GetLocalizedLandmarkTypeCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isperipheralcore) + open func isPeripheralCore() throws -> Bool { + try _IAutomationPeerOverrides.IsPeripheralCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isdatavalidforformcore) + open func isDataValidForFormCore() throws -> Bool { + try _IAutomationPeerOverrides.IsDataValidForFormCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getfulldescriptioncore) + open func getFullDescriptionCore() throws -> String { + try _IAutomationPeerOverrides.GetFullDescriptionCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getdescribedbycore) + open func getDescribedByCore() throws -> WindowsFoundation.AnyIIterable! { + try _IAutomationPeerOverrides.GetDescribedByCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getflowstocore) + open func getFlowsToCore() throws -> WindowsFoundation.AnyIIterable! { + try _IAutomationPeerOverrides.GetFlowsToCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getflowsfromcore) + open func getFlowsFromCore() throws -> WindowsFoundation.AnyIIterable! { + try _IAutomationPeerOverrides.GetFlowsFromCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getculturecore) + open func getCultureCore() throws -> Int32 { + try _IAutomationPeerOverrides.GetCultureCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.getheadinglevelcore) + open func getHeadingLevelCore() throws -> AutomationHeadingLevel { + try _IAutomationPeerOverrides.GetHeadingLevelCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeer.isdialogcore) + open func isDialogCore() throws -> Bool { + try _IAutomationPeerOverrides.IsDialogCoreImpl() + } + + internal enum IAutomationPeerOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerOverrides + internal typealias Class = AutomationPeer + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeer + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeer + } + } + internal typealias Composable = IAutomationPeerOverrides + deinit { + _default = nil + _IAutomationPeerProtected = nil + _IAutomationPeerOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeerannotation) +public final class AutomationPeerAnnotation : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerAnnotation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation + 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_CXaml_CAutomation_CPeers_CIAutomationPeerAnnotation>?) -> AutomationPeerAnnotation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Automation.Peers.AutomationPeerAnnotation"))) + } + + private static let _IAutomationPeerAnnotationFactory: __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerAnnotationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.Peers.AutomationPeerAnnotation")) + public init(_ type: WinUI.AnnotationType) { + super.init(fromAbi: try! Self._IAutomationPeerAnnotationFactory.CreateInstanceImpl(type)) + } + + public init(_ type: WinUI.AnnotationType, _ peer: AutomationPeer!) { + super.init(fromAbi: try! Self._IAutomationPeerAnnotationFactory.CreateWithPeerParameterImpl(type, peer)) + } + + private static let _IAutomationPeerAnnotationStatics: __ABI_Microsoft_UI_Xaml_Automation_Peers.IAutomationPeerAnnotationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.Peers.AutomationPeerAnnotation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeerannotation.peerproperty) + public static var peerProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPeerAnnotationStatics.get_PeerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeerannotation.typeproperty) + public static var typeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPeerAnnotationStatics.get_TypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeerannotation.peer) + public var peer : AutomationPeer! { + get { try! _default.get_PeerImpl() } + set { try! _default.put_PeerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.automationpeerannotation.type) + public var type : WinUI.AnnotationType { + get { try! _default.get_TypeImpl() } + set { try! _default.put_TypeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.rawelementproviderruntimeid) +public struct RawElementProviderRuntimeId: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.rawelementproviderruntimeid.part1) + public var part1: UInt32 = 0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.peers.rawelementproviderruntimeid.part2) + public var part2: UInt32 = 0 + public init() {} + public init(part1: UInt32, part2: UInt32) { + self.part1 = part1 + self.part2 = part2 + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CRawElementProviderRuntimeId) -> RawElementProviderRuntimeId { + .init(part1: abi.Part1, part2: abi.Part2) + } +} + +extension WinUI.AccessibilityView { + public static var raw : WinUI.AccessibilityView { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAccessibilityView_Raw + } + public static var control : WinUI.AccessibilityView { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAccessibilityView_Control + } + public static var content : WinUI.AccessibilityView { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAccessibilityView_Content + } +} +extension WinUI.AccessibilityView: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationControlType { + public static var button : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Button + } + public static var calendar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Calendar + } + public static var checkBox : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_CheckBox + } + public static var comboBox : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ComboBox + } + public static var edit : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Edit + } + public static var hyperlink : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Hyperlink + } + public static var image : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Image + } + public static var listItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ListItem + } + public static var list : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_List + } + public static var menu : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Menu + } + public static var menuBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_MenuBar + } + public static var menuItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_MenuItem + } + public static var progressBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ProgressBar + } + public static var radioButton : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_RadioButton + } + public static var scrollBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ScrollBar + } + public static var slider : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Slider + } + public static var spinner : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Spinner + } + public static var statusBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_StatusBar + } + public static var tab : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Tab + } + public static var tabItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_TabItem + } + public static var text : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Text + } + public static var toolBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ToolBar + } + public static var toolTip : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_ToolTip + } + public static var tree : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Tree + } + public static var treeItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_TreeItem + } + public static var custom : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Custom + } + public static var group : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Group + } + public static var thumb : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Thumb + } + public static var dataGrid : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_DataGrid + } + public static var dataItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_DataItem + } + public static var document : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Document + } + public static var splitButton : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_SplitButton + } + public static var window : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Window + } + public static var pane : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Pane + } + public static var header : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Header + } + public static var headerItem : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_HeaderItem + } + public static var table : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Table + } + public static var titleBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_TitleBar + } + public static var separator : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_Separator + } + public static var semanticZoom : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_SemanticZoom + } + public static var appBar : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_AppBar + } + public static var flipView : WinUI.AutomationControlType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationControlType_FlipView + } +} +extension WinUI.AutomationControlType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationEvents { + public static var toolTipOpened : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_ToolTipOpened + } + public static var toolTipClosed : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_ToolTipClosed + } + public static var menuOpened : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_MenuOpened + } + public static var menuClosed : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_MenuClosed + } + public static var automationFocusChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_AutomationFocusChanged + } + public static var invokePatternOnInvoked : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_InvokePatternOnInvoked + } + public static var selectionItemPatternOnElementAddedToSelection : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_SelectionItemPatternOnElementAddedToSelection + } + public static var selectionItemPatternOnElementRemovedFromSelection : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_SelectionItemPatternOnElementRemovedFromSelection + } + public static var selectionItemPatternOnElementSelected : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_SelectionItemPatternOnElementSelected + } + public static var selectionPatternOnInvalidated : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_SelectionPatternOnInvalidated + } + public static var textPatternOnTextSelectionChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_TextPatternOnTextSelectionChanged + } + public static var textPatternOnTextChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_TextPatternOnTextChanged + } + public static var asyncContentLoaded : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_AsyncContentLoaded + } + public static var propertyChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_PropertyChanged + } + public static var structureChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_StructureChanged + } + public static var dragStart : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_DragStart + } + public static var dragCancel : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_DragCancel + } + public static var dragComplete : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_DragComplete + } + public static var dragEnter : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_DragEnter + } + public static var dragLeave : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_DragLeave + } + public static var dropped : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_Dropped + } + public static var liveRegionChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_LiveRegionChanged + } + public static var inputReachedTarget : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_InputReachedTarget + } + public static var inputReachedOtherElement : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_InputReachedOtherElement + } + public static var inputDiscarded : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_InputDiscarded + } + public static var windowClosed : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_WindowClosed + } + public static var windowOpened : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_WindowOpened + } + public static var conversionTargetChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_ConversionTargetChanged + } + public static var textEditTextChanged : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_TextEditTextChanged + } + public static var layoutInvalidated : WinUI.AutomationEvents { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationEvents_LayoutInvalidated + } +} +extension WinUI.AutomationEvents: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationHeadingLevel { + public static var none : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_None + } + public static var level1 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level1 + } + public static var level2 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level2 + } + public static var level3 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level3 + } + public static var level4 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level4 + } + public static var level5 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level5 + } + public static var level6 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level6 + } + public static var level7 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level7 + } + public static var level8 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level8 + } + public static var level9 : WinUI.AutomationHeadingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationHeadingLevel_Level9 + } +} +extension WinUI.AutomationHeadingLevel: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationLandmarkType { + public static var none : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_None + } + public static var custom : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_Custom + } + public static var form : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_Form + } + public static var main : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_Main + } + public static var navigation : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_Navigation + } + public static var search : WinUI.AutomationLandmarkType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLandmarkType_Search + } +} +extension WinUI.AutomationLandmarkType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationLiveSetting { + public static var off : WinUI.AutomationLiveSetting { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting_Off + } + public static var polite : WinUI.AutomationLiveSetting { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting_Polite + } + public static var assertive : WinUI.AutomationLiveSetting { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationLiveSetting_Assertive + } +} +extension WinUI.AutomationLiveSetting: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationNavigationDirection { + public static var parent : WinUI.AutomationNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection_Parent + } + public static var nextSibling : WinUI.AutomationNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection_NextSibling + } + public static var previousSibling : WinUI.AutomationNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection_PreviousSibling + } + public static var firstChild : WinUI.AutomationNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection_FirstChild + } + public static var lastChild : WinUI.AutomationNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNavigationDirection_LastChild + } +} +extension WinUI.AutomationNavigationDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationNotificationKind { + public static var itemAdded : WinUI.AutomationNotificationKind { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind_ItemAdded + } + public static var itemRemoved : WinUI.AutomationNotificationKind { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind_ItemRemoved + } + public static var actionCompleted : WinUI.AutomationNotificationKind { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind_ActionCompleted + } + public static var actionAborted : WinUI.AutomationNotificationKind { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind_ActionAborted + } + public static var other : WinUI.AutomationNotificationKind { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationKind_Other + } +} +extension WinUI.AutomationNotificationKind: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationNotificationProcessing { + public static var importantAll : WinUI.AutomationNotificationProcessing { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing_ImportantAll + } + public static var importantMostRecent : WinUI.AutomationNotificationProcessing { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing_ImportantMostRecent + } + public static var all : WinUI.AutomationNotificationProcessing { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing_All + } + public static var mostRecent : WinUI.AutomationNotificationProcessing { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing_MostRecent + } + public static var currentThenMostRecent : WinUI.AutomationNotificationProcessing { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationNotificationProcessing_CurrentThenMostRecent + } +} +extension WinUI.AutomationNotificationProcessing: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationOrientation { + public static var none : WinUI.AutomationOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation_None + } + public static var horizontal : WinUI.AutomationOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation_Horizontal + } + public static var vertical : WinUI.AutomationOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationOrientation_Vertical + } +} +extension WinUI.AutomationOrientation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationStructureChangeType { + public static var childAdded : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildAdded + } + public static var childRemoved : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildRemoved + } + public static var childrenInvalidated : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildrenInvalidated + } + public static var childrenBulkAdded : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildrenBulkAdded + } + public static var childrenBulkRemoved : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildrenBulkRemoved + } + public static var childrenReordered : WinUI.AutomationStructureChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CAutomationStructureChangeType_ChildrenReordered + } +} +extension WinUI.AutomationStructureChangeType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PatternInterface { + public static var invoke : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Invoke + } + public static var selection : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Selection + } + public static var value : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Value + } + public static var rangeValue : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_RangeValue + } + public static var scroll : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Scroll + } + public static var scrollItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_ScrollItem + } + public static var expandCollapse : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_ExpandCollapse + } + public static var grid : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Grid + } + public static var gridItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_GridItem + } + public static var multipleView : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_MultipleView + } + public static var window : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Window + } + public static var selectionItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_SelectionItem + } + public static var dock : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Dock + } + public static var table : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Table + } + public static var tableItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_TableItem + } + public static var toggle : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Toggle + } + public static var transform : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Transform + } + public static var text : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Text + } + public static var itemContainer : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_ItemContainer + } + public static var virtualizedItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_VirtualizedItem + } + public static var text2 : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Text2 + } + public static var textChild : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_TextChild + } + public static var textRange : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_TextRange + } + public static var annotation : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Annotation + } + public static var drag : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Drag + } + public static var dropTarget : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_DropTarget + } + public static var objectModel : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_ObjectModel + } + public static var spreadsheet : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Spreadsheet + } + public static var spreadsheetItem : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_SpreadsheetItem + } + public static var styles : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Styles + } + public static var transform2 : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_Transform2 + } + public static var synchronizedInput : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_SynchronizedInput + } + public static var textEdit : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_TextEdit + } + public static var customNavigation : WinUI.PatternInterface { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CPeers_CPatternInterface_CustomNavigation + } +} +extension WinUI.PatternInterface: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+ABI.swift new file mode 100644 index 0000000..95c0649 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+ABI.swift @@ -0,0 +1,17 @@ +// 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_CXaml_CAutomation_CProvider_CIIRawElementProviderSimple: WindowsFoundation.IID { + .init(Data1: 0xF90BC239, Data2: 0xADE2, Data3: 0x55C9, Data4: ( 0xA8,0x38,0xA3,0xB0,0x57,0x97,0x63,0xC5 ))// F90BC239-ADE2-55C9-A838-A3B0579763C5 +} + +public enum __ABI_Microsoft_UI_Xaml_Automation_Provider { + public class IIRawElementProviderSimple: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CProvider_CIIRawElementProviderSimple } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+Impl.swift new file mode 100644 index 0000000..38d0870 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider+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_Xaml_Automation_Provider { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider.swift new file mode 100644 index 0000000..6afc777 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.Provider.swift @@ -0,0 +1,35 @@ +// 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.xaml.automation.provider.irawelementprovidersimple) +public final class IRawElementProviderSimple : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation_Provider.IIRawElementProviderSimple + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CProvider_CIIRawElementProviderSimple + 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_CXaml_CAutomation_CProvider_CIIRawElementProviderSimple>?) -> IRawElementProviderSimple? { + 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 + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.swift new file mode 100644 index 0000000..599bc59 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Automation.swift @@ -0,0 +1,634 @@ +// 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.xaml.automation.annotationtype) +public typealias AnnotationType = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationtexteditchangetype) +public typealias AutomationTextEditChangeType = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAutomationTextEditChangeType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationannotation) +public final class AutomationAnnotation : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation.IAutomationAnnotation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationAnnotation + 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_CXaml_CAutomation_CIAutomationAnnotation>?) -> AutomationAnnotation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Automation.AutomationAnnotation"))) + } + + private static let _IAutomationAnnotationFactory: __ABI_Microsoft_UI_Xaml_Automation.IAutomationAnnotationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.AutomationAnnotation")) + public init(_ type: AnnotationType) { + super.init(fromAbi: try! Self._IAutomationAnnotationFactory.CreateInstanceImpl(type)) + } + + public init(_ type: AnnotationType, _ element: WinUI.UIElement!) { + super.init(fromAbi: try! Self._IAutomationAnnotationFactory.CreateWithElementParameterImpl(type, element)) + } + + private static let _IAutomationAnnotationStatics: __ABI_Microsoft_UI_Xaml_Automation.IAutomationAnnotationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.AutomationAnnotation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationannotation.elementproperty) + public static var elementProperty : WinUI.DependencyProperty! { + get { try! _IAutomationAnnotationStatics.get_ElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationannotation.typeproperty) + public static var typeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationAnnotationStatics.get_TypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationannotation.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + set { try! _default.put_ElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationannotation.type) + public var type : AnnotationType { + get { try! _default.get_TypeImpl() } + set { try! _default.put_TypeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties) +public final class AutomationProperties : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation.IAutomationProperties + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperties + 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_CXaml_CAutomation_CIAutomationProperties>?) -> AutomationProperties? { + 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 _IAutomationPropertiesStatics: __ABI_Microsoft_UI_Xaml_Automation.IAutomationPropertiesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.AutomationProperties")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getacceleratorkey) + public static func getAcceleratorKey(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetAcceleratorKeyImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setacceleratorkey) + public static func setAcceleratorKey(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetAcceleratorKeyImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getaccesskey) + public static func getAccessKey(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetAccessKeyImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setaccesskey) + public static func setAccessKey(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetAccessKeyImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getautomationid) + public static func getAutomationId(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetAutomationIdImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setautomationid) + public static func setAutomationId(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetAutomationIdImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.gethelptext) + public static func getHelpText(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetHelpTextImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.sethelptext) + public static func setHelpText(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetHelpTextImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getisrequiredforform) + public static func getIsRequiredForForm(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IAutomationPropertiesStatics.GetIsRequiredForFormImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setisrequiredforform) + public static func setIsRequiredForForm(_ element: WinUI.DependencyObject!, _ value: Bool) { + try! _IAutomationPropertiesStatics.SetIsRequiredForFormImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getitemstatus) + public static func getItemStatus(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetItemStatusImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setitemstatus) + public static func setItemStatus(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetItemStatusImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getitemtype) + public static func getItemType(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetItemTypeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setitemtype) + public static func setItemType(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetItemTypeImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlabeledby) + public static func getLabeledBy(_ element: WinUI.DependencyObject!) -> WinUI.UIElement! { + return try! _IAutomationPropertiesStatics.GetLabeledByImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlabeledby) + public static func setLabeledBy(_ element: WinUI.DependencyObject!, _ value: WinUI.UIElement!) { + try! _IAutomationPropertiesStatics.SetLabeledByImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getname) + public static func getName(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetNameImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setname) + public static func setName(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetNameImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlivesetting) + public static func getLiveSetting(_ element: WinUI.DependencyObject!) -> WinUI.AutomationLiveSetting { + return try! _IAutomationPropertiesStatics.GetLiveSettingImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlivesetting) + public static func setLiveSetting(_ element: WinUI.DependencyObject!, _ value: WinUI.AutomationLiveSetting) { + try! _IAutomationPropertiesStatics.SetLiveSettingImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getaccessibilityview) + public static func getAccessibilityView(_ element: WinUI.DependencyObject!) -> WinUI.AccessibilityView { + return try! _IAutomationPropertiesStatics.GetAccessibilityViewImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setaccessibilityview) + public static func setAccessibilityView(_ element: WinUI.DependencyObject!, _ value: WinUI.AccessibilityView) { + try! _IAutomationPropertiesStatics.SetAccessibilityViewImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getcontrolledpeers) + public static func getControlledPeers(_ element: WinUI.DependencyObject!) -> WindowsFoundation.AnyIVector! { + return try! _IAutomationPropertiesStatics.GetControlledPeersImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getpositioninset) + public static func getPositionInSet(_ element: WinUI.DependencyObject!) -> Int32 { + return try! _IAutomationPropertiesStatics.GetPositionInSetImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setpositioninset) + public static func setPositionInSet(_ element: WinUI.DependencyObject!, _ value: Int32) { + try! _IAutomationPropertiesStatics.SetPositionInSetImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getsizeofset) + public static func getSizeOfSet(_ element: WinUI.DependencyObject!) -> Int32 { + return try! _IAutomationPropertiesStatics.GetSizeOfSetImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setsizeofset) + public static func setSizeOfSet(_ element: WinUI.DependencyObject!, _ value: Int32) { + try! _IAutomationPropertiesStatics.SetSizeOfSetImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlevel) + public static func getLevel(_ element: WinUI.DependencyObject!) -> Int32 { + return try! _IAutomationPropertiesStatics.GetLevelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlevel) + public static func setLevel(_ element: WinUI.DependencyObject!, _ value: Int32) { + try! _IAutomationPropertiesStatics.SetLevelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getannotations) + public static func getAnnotations(_ element: WinUI.DependencyObject!) -> WindowsFoundation.AnyIVector! { + return try! _IAutomationPropertiesStatics.GetAnnotationsImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlandmarktype) + public static func getLandmarkType(_ element: WinUI.DependencyObject!) -> WinUI.AutomationLandmarkType { + return try! _IAutomationPropertiesStatics.GetLandmarkTypeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlandmarktype) + public static func setLandmarkType(_ element: WinUI.DependencyObject!, _ value: WinUI.AutomationLandmarkType) { + try! _IAutomationPropertiesStatics.SetLandmarkTypeImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlocalizedlandmarktype) + public static func getLocalizedLandmarkType(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetLocalizedLandmarkTypeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlocalizedlandmarktype) + public static func setLocalizedLandmarkType(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetLocalizedLandmarkTypeImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getisperipheral) + public static func getIsPeripheral(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IAutomationPropertiesStatics.GetIsPeripheralImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setisperipheral) + public static func setIsPeripheral(_ element: WinUI.DependencyObject!, _ value: Bool) { + try! _IAutomationPropertiesStatics.SetIsPeripheralImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getisdatavalidforform) + public static func getIsDataValidForForm(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IAutomationPropertiesStatics.GetIsDataValidForFormImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setisdatavalidforform) + public static func setIsDataValidForForm(_ element: WinUI.DependencyObject!, _ value: Bool) { + try! _IAutomationPropertiesStatics.SetIsDataValidForFormImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getfulldescription) + public static func getFullDescription(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetFullDescriptionImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setfulldescription) + public static func setFullDescription(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetFullDescriptionImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getlocalizedcontroltype) + public static func getLocalizedControlType(_ element: WinUI.DependencyObject!) -> String { + return try! _IAutomationPropertiesStatics.GetLocalizedControlTypeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setlocalizedcontroltype) + public static func setLocalizedControlType(_ element: WinUI.DependencyObject!, _ value: String) { + try! _IAutomationPropertiesStatics.SetLocalizedControlTypeImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getdescribedby) + public static func getDescribedBy(_ element: WinUI.DependencyObject!) -> WindowsFoundation.AnyIVector! { + return try! _IAutomationPropertiesStatics.GetDescribedByImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getflowsto) + public static func getFlowsTo(_ element: WinUI.DependencyObject!) -> WindowsFoundation.AnyIVector! { + return try! _IAutomationPropertiesStatics.GetFlowsToImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getflowsfrom) + public static func getFlowsFrom(_ element: WinUI.DependencyObject!) -> WindowsFoundation.AnyIVector! { + return try! _IAutomationPropertiesStatics.GetFlowsFromImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getculture) + public static func getCulture(_ element: WinUI.DependencyObject!) -> Int32 { + return try! _IAutomationPropertiesStatics.GetCultureImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setculture) + public static func setCulture(_ element: WinUI.DependencyObject!, _ value: Int32) { + try! _IAutomationPropertiesStatics.SetCultureImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getheadinglevel) + public static func getHeadingLevel(_ element: WinUI.DependencyObject!) -> WinUI.AutomationHeadingLevel { + return try! _IAutomationPropertiesStatics.GetHeadingLevelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setheadinglevel) + public static func setHeadingLevel(_ element: WinUI.DependencyObject!, _ value: WinUI.AutomationHeadingLevel) { + try! _IAutomationPropertiesStatics.SetHeadingLevelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getisdialog) + public static func getIsDialog(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IAutomationPropertiesStatics.GetIsDialogImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setisdialog) + public static func setIsDialog(_ element: WinUI.DependencyObject!, _ value: Bool) { + try! _IAutomationPropertiesStatics.SetIsDialogImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.acceleratorkeyproperty) + public static var acceleratorKeyProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_AcceleratorKeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.accesskeyproperty) + public static var accessKeyProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_AccessKeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.accessibilityviewproperty) + public static var accessibilityViewProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_AccessibilityViewPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.annotationsproperty) + public static var annotationsProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_AnnotationsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.automationidproperty) + public static var automationIdProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_AutomationIdPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.controlledpeersproperty) + public static var controlledPeersProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_ControlledPeersPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.cultureproperty) + public static var cultureProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_CulturePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.describedbyproperty) + public static var describedByProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_DescribedByPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.flowsfromproperty) + public static var flowsFromProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_FlowsFromPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.flowstoproperty) + public static var flowsToProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_FlowsToPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.fulldescriptionproperty) + public static var fullDescriptionProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_FullDescriptionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.headinglevelproperty) + public static var headingLevelProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_HeadingLevelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.helptextproperty) + public static var helpTextProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_HelpTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.isdatavalidforformproperty) + public static var isDataValidForFormProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_IsDataValidForFormPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.isdialogproperty) + public static var isDialogProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_IsDialogPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.isperipheralproperty) + public static var isPeripheralProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_IsPeripheralPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.isrequiredforformproperty) + public static var isRequiredForFormProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_IsRequiredForFormPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.itemstatusproperty) + public static var itemStatusProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_ItemStatusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.itemtypeproperty) + public static var itemTypeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_ItemTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.labeledbyproperty) + public static var labeledByProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LabeledByPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.landmarktypeproperty) + public static var landmarkTypeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LandmarkTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.levelproperty) + public static var levelProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LevelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.livesettingproperty) + public static var liveSettingProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LiveSettingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.localizedcontroltypeproperty) + public static var localizedControlTypeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LocalizedControlTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.localizedlandmarktypeproperty) + public static var localizedLandmarkTypeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_LocalizedLandmarkTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.nameproperty) + public static var nameProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_NamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.positioninsetproperty) + public static var positionInSetProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_PositionInSetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.sizeofsetproperty) + public static var sizeOfSetProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics.get_SizeOfSetPropertyImpl() } + } + + private static let _IAutomationPropertiesStatics2: __ABI_Microsoft_UI_Xaml_Automation.IAutomationPropertiesStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Automation.AutomationProperties")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.getautomationcontroltype) + public static func getAutomationControlType(_ element: WinUI.UIElement!) -> WinUI.AutomationControlType { + return try! _IAutomationPropertiesStatics2.GetAutomationControlTypeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.setautomationcontroltype) + public static func setAutomationControlType(_ element: WinUI.UIElement!, _ value: WinUI.AutomationControlType) { + try! _IAutomationPropertiesStatics2.SetAutomationControlTypeImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperties.automationcontroltypeproperty) + public static var automationControlTypeProperty : WinUI.DependencyProperty! { + get { try! _IAutomationPropertiesStatics2.get_AutomationControlTypePropertyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.automation.automationproperty) +public final class AutomationProperty : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Automation.IAutomationProperty + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CIAutomationProperty + 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_CXaml_CAutomation_CIAutomationProperty>?) -> AutomationProperty? { + 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 + } +} + +extension WinUI.AnnotationType { + public static var unknown : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Unknown + } + public static var spellingError : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_SpellingError + } + public static var grammarError : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_GrammarError + } + public static var comment : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Comment + } + public static var formulaError : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_FormulaError + } + public static var trackChanges : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_TrackChanges + } + public static var header : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Header + } + public static var footer : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Footer + } + public static var highlighted : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Highlighted + } + public static var endnote : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Endnote + } + public static var footnote : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Footnote + } + public static var insertionChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_InsertionChange + } + public static var deletionChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_DeletionChange + } + public static var moveChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_MoveChange + } + public static var formatChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_FormatChange + } + public static var unsyncedChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_UnsyncedChange + } + public static var editingLockedChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_EditingLockedChange + } + public static var externalChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_ExternalChange + } + public static var conflictingChange : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_ConflictingChange + } + public static var author : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_Author + } + public static var advancedProofingIssue : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_AdvancedProofingIssue + } + public static var dataValidationError : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_DataValidationError + } + public static var circularReferenceError : WinUI.AnnotationType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAnnotationType_CircularReferenceError + } +} +extension WinUI.AnnotationType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.AutomationTextEditChangeType { + public static var none : WinUI.AutomationTextEditChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAutomationTextEditChangeType_None + } + public static var autoCorrect : WinUI.AutomationTextEditChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAutomationTextEditChangeType_AutoCorrect + } + public static var composition : WinUI.AutomationTextEditChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAutomationTextEditChangeType_Composition + } + public static var compositionFinalized : WinUI.AutomationTextEditChangeType { + __x_ABI_CMicrosoft_CUI_CXaml_CAutomation_CAutomationTextEditChangeType_CompositionFinalized + } +} +extension WinUI.AutomationTextEditChangeType: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+ABI.swift new file mode 100644 index 0000000..3c5f2a9 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+ABI.swift @@ -0,0 +1,24680 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xD5645E80, Data2: 0xD4D3, Data3: 0x5DF8, Data4: ( 0xA3,0xAC,0x1F,0x9B,0xEE,0xB2,0xBC,0xEF ))// D5645E80-D4D3-5DF8-A3AC-1F9BEEB2BCEF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar: WindowsFoundation.IID { + .init(Data1: 0x3D8C2927, Data2: 0x5AC5, Data3: 0x51BB, Data4: ( 0x8B,0xEC,0x13,0xFF,0x4C,0x1B,0xD6,0xC8 ))// 3D8C2927-5AC5-51BB-8BEC-13FF4C1BD6C8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarFactory: WindowsFoundation.IID { + .init(Data1: 0x66B96B53, Data2: 0x755B, Data3: 0x5472, Data4: ( 0xB2,0xC4,0x86,0x24,0xE9,0x77,0xD6,0x5B ))// 66B96B53-755B-5472-B2C4-8624E977D65B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides: WindowsFoundation.IID { + .init(Data1: 0x67F17798, Data2: 0xE281, Data3: 0x5E53, Data4: ( 0x8E,0xDF,0x42,0xC2,0x9C,0x35,0x4D,0x63 ))// 67F17798-E281-5E53-8EDF-42C29C354D63 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics: WindowsFoundation.IID { + .init(Data1: 0x0DC7172C, Data2: 0xA03D, Data3: 0x5AE4, Data4: ( 0x95,0x38,0xFF,0xD8,0x04,0x82,0x3B,0xCE ))// 0DC7172C-A03D-5AE4-9538-FFD804823BCE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon: WindowsFoundation.IID { + .init(Data1: 0xC370BC29, Data2: 0x805B, Data3: 0x5BAD, Data4: ( 0xB6,0x15,0xEC,0x64,0x0E,0x57,0x9D,0xBB ))// C370BC29-805B-5BAD-B615-EC640E579DBB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconFactory: WindowsFoundation.IID { + .init(Data1: 0xB43B5DDC, Data2: 0xCDB5, Data3: 0x5AD6, Data4: ( 0x8A,0xC1,0x2F,0xCC,0xA3,0x3B,0xE3,0x9E ))// B43B5DDC-CDB5-5AD6-8AC1-2FCCA33BE39E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconStatics: WindowsFoundation.IID { + .init(Data1: 0x01C67EB2, Data2: 0x327E, Data3: 0x5C4E, Data4: ( 0xAF,0xB4,0x38,0xB0,0x2E,0xD1,0x28,0x86 ))// 01C67EB2-327E-5C4E-AFB4-38B02ED12886 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder: WindowsFoundation.IID { + .init(Data1: 0x1CA13B47, Data2: 0xFF5C, Data3: 0x5ABC, Data4: ( 0xA4,0x11,0xA1,0x77,0xDF,0x94,0x82,0xA9 ))// 1CA13B47-FF5C-5ABC-A411-A177DF9482A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics: WindowsFoundation.IID { + .init(Data1: 0x9385CD66, Data2: 0xC178, Data3: 0x5176, Data4: ( 0xB4,0xA5,0x16,0x0E,0x00,0xE9,0x39,0x35 ))// 9385CD66-C178-5176-B4A5-160E00E93935 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton: WindowsFoundation.IID { + .init(Data1: 0x216C183D, Data2: 0xD07A, Data3: 0x5AA5, Data4: ( 0xB8,0xA4,0x03,0x00,0xA2,0x68,0x3E,0x87 ))// 216C183D-D07A-5AA5-B8A4-0300A2683E87 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonFactory: WindowsFoundation.IID { + .init(Data1: 0xFE393422, Data2: 0xD91C, Data3: 0x57B1, Data4: ( 0x9A,0x9C,0x2C,0x7E,0x3F,0x41,0xF7,0x7C ))// FE393422-D91C-57B1-9A9C-2C7E3F41F77C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonStatics: WindowsFoundation.IID { + .init(Data1: 0x57823D25, Data2: 0xB26A, Data3: 0x5E0F, Data4: ( 0x94,0xF6,0xBB,0xAE,0x70,0x68,0x3D,0xC5 ))// 57823D25-B26A-5E0F-94F6-BBAE70683DC5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICandidateWindowBoundsChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB76FAF94, Data2: 0x3172, Data3: 0x5C50, Data4: ( 0x95,0x07,0x26,0xCD,0x87,0x38,0x15,0xA1 ))// B76FAF94-3172-5C50-9507-26CD873815A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvas: WindowsFoundation.IID { + .init(Data1: 0x457BA139, Data2: 0x1146, Data3: 0x51D2, Data4: ( 0x80,0x7E,0xD9,0xD6,0x5C,0x92,0x70,0x60 ))// 457BA139-1146-51D2-807E-D9D65C927060 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasFactory: WindowsFoundation.IID { + .init(Data1: 0x374C5050, Data2: 0x3481, Data3: 0x5557, Data4: ( 0x99,0x48,0x80,0x4C,0x0B,0x8E,0xEA,0x89 ))// 374C5050-3481-5557-9948-804C0B8EEA89 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics: WindowsFoundation.IID { + .init(Data1: 0xC00D5E0F, Data2: 0x77E3, Data3: 0x5C59, Data4: ( 0x8F,0xCD,0x86,0x76,0x1F,0x0C,0x66,0x07 ))// C00D5E0F-77E3-5C59-8FCD-86761F0C6607 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBox: WindowsFoundation.IID { + .init(Data1: 0xC5830000, Data2: 0x4C9D, Data3: 0x5FDD, Data4: ( 0x93,0x46,0x67,0x4C,0x71,0xCD,0x80,0xC5 ))// C5830000-4C9D-5FDD-9346-674C71CD80C5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBoxFactory: WindowsFoundation.IID { + .init(Data1: 0xF43FF58D, Data2: 0x31D5, Data3: 0x5835, Data4: ( 0xAF,0x7B,0x37,0x5B,0xC6,0xA9,0xBC,0xF3 ))// F43FF58D-31D5-5835-AF7B-375BC6A9BCF3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2DB1B0B0, Data2: 0xAEE9, Data3: 0x55FA, Data4: ( 0x8C,0x30,0xC9,0x8F,0x00,0x64,0x3D,0x00 ))// 2DB1B0B0-AEE9-55FA-8C30-C98F00643D00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB479B9D2, Data2: 0xA63F, Data3: 0x5638, Data4: ( 0x94,0x86,0x8C,0xCC,0x1F,0x40,0x25,0x1E ))// B479B9D2-A63F-5638-9486-8CCC1F40251E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition: WindowsFoundation.IID { + .init(Data1: 0x454CEA14, Data2: 0x87EC, Data3: 0x5890, Data4: ( 0xBB,0x62,0xF1,0xD8,0x2A,0x94,0x75,0x8E ))// 454CEA14-87EC-5890-BB62-F1D82A94758E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinitionStatics: WindowsFoundation.IID { + .init(Data1: 0xABA4B755, Data2: 0xCA63, Data3: 0x5ED7, Data4: ( 0xAE,0x31,0x45,0xF9,0xF9,0x19,0x20,0xB0 ))// ABA4B755-CA63-5ED7-AE31-45F9F91920B0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox: WindowsFoundation.IID { + .init(Data1: 0xC77DA58B, Data2: 0x4FD7, Data3: 0x51E0, Data4: ( 0xA4,0x31,0xF8,0x46,0x58,0xA8,0x3E,0x9E ))// C77DA58B-4FD7-51E0-A431-F84658A83E9E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxFactory: WindowsFoundation.IID { + .init(Data1: 0x71C1014B, Data2: 0xACDF, Data3: 0x5C03, Data4: ( 0xB5,0xED,0x02,0x87,0x1C,0xAA,0xEB,0x6B ))// 71C1014B-ACDF-5C03-B5ED-02871CAAEB6B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides: WindowsFoundation.IID { + .init(Data1: 0xA6AFBC7A, Data2: 0x284F, Data3: 0x5B9A, Data4: ( 0x89,0xFE,0xA3,0x34,0xB6,0x13,0xF8,0x95 ))// A6AFBC7A-284F-5B9A-89FE-A334B613F895 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics: WindowsFoundation.IID { + .init(Data1: 0x7DA7CD09, Data2: 0xE256, Data3: 0x5238, Data4: ( 0x9F,0xED,0x02,0xB2,0xF3,0xAF,0xBA,0x25 ))// 7DA7CD09-E256-5238-9FED-02B2F3AFBA25 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxTextSubmittedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0D7A9794, Data2: 0x73B5, Data3: 0x585E, Data4: ( 0xBF,0xBB,0xDE,0x6D,0xF7,0xEB,0x9F,0xCF ))// 0D7A9794-73B5-585E-BFBB-DE6DF7EB9FCF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xF4C8C937, Data2: 0xB070, Data3: 0x53CE, Data4: ( 0xA7,0x6C,0x07,0x4E,0xE5,0x75,0x0A,0x71 ))// F4C8C937-B070-53CE-A76C-074EE5750A71 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl: WindowsFoundation.IID { + .init(Data1: 0x07E81761, Data2: 0x11B2, Data3: 0x52AE, Data4: ( 0x8F,0x8B,0x4D,0x53,0xD2,0xB5,0x90,0x0A ))// 07E81761-11B2-52AE-8F8B-4D53D2B5900A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlFactory: WindowsFoundation.IID { + .init(Data1: 0x3DEA958E, Data2: 0x5ACD, Data3: 0x5F80, Data4: ( 0x89,0x38,0x38,0x63,0x4F,0x51,0x49,0x3A ))// 3DEA958E-5ACD-5F80-8938-38634F51493A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides: WindowsFoundation.IID { + .init(Data1: 0x2504174A, Data2: 0x017E, Data3: 0x5A2D, Data4: ( 0x9C,0x28,0xD9,0x7C,0x66,0xAE,0x99,0x37 ))// 2504174A-017E-5A2D-9C28-D97C66AE9937 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics: WindowsFoundation.IID { + .init(Data1: 0xF25484F4, Data2: 0x2FED, Data3: 0x5A0A, Data4: ( 0x88,0x64,0x7D,0x6D,0x4A,0xC4,0x3E,0xF8 ))// F25484F4-2FED-5A0A-8864-7D6D4AC43EF8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog: WindowsFoundation.IID { + .init(Data1: 0xAC2145A3, Data2: 0x4A32, Data3: 0x5305, Data4: ( 0xA8,0x1D,0x47,0x50,0x95,0x15,0xBF,0xCE ))// AC2145A3-4A32-5305-A81D-47509515BFCE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickDeferral: WindowsFoundation.IID { + .init(Data1: 0xDDCA6D2E, Data2: 0xA81A, Data3: 0x5F61, Data4: ( 0x8B,0x87,0xE4,0xB6,0xEC,0x5F,0xA3,0x98 ))// DDCA6D2E-A81A-5F61-8B87-E4B6EC5FA398 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBAE6261C, Data2: 0x362F, Data3: 0x5342, Data4: ( 0xBA,0x26,0x5F,0x69,0x90,0xEF,0x72,0x6C ))// BAE6261C-362F-5342-BA26-5F6990EF726C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9B84E681, Data2: 0x1AB6, Data3: 0x5485, Data4: ( 0x88,0xB2,0xD0,0xD3,0xC0,0x5B,0x29,0xF3 ))// 9B84E681-1AB6-5485-88B2-D0D3C05B29F3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingDeferral: WindowsFoundation.IID { + .init(Data1: 0x9D74ECC1, Data2: 0x67D3, Data3: 0x5F02, Data4: ( 0x9B,0x30,0x56,0xF3,0xB2,0xE8,0xB0,0xA6 ))// 9D74ECC1-67D3-5F02-9B30-56F3B2E8B0A6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x12782103, Data2: 0x3B80, Data3: 0x511C, Data4: ( 0x91,0x28,0x12,0xCB,0x8C,0xDA,0xC4,0x44 ))// 12782103-3B80-511C-9128-12CB8CDAC444 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogFactory: WindowsFoundation.IID { + .init(Data1: 0xA05B3AD7, Data2: 0xC60E, Data3: 0x545A, Data4: ( 0x9E,0xE4,0xF0,0x98,0x22,0x0E,0xD8,0x16 ))// A05B3AD7-C60E-545A-9EE4-F098220ED816 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogOpenedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xD1355ED8, Data2: 0x64ED, Data3: 0x5BBC, Data4: ( 0x94,0x11,0x5F,0x4D,0xBC,0xA7,0xD9,0x3F ))// D1355ED8-64ED-5BBC-9411-5F4DBCA7D93F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics: WindowsFoundation.IID { + .init(Data1: 0x397B18DD, Data2: 0x6964, Data3: 0x5056, Data4: ( 0x97,0xC3,0xD6,0x9C,0xD7,0x71,0x6A,0x4B ))// 397B18DD-6964-5056-97C3-D69CD7716A4B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter: WindowsFoundation.IID { + .init(Data1: 0x075E6CA8, Data2: 0xDA46, Data3: 0x5EC6, Data4: ( 0x8C,0x64,0x03,0xB3,0xDD,0xEA,0xF7,0x4F ))// 075E6CA8-DA46-5EC6-8C64-03B3DDEAF74F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterFactory: WindowsFoundation.IID { + .init(Data1: 0x730B1D5E, Data2: 0x2540, Data3: 0x5A3D, Data4: ( 0xA6,0xC7,0x88,0x8A,0xA8,0x61,0x46,0x10 ))// 730B1D5E-2540-5A3D-A6C7-888AA8614610 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides: WindowsFoundation.IID { + .init(Data1: 0x00E96954, Data2: 0xD6E0, Data3: 0x510F, Data4: ( 0xA2,0xD2,0x38,0xA0,0x32,0xB9,0x62,0x36 ))// 00E96954-D6E0-510F-A2D2-38A032B96236 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics: WindowsFoundation.IID { + .init(Data1: 0xC3E55F6C, Data2: 0x7ABE, Data3: 0x568F, Data4: ( 0xB6,0x7B,0x8E,0xBD,0x32,0x74,0xF3,0x3E ))// C3E55F6C-7ABE-568F-B67B-8EBD3274F33E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs: WindowsFoundation.IID { + .init(Data1: 0x65637BB3, Data2: 0xE279, Data3: 0x5507, Data4: ( 0xBD,0x16,0x6F,0x7B,0xA6,0x70,0x5F,0x31 ))// 65637BB3-E279-5507-BD16-6F7BA6705F31 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl: WindowsFoundation.IID { + .init(Data1: 0x857D6E8A, Data2: 0xD45A, Data3: 0x5C69, Data4: ( 0xA9,0x9C,0xBF,0x6A,0x5C,0x54,0xFB,0x38 ))// 857D6E8A-D45A-5C69-A99C-BF6A5C54FB38 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlFactory: WindowsFoundation.IID { + .init(Data1: 0x25159233, Data2: 0x9438, Data3: 0x5534, Data4: ( 0xAE,0xB9,0x00,0xEB,0x05,0x9C,0xF7,0x3F ))// 25159233-9438-5534-AEB9-00EB059CF73F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides: WindowsFoundation.IID { + .init(Data1: 0x5F644395, Data2: 0x2177, Data3: 0x5161, Data4: ( 0x9F,0x87,0xC6,0xC7,0x49,0xC7,0x3A,0x03 ))// 5F644395-2177-5161-9F87-C6C749C73A03 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlProtected: WindowsFoundation.IID { + .init(Data1: 0x5C750339, Data2: 0x1789, Data3: 0x5095, Data4: ( 0xA2,0x14,0xDD,0x9D,0x05,0x64,0xE5,0x79 ))// 5C750339-1789-5095-A214-DD9D0564E579 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics: WindowsFoundation.IID { + .init(Data1: 0xC3AE388D, Data2: 0xAA36, Data3: 0x5E10, Data4: ( 0xAC,0xAC,0x98,0x41,0x5F,0x47,0xBC,0xC7 ))// C3AE388D-AA36-5E10-ACAC-98415F47BCC7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlTemplate: WindowsFoundation.IID { + .init(Data1: 0x3A192751, Data2: 0x2106, Data3: 0x547A, Data4: ( 0xAC,0xA0,0xF1,0x5A,0xE8,0x92,0x6E,0xA0 ))// 3A192751-2106-547A-ACA0-F15AE8926EA0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector: WindowsFoundation.IID { + .init(Data1: 0x86CA4FA4, Data2: 0x7DE0, Data3: 0x5049, Data4: ( 0x82,0xF5,0x39,0xEC,0x78,0x56,0x90,0x28 ))// 86CA4FA4-7DE0-5049-82F5-39EC78569028 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorFactory: WindowsFoundation.IID { + .init(Data1: 0x43217EDA, Data2: 0x6F7F, Data3: 0x5B80, Data4: ( 0xA7,0x0B,0x94,0x45,0x11,0xB3,0x54,0xAB ))// 43217EDA-6F7F-5B80-A70B-944511B354AB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides: WindowsFoundation.IID { + .init(Data1: 0x980448CC, Data2: 0xC114, Data3: 0x5B89, Data4: ( 0x8E,0x09,0x61,0xB0,0xF2,0x64,0xE5,0x92 ))// 980448CC-C114-5B89-8E09-61B0F264E592 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC0138552, Data2: 0xF467, Data3: 0x5C3E, Data4: ( 0x8A,0xF4,0x59,0x36,0x07,0x76,0x28,0x44 ))// C0138552-F467-5C3E-8AF4-593607762844 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA6938886, Data2: 0x20DF, Data3: 0x558E, Data4: ( 0xAC,0x74,0xBB,0x5B,0x7F,0x2F,0x7E,0x90 ))// A6938886-20DF-558E-AC74-BB5B7F2F7E90 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView: WindowsFoundation.IID { + .init(Data1: 0x96C35E7F, Data2: 0xCC48, Data3: 0x5ACC, Data4: ( 0xB3,0xB4,0x8A,0xB4,0xBD,0xF1,0xFE,0x17 ))// 96C35E7F-CC48-5ACC-B3B4-8AB4BDF1FE17 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewFactory: WindowsFoundation.IID { + .init(Data1: 0xF3A89BE6, Data2: 0x81E3, Data3: 0x53C4, Data4: ( 0x9D,0xC9,0x98,0xA5,0xA4,0xE7,0x9B,0x13 ))// F3A89BE6-81E3-53C4-9DC9-98A5A4E79B13 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItem: WindowsFoundation.IID { + .init(Data1: 0x516F2058, Data2: 0xAF67, Data3: 0x5EB3, Data4: ( 0xB7,0x96,0xE7,0x5B,0x34,0xF3,0xFD,0x92 ))// 516F2058-AF67-5EB3-B796-E75B34F3FD92 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItemFactory: WindowsFoundation.IID { + .init(Data1: 0xDEB2CD5F, Data2: 0x9D76, Data3: 0x5678, Data4: ( 0xB1,0xCA,0x02,0x67,0x75,0x7C,0x4F,0xED ))// DEB2CD5F-9D76-5678-B1CA-0267757C4FED +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewStatics: WindowsFoundation.IID { + .init(Data1: 0x1E98FC86, Data2: 0x2BC1, Data3: 0x5C89, Data4: ( 0x83,0x05,0x25,0x1A,0xD5,0x6A,0x9C,0xDB ))// 1E98FC86-2BC1-5C89-8305-251AD56A9CDB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout: WindowsFoundation.IID { + .init(Data1: 0xD4A1EB7D, Data2: 0x59B8, Data3: 0x5DF9, Data4: ( 0x87,0xC3,0xBD,0x5E,0x38,0x56,0x92,0x3F ))// D4A1EB7D-59B8-5DF9-87C3-BD5E3856923F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutFactory: WindowsFoundation.IID { + .init(Data1: 0xFD19002E, Data2: 0x66B3, Data3: 0x5656, Data4: ( 0xB4,0x9C,0xB2,0xAC,0xA1,0x1E,0x96,0x02 ))// FD19002E-66B3-5656-B49C-B2ACA11E9602 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter: WindowsFoundation.IID { + .init(Data1: 0x70259825, Data2: 0x7F56, Data3: 0x5107, Data4: ( 0x91,0x7E,0x71,0x94,0xB1,0xEF,0x1B,0x81 ))// 70259825-7F56-5107-917E-7194B1EF1B81 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterFactory: WindowsFoundation.IID { + .init(Data1: 0xE9539A80, Data2: 0x74ED, Data3: 0x5158, Data4: ( 0x9F,0x93,0x89,0x36,0x69,0xCB,0x04,0x6F ))// E9539A80-74ED-5158-9F93-893669CB046F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterStatics: WindowsFoundation.IID { + .init(Data1: 0xB415A2EC, Data2: 0x1BDD, Data3: 0x5F94, Data4: ( 0x95,0x00,0x25,0x72,0x23,0x64,0x64,0x69 ))// B415A2EC-1BDD-5F94-9500-257223646469 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutStatics: WindowsFoundation.IID { + .init(Data1: 0x23AE001A, Data2: 0xAAA6, Data3: 0x5D19, Data4: ( 0x99,0x47,0x91,0x7E,0xCB,0xD8,0x83,0xCA ))// 23AE001A-AAA6-5D19-9947-917ECBD883CA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusDisengagedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC0B4B88C, Data2: 0xC195, Data3: 0x5064, Data4: ( 0x84,0xC7,0x33,0xCB,0x26,0x2C,0xB2,0x40 ))// C0B4B88C-C195-5064-84C7-33CB262CB240 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusEngagedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1E71E8E4, Data2: 0x74B2, Data3: 0x50A1, Data4: ( 0x8F,0x2B,0x42,0xC0,0x11,0x8A,0xB0,0xEA ))// 1E71E8E4-74B2-50A1-8F2B-42C0118AB0EA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon: WindowsFoundation.IID { + .init(Data1: 0x6EBA5ED9, Data2: 0xD233, Data3: 0x5F5E, Data4: ( 0x91,0xA8,0xF5,0x13,0x42,0x92,0x65,0x8A ))// 6EBA5ED9-D233-5F5E-91A8-F5134292658A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconFactory: WindowsFoundation.IID { + .init(Data1: 0xAA9A24FE, Data2: 0xBEF8, Data3: 0x564A, Data4: ( 0xB2,0x00,0x69,0x4C,0xD6,0xF6,0xBA,0x4E ))// AA9A24FE-BEF8-564A-B200-694CD6F6BA4E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource: WindowsFoundation.IID { + .init(Data1: 0xB89D614C, Data2: 0xE9B5, Data3: 0x5B6A, Data4: ( 0x9B,0xEC,0xAD,0x78,0xB1,0xA1,0x4B,0x74 ))// B89D614C-E9B5-5B6A-9BEC-AD78B1A14B74 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceFactory: WindowsFoundation.IID { + .init(Data1: 0xBB40EEEE, Data2: 0x64D1, Data3: 0x5133, Data4: ( 0xB1,0xD6,0xAE,0x13,0xC2,0x1B,0x66,0x78 ))// BB40EEEE-64D1-5133-B1D6-AE13C21B6678 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xC309C231, Data2: 0xF7BF, Data3: 0x5C06, Data4: ( 0xA2,0xD2,0x56,0x50,0x2C,0xFD,0x33,0xE5 ))// C309C231-F7BF-5C06-A2D2-56502CFD33E5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics: WindowsFoundation.IID { + .init(Data1: 0x55564030, Data2: 0x2F80, Data3: 0x5BE5, Data4: ( 0x8C,0x2A,0xEB,0xB6,0xEC,0xBA,0x07,0xE8 ))// 55564030-2F80-5BE5-8C2A-EBB6ECBA07E8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame: WindowsFoundation.IID { + .init(Data1: 0xE6D50443, Data2: 0x621E, Data3: 0x5360, Data4: ( 0x85,0x6A,0x75,0xB0,0x1E,0x1F,0xCD,0x22 ))// E6D50443-621E-5360-856A-75B01E1FCD22 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameFactory: WindowsFoundation.IID { + .init(Data1: 0x53A3070F, Data2: 0x19D9, Data3: 0x59BC, Data4: ( 0xBD,0xD6,0x4D,0xBF,0x13,0x9E,0x7D,0xA5 ))// 53A3070F-19D9-59BC-BDD6-4DBF139E7DA5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x8A974D00, Data2: 0x8DA2, Data3: 0x588A, Data4: ( 0xA1,0x82,0x1F,0x76,0x21,0xEE,0x65,0x0B ))// 8A974D00-8DA2-588A-A182-1F7621EE650B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid: WindowsFoundation.IID { + .init(Data1: 0xC4496219, Data2: 0x9014, Data3: 0x58A1, Data4: ( 0xB4,0xAD,0xC5,0x04,0x49,0x13,0xA5,0xBB ))// C4496219-9014-58A1-B4AD-C5044913A5BB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridFactory: WindowsFoundation.IID { + .init(Data1: 0xB16BF561, Data2: 0xFC6C, Data3: 0x57C6, Data4: ( 0x8E,0xBC,0x0B,0x06,0xCE,0x45,0x13,0xAA ))// B16BF561-FC6C-57C6-8EBC-0B06CE4513AA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics: WindowsFoundation.IID { + .init(Data1: 0xEF9CF81D, Data2: 0xA431, Data3: 0x50F4, Data4: ( 0xAB,0xF5,0x30,0x23,0xFE,0x44,0x77,0x04 ))// EF9CF81D-A431-50F4-ABF5-3023FE447704 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridView: WindowsFoundation.IID { + .init(Data1: 0xD495F2FA, Data2: 0x594D, Data3: 0x5170, Data4: ( 0xB1,0xE8,0x86,0x29,0xA1,0x79,0xF9,0xFB ))// D495F2FA-594D-5170-B1E8-8629A179F9FB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridViewFactory: WindowsFoundation.IID { + .init(Data1: 0x892947EA, Data2: 0x6B86, Data3: 0x5F17, Data4: ( 0xA9,0xB8,0x21,0x21,0xB2,0x25,0x12,0x71 ))// 892947EA-6B86-5F17-A9B8-2121B2251271 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle: WindowsFoundation.IID { + .init(Data1: 0xA77D937E, Data2: 0x0188, Data3: 0x584C, Data4: ( 0xAB,0x1D,0x9D,0xF1,0x91,0x6E,0xDC,0x75 ))// A77D937E-0188-584C-AB1D-9DF1916EDC75 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleFactory: WindowsFoundation.IID { + .init(Data1: 0xDC884AA2, Data2: 0xE2A8, Data3: 0x57AB, Data4: ( 0x8C,0xBC,0xB1,0xD8,0xEC,0x54,0x0B,0x0C ))// DC884AA2-E2A8-57AB-8CBC-B1D8EC540B0C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelector: WindowsFoundation.IID { + .init(Data1: 0x524F5086, Data2: 0x3E02, Data3: 0x5B71, Data4: ( 0xBE,0x7C,0x8A,0x8F,0xA0,0xFE,0xAA,0x2C ))// 524F5086-3E02-5B71-BE7C-8A8FA0FEAA2C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorFactory: WindowsFoundation.IID { + .init(Data1: 0x0E0699BE, Data2: 0x50C2, Data3: 0x5C15, Data4: ( 0xAE,0xD3,0xE7,0xBD,0x66,0x3E,0x5F,0xAD ))// 0E0699BE-50C2-5C15-AED3-E7BD663E5FAD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverrides: WindowsFoundation.IID { + .init(Data1: 0x80594304, Data2: 0xEBEB, Data3: 0x5A5D, Data4: ( 0xA7,0x94,0xAC,0xDC,0x21,0x4C,0xBC,0x94 ))// 80594304-EBEB-5A5D-A794-ACDC214CBC94 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton: WindowsFoundation.IID { + .init(Data1: 0x6DBEE605, Data2: 0x8DF0, Data3: 0x50CC, Data4: ( 0x9A,0x42,0x25,0x0E,0xB1,0x38,0xF0,0xC6 ))// 6DBEE605-8DF0-50CC-9A42-250EB138F0C6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonFactory: WindowsFoundation.IID { + .init(Data1: 0x01F775EA, Data2: 0xC5ED, Data3: 0x514A, Data4: ( 0xA2,0x3D,0x89,0xC4,0x94,0xA8,0xF0,0x9D ))// 01F775EA-C5ED-514A-A23D-89C494A8F09D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonStatics: WindowsFoundation.IID { + .init(Data1: 0xAB5C7B77, Data2: 0x7C4C, Data3: 0x5B26, Data4: ( 0x9C,0x7C,0x76,0x3F,0x8D,0x95,0x25,0x8E ))// AB5C7B77-7C4C-5B26-9C7C-763F8D95258E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement: WindowsFoundation.IID { + .init(Data1: 0x18F69350, Data2: 0x279E, Data3: 0x50EA, Data4: ( 0x8D,0x23,0x13,0x8E,0x71,0x7E,0xD9,0x39 ))// 18F69350-279E-50EA-8D23-138E717ED939 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElementFactory: WindowsFoundation.IID { + .init(Data1: 0x7161EEFF, Data2: 0x2CC3, Data3: 0x59C9, Data4: ( 0xB3,0x55,0xF7,0x52,0xEF,0x20,0x30,0xFB ))// 7161EEFF-2CC3-59C9-B355-F752EF2030FB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElementStatics: WindowsFoundation.IID { + .init(Data1: 0x4CCFDC81, Data2: 0x9D9D, Data3: 0x5A02, Data4: ( 0xB9,0x5B,0xAD,0x1A,0xDD,0x92,0x17,0x50 ))// 4CCFDC81-9D9D-5A02-B95B-AD1ADD921750 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource: WindowsFoundation.IID { + .init(Data1: 0x39E6B320, Data2: 0xA2AF, Data3: 0x5EE3, Data4: ( 0xB7,0xE9,0x4B,0xA4,0xAA,0x80,0x54,0x1A ))// 39E6B320-A2AF-5EE3-B7E9-4BA4AA80541A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement: WindowsFoundation.IID { + .init(Data1: 0xAB6F4473, Data2: 0x1F6B, Data3: 0x5B24, Data4: ( 0x82,0x59,0x1D,0x38,0xE9,0x0A,0x11,0x0A ))// AB6F4473-1F6B-5B24-8259-1D38E90A110A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementFactory: WindowsFoundation.IID { + .init(Data1: 0x13E1A240, Data2: 0xAD47, Data3: 0x51AE, Data4: ( 0x96,0x32,0x71,0x5F,0x4B,0x7E,0xA5,0x2E ))// 13E1A240-AD47-51AE-9632-715F4B7EA52E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementStatics: WindowsFoundation.IID { + .init(Data1: 0x2CC2539F, Data2: 0x69FC, Data3: 0x5160, Data4: ( 0xAB,0x84,0x37,0xE7,0xE0,0x4E,0x26,0x91 ))// 2CC2539F-69FC-5160-AB84-37E7E04E2691 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceFactory: WindowsFoundation.IID { + .init(Data1: 0xE8BC19C6, Data2: 0x9A64, Data3: 0x5C54, Data4: ( 0x93,0x38,0xE1,0x8E,0x07,0x68,0x75,0xBF ))// E8BC19C6-9A64-5C54-9338-E18E076875BF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides: WindowsFoundation.IID { + .init(Data1: 0x9A02D369, Data2: 0x1C79, Data3: 0x5A81, Data4: ( 0x87,0x1B,0x0B,0x90,0x94,0x6B,0xA7,0xF0 ))// 9A02D369-1C79-5A81-871B-0B90946BA7F0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xEED55973, Data2: 0x7E15, Data3: 0x575F, Data4: ( 0xAF,0x8E,0xAE,0x2B,0x9B,0x97,0x5D,0xD7 ))// EED55973-7E15-575F-AF8E-AE2B9B975DD7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage: WindowsFoundation.IID { + .init(Data1: 0x220D3D8D, Data2: 0x66DE, Data3: 0x53A1, Data4: ( 0xA2,0x15,0xBA,0x9C,0x16,0x55,0x65,0xAB ))// 220D3D8D-66DE-53A1-A215-BA9C165565AB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon: WindowsFoundation.IID { + .init(Data1: 0x78A7B526, Data2: 0xE635, Data3: 0x59C6, Data4: ( 0x93,0xA1,0xD7,0xE3,0xC2,0xFA,0xC6,0xD5 ))// 78A7B526-E635-59C6-93A1-D7E3C2FAC6D5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconFactory: WindowsFoundation.IID { + .init(Data1: 0x235E0279, Data2: 0xA7D0, Data3: 0x5FDA, Data4: ( 0xA3,0x08,0x9B,0x7C,0xB9,0xC4,0xC9,0x12 ))// 235E0279-A7D0-5FDA-A308-9B7CB9C4C912 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconStatics: WindowsFoundation.IID { + .init(Data1: 0x6BD31828, Data2: 0xF8F9, Data3: 0x5D86, Data4: ( 0x80,0xD5,0xE7,0x42,0x35,0x46,0xDA,0x7D ))// 6BD31828-F8F9-5D86-80D5-E7423546DA7D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageStatics: WindowsFoundation.IID { + .init(Data1: 0xCB5378A8, Data2: 0x996B, Data3: 0x547E, Data4: ( 0x9C,0x4C,0x7B,0xBF,0xD9,0xDB,0xE7,0xDC ))// CB5378A8-996B-547E-9C4C-7BBFD9DBE7DC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar: WindowsFoundation.IID { + .init(Data1: 0xC1C3A438, Data2: 0xDD79, Data3: 0x5D22, Data4: ( 0x9E,0x42,0x5A,0x3C,0xDF,0x81,0x13,0xA9 ))// C1C3A438-DD79-5D22-9E42-5A3CDF8113A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x593AF0B3, Data2: 0xBDED, Data3: 0x53DA, Data4: ( 0x8F,0x56,0x80,0xED,0x3C,0x64,0x32,0x2C ))// 593AF0B3-BDED-53DA-8F56-80ED3C64322C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x42FE1F7E, Data2: 0x6D68, Data3: 0x5A85, Data4: ( 0x8A,0x5C,0xAB,0xB7,0xEF,0xFC,0xDF,0x26 ))// 42FE1F7E-6D68-5A85-8A5C-ABB7EFFCDF26 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x062D01D6, Data2: 0x61AF, Data3: 0x5435, Data4: ( 0x8C,0x4B,0xC5,0x11,0x06,0x58,0x3B,0x5B ))// 062D01D6-61AF-5435-8C4B-C51106583B5B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0xD6CFCC14, Data2: 0x5206, Data3: 0x5C9D, Data4: ( 0x80,0x1C,0x3A,0x90,0xB4,0xE2,0xEB,0xE4 ))// D6CFCC14-5206-5C9D-801C-3A90B4E2EBE4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarFactory: WindowsFoundation.IID { + .init(Data1: 0x60618A60, Data2: 0x9BE7, Data3: 0x5DF5, Data4: ( 0xBE,0x0D,0x93,0x3D,0x34,0xDD,0xB4,0x4C ))// 60618A60-9BE7-5DF5-BE0D-933D34DDB44C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics: WindowsFoundation.IID { + .init(Data1: 0x5FB1E80D, Data2: 0xEA5D, Data3: 0x57BA, Data4: ( 0x99,0x15,0xB6,0x78,0x2B,0x98,0x2A,0xCA ))// 5FB1E80D-EA5D-57BA-9915-B6782B982ACA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x926F7292, Data2: 0x9882, Data3: 0x5056, Data4: ( 0x80,0x97,0x6D,0xA2,0xA7,0xEA,0x27,0xCD ))// 926F7292-9882-5056-8097-6DA2A7EA27CD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsFactory: WindowsFoundation.IID { + .init(Data1: 0x29517DAF, Data2: 0xC763, Data3: 0x56CE, Data4: ( 0x8D,0x54,0xEE,0xFC,0xAF,0x7F,0x2E,0x01 ))// 29517DAF-C763-56CE-8D54-EEFCAF7F2E01 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsStatics: WindowsFoundation.IID { + .init(Data1: 0x57671639, Data2: 0x43E8, Data3: 0x506D, Data4: ( 0xB9,0xA7,0x53,0x9A,0x60,0x5A,0x1C,0x67 ))// 57671639-43E8-506D-B9A7-539A605A1C67 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanel: WindowsFoundation.IID { + .init(Data1: 0x84E13E27, Data2: 0x2D24, Data3: 0x59C4, Data4: ( 0xA0,0x0E,0x16,0xC7,0x25,0x59,0x01,0xE2 ))// 84E13E27-2D24-59C4-A00E-16C7255901E2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIsTextTrimmedChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3C709B2F, Data2: 0x16BA, Data3: 0x55D2, Data4: ( 0xB6,0xF6,0xDF,0xC5,0x4A,0x1E,0xD0,0x21 ))// 3C709B2F-16BA-55D2-B6F6-DFC54A1ED021 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1CF87A70, Data2: 0x6348, Data3: 0x57EC, Data4: ( 0x9E,0xAC,0xFA,0x05,0x65,0xAD,0xC6,0x0F ))// 1CF87A70-6348-57EC-9EAC-FA0565ADC60F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition: WindowsFoundation.IID { + .init(Data1: 0x63A8D310, Data2: 0x4D8A, Data3: 0x515E, Data4: ( 0xA9,0x00,0x04,0x16,0xD9,0x37,0x45,0x75 ))// 63A8D310-4D8A-515E-A900-0416D9374575 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB43CA4F6, Data2: 0x7AE5, Data3: 0x576F, Data4: ( 0xB7,0x4D,0xEC,0x70,0xB1,0xC5,0x84,0x88 ))// B43CA4F6-7AE5-576F-B74D-EC70B1C58488 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress: WindowsFoundation.IID { + .init(Data1: 0x4DA82DDE, Data2: 0xC778, Data3: 0x57F6, Data4: ( 0xA0,0xE7,0xA7,0x67,0xEF,0x08,0x59,0x1D ))// 4DA82DDE-C778-57F6-A0E7-A767EF08591D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider: WindowsFoundation.IID { + .init(Data1: 0x32132262, Data2: 0xE07D, Data3: 0x51F7, Data4: ( 0xA6,0x88,0x95,0x28,0x04,0x2F,0x7E,0x0B ))// 32132262-E07D-51F7-A688-9528042F7E0B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderFactory: WindowsFoundation.IID { + .init(Data1: 0xF1B53104, Data2: 0x24BE, Data3: 0x510D, Data4: ( 0x9E,0xB1,0x34,0x01,0xDE,0x36,0x1D,0xBC ))// F1B53104-24BE-510D-9EB1-3401DE361DBC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides: WindowsFoundation.IID { + .init(Data1: 0x6935222B, Data2: 0xEF83, Data3: 0x5872, Data4: ( 0xA9,0xD4,0x83,0x19,0xBC,0xD6,0x7A,0x67 ))// 6935222B-EF83-5872-A9D4-8319BCD67A67 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator: WindowsFoundation.IID { + .init(Data1: 0xC4C5D5AE, Data2: 0xED98, Data3: 0x510F, Data4: ( 0xAF,0xAE,0x8A,0x0A,0xC6,0x06,0x7A,0x3B ))// C4C5D5AE-ED98-510F-AFAE-8A0AC6067A3B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping: WindowsFoundation.IID { + .init(Data1: 0xB3E03A32, Data2: 0xEA83, Data3: 0x5626, Data4: ( 0xBF,0xDA,0xD3,0x27,0xA1,0xC7,0x55,0x0C ))// B3E03A32-EA83-5626-BFDA-D327A1C7550C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl: WindowsFoundation.IID { + .init(Data1: 0xBF1CCB54, Data2: 0x83E2, Data3: 0x5B98, Data4: ( 0xAC,0xBC,0x73,0x6F,0x87,0x6C,0x3D,0x35 ))// BF1CCB54-83E2-5B98-ACBC-736F876C3D35 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlFactory: WindowsFoundation.IID { + .init(Data1: 0xB2686273, Data2: 0x2DD3, Data3: 0x5454, Data4: ( 0x9F,0x25,0x24,0x7E,0x66,0x27,0x03,0x36 ))// B2686273-2DD3-5454-9F25-247E66270336 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides: WindowsFoundation.IID { + .init(Data1: 0x285C215F, Data2: 0x64B2, Data3: 0x5F7D, Data4: ( 0x88,0xD2,0x56,0xC6,0x65,0x8F,0x73,0xEE ))// 285C215F-64B2-5F7D-88D2-56C6658F73EE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics: WindowsFoundation.IID { + .init(Data1: 0x4FB961E1, Data2: 0x5F91, Data3: 0x5585, Data4: ( 0xA6,0x92,0x68,0x25,0xCD,0xE3,0xED,0x1E ))// 4FB961E1-5F91-5585-A692-6825CDE3ED1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsPanelTemplate: WindowsFoundation.IID { + .init(Data1: 0x6153AF2F, Data2: 0xF095, Data3: 0x5E8C, Data4: ( 0x89,0xD4,0x9E,0x03,0x20,0x3B,0x9C,0xC2 ))// 6153AF2F-F095-5E8C-89D4-9E03203B9CC2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater: WindowsFoundation.IID { + .init(Data1: 0x9DABAC84, Data2: 0xFE81, Data3: 0x53D1, Data4: ( 0xA0,0x41,0x7A,0x3B,0xEF,0xEA,0x50,0x5F ))// 9DABAC84-FE81-53D1-A041-7A3BEFEA505F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater2: WindowsFoundation.IID { + .init(Data1: 0x265E249A, Data2: 0x2812, Data3: 0x55B6, Data4: ( 0xA1,0x91,0xCB,0x96,0x08,0x9B,0x51,0xAC ))// 265E249A-2812-55B6-A191-CB96089B51AC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementClearingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8F394A59, Data2: 0x07C6, Data3: 0x54CE, Data4: ( 0x80,0xD1,0xBB,0x0B,0x71,0xDA,0xEF,0xA0 ))// 8F394A59-07C6-54CE-80D1-BB0B71DAEFA0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x38E3D613, Data2: 0x48FB, Data3: 0x5906, Data4: ( 0xBF,0x18,0xF7,0x13,0x03,0x01,0xFC,0xC3 ))// 38E3D613-48FB-5906-BF18-F7130301FCC3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x612DB572, Data2: 0xC2E7, Data3: 0x58FC, Data4: ( 0x94,0x8A,0xB7,0xDC,0x0E,0x1F,0xC1,0x3A ))// 612DB572-C2E7-58FC-948A-B7DC0E1FC13A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterFactory: WindowsFoundation.IID { + .init(Data1: 0xC3C1F244, Data2: 0x67A8, Data3: 0x568F, Data4: ( 0xA6,0xF7,0x5D,0xA8,0xB0,0xEA,0xDD,0x49 ))// C3C1F244-67A8-568F-A6F7-5DA8B0EADD49 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics: WindowsFoundation.IID { + .init(Data1: 0xED8C4CB7, Data2: 0x2EDC, Data3: 0x5416, Data4: ( 0xAF,0xBF,0x87,0xA9,0xAA,0x2A,0xF2,0x6E ))// ED8C4CB7-2EDC-5416-AFBF-87A9AA2AF26E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics2: WindowsFoundation.IID { + .init(Data1: 0x83D8B5EA, Data2: 0xCA31, Data3: 0x5192, Data4: ( 0xB9,0xA9,0x2A,0x62,0xE6,0x01,0x94,0xE7 ))// 83D8B5EA-CA31-5192-B9A9-2A62E60194E7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView: WindowsFoundation.IID { + .init(Data1: 0xF7F802DE, Data2: 0xE79C, Data3: 0x5C5F, Data4: ( 0xAB,0xF8,0xCC,0xBD,0x48,0x6B,0x89,0xD6 ))// F7F802DE-E79C-5C5F-ABF8-CCBD486B89D6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceViewFactory: WindowsFoundation.IID { + .init(Data1: 0xAADC6FDD, Data2: 0xEB00, Data3: 0x5E58, Data4: ( 0xB9,0x5D,0x12,0x0F,0x89,0x1D,0x73,0x3F ))// AADC6FDD-EB00-5E58-B95D-120F891D733F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMapping: WindowsFoundation.IID { + .init(Data1: 0xB1F3BBA0, Data2: 0x108E, Data3: 0x560D, Data4: ( 0x96,0x81,0x26,0x39,0x1B,0x4B,0xC3,0x0D ))// B1F3BBA0-108E-560D-9681-26391B4BC30D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout: WindowsFoundation.IID { + .init(Data1: 0x24E50C1C, Data2: 0x9C51, Data3: 0x5144, Data4: ( 0x9D,0xDC,0x3F,0x50,0x01,0x91,0xC2,0x62 ))// 24E50C1C-9C51-5144-9DDC-3F500191C262 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout2: WindowsFoundation.IID { + .init(Data1: 0xCC545FF5, Data2: 0x0C41, Data3: 0x5C14, Data4: ( 0x95,0x65,0x25,0x57,0xCC,0xC8,0x41,0x32 ))// CC545FF5-0C41-5C14-9565-2557CCC84132 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext: WindowsFoundation.IID { + .init(Data1: 0xB45A2E55, Data2: 0x2ECC, Data3: 0x5462, Data4: ( 0xBB,0x26,0xD4,0x7C,0x45,0x5B,0xB4,0x8E ))// B45A2E55-2ECC-5462-BB26-D47C455BB48E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextFactory: WindowsFoundation.IID { + .init(Data1: 0xF7664771, Data2: 0x9242, Data3: 0x599E, Data4: ( 0xA7,0xDD,0x07,0x05,0x56,0x5D,0xEF,0x98 ))// F7664771-9242-599E-A7DD-0705565DEF98 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides: WindowsFoundation.IID { + .init(Data1: 0xFDA70E44, Data2: 0x6526, Data3: 0x5535, Data4: ( 0xBE,0x2B,0xEC,0x27,0x43,0x67,0x0A,0xE2 ))// FDA70E44-6526-5535-BE2B-EC2743670AE2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutFactory: WindowsFoundation.IID { + .init(Data1: 0xEAF956B4, Data2: 0x59C9, Data3: 0x5E13, Data4: ( 0xA4,0x9D,0xF3,0x5B,0x17,0x1D,0x8F,0xC9 ))// EAF956B4-59C9-5E13-A49D-F35B171D8FC9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverrides: WindowsFoundation.IID { + .init(Data1: 0x441D00C3, Data2: 0xDD50, Data3: 0x5348, Data4: ( 0x85,0x2D,0x85,0x60,0x8C,0xC7,0xDC,0xE1 ))// 441D00C3-DD50-5348-852D-85608CC7DCE1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected: WindowsFoundation.IID { + .init(Data1: 0xE46FF416, Data2: 0x741E, Data3: 0x5176, Data4: ( 0xA1,0xD4,0x57,0x18,0xD2,0x34,0x22,0x43 ))// E46FF416-741E-5176-A1D4-5718D2342243 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected2: WindowsFoundation.IID { + .init(Data1: 0x3FFFE35F, Data2: 0x6F2E, Data3: 0x501F, Data4: ( 0xA2,0xAD,0xE7,0x5A,0x4E,0x1C,0xD5,0x92 ))// 3FFFE35F-6F2E-501F-A2AD-E75A4E1CD592 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox: WindowsFoundation.IID { + .init(Data1: 0xF3E7DEDF, Data2: 0x7A3C, Data3: 0x59F1, Data4: ( 0x9E,0x05,0xAE,0x50,0x26,0xB5,0x42,0x93 ))// F3E7DEDF-7A3C-59F1-9E05-AE5026B54293 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxFactory: WindowsFoundation.IID { + .init(Data1: 0xD048E0BC, Data2: 0x4692, Data3: 0x5C60, Data4: ( 0xB2,0xE9,0x07,0xC4,0x43,0x3C,0xE0,0x50 ))// D048E0BC-4692-5C60-B2E9-07C4433CE050 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItem: WindowsFoundation.IID { + .init(Data1: 0xCC67FB35, Data2: 0x04F1, Data3: 0x5EAD, Data4: ( 0x96,0xC5,0xB2,0xEA,0x67,0xB2,0x25,0xC6 ))// CC67FB35-04F1-5EAD-96C5-B2EA67B225C6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItemFactory: WindowsFoundation.IID { + .init(Data1: 0x8E9E0E6D, Data2: 0x4597, Data3: 0x5EFA, Data4: ( 0x94,0xBC,0x7F,0xFA,0xDC,0x26,0x4C,0x28 ))// 8E9E0E6D-4597-5EFA-94BC-7FFADC264C28 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxStatics: WindowsFoundation.IID { + .init(Data1: 0x763A4986, Data2: 0xDB3A, Data3: 0x5A94, Data4: ( 0x85,0x05,0xAE,0xE2,0xF2,0x29,0xAF,0x85 ))// 763A4986-DB3A-5A94-8505-AEE2F229AF85 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListView: WindowsFoundation.IID { + .init(Data1: 0xF6015DB1, Data2: 0xDF63, Data3: 0x52FD, Data4: ( 0xA1,0x64,0x0D,0xF4,0x47,0x15,0xEE,0x0A ))// F6015DB1-DF63-52FD-A164-0DF44715EE0A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase: WindowsFoundation.IID { + .init(Data1: 0x775C57AC, Data2: 0xABCE, Data3: 0x5BEB, Data4: ( 0x8E,0x34,0x3B,0x81,0x58,0xAE,0xDD,0x80 ))// 775C57AC-ABCE-5BEB-8E34-3B8158AEDD80 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x44092863, Data2: 0xC09E, Data3: 0x551E, Data4: ( 0x85,0xBF,0x95,0x1B,0x55,0x29,0x50,0xC8 ))// 44092863-C09E-551E-85BF-951B552950C8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItem: WindowsFoundation.IID { + .init(Data1: 0x9220C4FF, Data2: 0x1974, Data3: 0x53FD, Data4: ( 0xAD,0x74,0xC2,0x9E,0x7B,0x36,0x0A,0x06 ))// 9220C4FF-1974-53FD-AD74-C29E7B360A06 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItemFactory: WindowsFoundation.IID { + .init(Data1: 0x228FC10A, Data2: 0xB86F, Data3: 0x5B57, Data4: ( 0x96,0xF4,0x34,0xD9,0xF9,0xFB,0x87,0x11 ))// 228FC10A-B86F-5B57-96F4-34D9F9FB8711 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics: WindowsFoundation.IID { + .init(Data1: 0xB8487E94, Data2: 0x010F, Data3: 0x56D4, Data4: ( 0x9F,0x76,0x94,0xBF,0x8C,0x46,0x27,0x45 ))// B8487E94-010F-56D4-9F76-94BF8C462745 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewFactory: WindowsFoundation.IID { + .init(Data1: 0x03EBEFB8, Data2: 0xF64A, Data3: 0x5BF9, Data4: ( 0x95,0x70,0xCB,0x09,0xEE,0xEA,0x23,0x35 ))// 03EBEFB8-F64A-5BF9-9570-CB09EEEA2335 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItem: WindowsFoundation.IID { + .init(Data1: 0x05FE41C2, Data2: 0x0451, Data3: 0x5D38, Data4: ( 0x9C,0x55,0x5D,0x10,0xCF,0xD0,0x88,0x89 ))// 05FE41C2-0451-5D38-9C55-5D10CFD08889 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItemFactory: WindowsFoundation.IID { + .init(Data1: 0xD9F4D0B8, Data2: 0xEE59, Data3: 0x5036, Data4: ( 0xBD,0x7A,0x7C,0x89,0xCF,0x0B,0xC2,0xAC ))// D9F4D0B8-EE59-5036-BD7A-7C89CF0BC2AC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement: WindowsFoundation.IID { + .init(Data1: 0xC314A38C, Data2: 0x780C, Data3: 0x558A, Data4: ( 0x98,0xCD,0x0A,0x8D,0xEB,0x46,0x7F,0xCF ))// C314A38C-780C-558A-98CD-0A8DEB467FCF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementFactory: WindowsFoundation.IID { + .init(Data1: 0x51ACA342, Data2: 0x65A0, Data3: 0x5DB6, Data4: ( 0x80,0x82,0xBD,0x54,0xA8,0xD1,0x49,0x99 ))// 51ACA342-65A0-5DB6-8082-BD54A8D14999 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics: WindowsFoundation.IID { + .init(Data1: 0x6F77BBA8, Data2: 0xFB23, Data3: 0x5E27, Data4: ( 0x97,0xC1,0x16,0xD4,0x37,0xD0,0x70,0x2F ))// 6F77BBA8-FB23-5E27-97C1-16D437D0702F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls: WindowsFoundation.IID { + .init(Data1: 0xC99C110B, Data2: 0x9DEE, Data3: 0x5A6B, Data4: ( 0xBB,0x9E,0x61,0xBF,0xCA,0xAA,0xFA,0x3E ))// C99C110B-9DEE-5A6B-BB9E-61BFCAAAFA3E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsFactory: WindowsFoundation.IID { + .init(Data1: 0xA3F9A254, Data2: 0x1BCF, Data3: 0x57B5, Data4: ( 0x94,0x81,0xC1,0x9C,0x45,0x83,0xAC,0x0E ))// A3F9A254-1BCF-57B5-9481-C19C4583AC0E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics: WindowsFoundation.IID { + .init(Data1: 0xF497067E, Data2: 0x7C41, Data3: 0x5083, Data4: ( 0x96,0xC5,0xB6,0x88,0x1D,0x88,0xB1,0x87 ))// F497067E-7C41-5083-96C5-B6881D88B187 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBar: WindowsFoundation.IID { + .init(Data1: 0xBA97F337, Data2: 0x8F1E, Data3: 0x5141, Data4: ( 0xB5,0x3F,0xE7,0x7A,0x8B,0xA3,0xEB,0xBD ))// BA97F337-8F1E-5141-B53F-E77A8BA3EBBD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarFactory: WindowsFoundation.IID { + .init(Data1: 0x76AA8759, Data2: 0x04EE, Data3: 0x5A4C, Data4: ( 0xB9,0x8C,0xD0,0x37,0x42,0xD4,0x7C,0xDB ))// 76AA8759-04EE-5A4C-B98C-D03742D47CDB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem: WindowsFoundation.IID { + .init(Data1: 0xA7900980, Data2: 0x51CC, Data3: 0x531D, Data4: ( 0x97,0xC5,0x35,0x6B,0x13,0x57,0x33,0x98 ))// A7900980-51CC-531D-97C5-356B13573398 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemFactory: WindowsFoundation.IID { + .init(Data1: 0x87D02172, Data2: 0x83CB, Data3: 0x5459, Data4: ( 0x94,0x0F,0x17,0x3F,0x75,0x01,0xB3,0x00 ))// 87D02172-83CB-5459-940F-173F7501B300 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemStatics: WindowsFoundation.IID { + .init(Data1: 0xC8A33F46, Data2: 0x2E1C, Data3: 0x5CE0, Data4: ( 0xBC,0x09,0x45,0x24,0xE6,0x89,0x41,0xC8 ))// C8A33F46-2E1C-5CE0-BC09-4524E68941C8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarStatics: WindowsFoundation.IID { + .init(Data1: 0x79AA0B84, Data2: 0x5554, Data3: 0x5F7C, Data4: ( 0x80,0xD9,0x79,0x70,0xAA,0x03,0x01,0x25 ))// 79AA0B84-5554-5F7C-80D9-7970AA030125 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout: WindowsFoundation.IID { + .init(Data1: 0xF4C77C6C, Data2: 0x1FA5, Data3: 0x5D85, Data4: ( 0x85,0x59,0x5D,0x02,0xB7,0xD4,0xE5,0xE7 ))// F4C77C6C-1FA5-5D85-8559-5D02B7D4E5E7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutFactory: WindowsFoundation.IID { + .init(Data1: 0xA3D225DE, Data2: 0x6B35, Data3: 0x5442, Data4: ( 0xB6,0xC9,0x06,0xFD,0x24,0x13,0x9A,0x63 ))// A3D225DE-6B35-5442-B6C9-06FD24139A63 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem: WindowsFoundation.IID { + .init(Data1: 0x4252DF5A, Data2: 0x44F9, Data3: 0x5EE8, Data4: ( 0xB1,0xCC,0x53,0xDE,0x9A,0xAA,0x40,0x95 ))// 4252DF5A-44F9-5EE8-B1CC-53DE9AAA4095 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBase: WindowsFoundation.IID { + .init(Data1: 0x4BEE2715, Data2: 0x44A1, Data3: 0x5F94, Data4: ( 0x86,0xE8,0x02,0xDD,0xBE,0x3D,0xC6,0xB9 ))// 4BEE2715-44A1-5F94-86E8-02DDBE3DC6B9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x33F4EAD3, Data2: 0xAB54, Data3: 0x505D, Data4: ( 0xBC,0x5F,0x45,0xE7,0xC3,0x5F,0x20,0xF8 ))// 33F4EAD3-AB54-505D-BC5F-45E7C35F20F8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemFactory: WindowsFoundation.IID { + .init(Data1: 0x9C3C9A1F, Data2: 0x89AF, Data3: 0x521A, Data4: ( 0x81,0xA5,0x8A,0x01,0xDB,0x7A,0x79,0xAF ))// 9C3C9A1F-89AF-521A-81A5-8A01DB7A79AF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics: WindowsFoundation.IID { + .init(Data1: 0x9D7953D6, Data2: 0xE6A6, Data3: 0x5154, Data4: ( 0x91,0xF4,0x67,0xF4,0xD6,0x04,0x2A,0x4F ))// 9D7953D6-E6A6-5154-91F4-67F4D6042A4F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparator: WindowsFoundation.IID { + .init(Data1: 0x3EAF5FD5, Data2: 0x935E, Data3: 0x5ED7, Data4: ( 0x8D,0x05,0xF6,0xBA,0xFA,0x93,0x6D,0x25 ))// 3EAF5FD5-935E-5ED7-8D05-F6BAFA936D25 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparatorFactory: WindowsFoundation.IID { + .init(Data1: 0x26156C9C, Data2: 0x95EF, Data3: 0x5E55, Data4: ( 0x83,0x42,0x77,0x3F,0xC4,0x3B,0xAA,0xC3 ))// 26156C9C-95EF-5E55-8342-773FC43BAAC3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutStatics: WindowsFoundation.IID { + .init(Data1: 0x6959E683, Data2: 0x16F6, Data3: 0x5208, Data4: ( 0x84,0xE0,0xB0,0xBE,0x92,0xD9,0xF6,0xDD ))// 6959E683-16F6-5208-84E0-B0BE92D9F6DD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem: WindowsFoundation.IID { + .init(Data1: 0x6B0688C1, Data2: 0x47B0, Data3: 0x53B5, Data4: ( 0xB6,0xF9,0x5E,0xC5,0xD6,0x62,0x3B,0x84 ))// 6B0688C1-47B0-53B5-B6F9-5EC5D6623B84 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItemStatics: WindowsFoundation.IID { + .init(Data1: 0xF59A8DDF, Data2: 0x804B, Data3: 0x5F56, Data4: ( 0xBC,0x42,0xF2,0x7F,0x98,0x7D,0xB2,0x91 ))// F59A8DDF-804B-5F56-BC42-F27F987DB291 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CINavigate: WindowsFoundation.IID { + .init(Data1: 0xDD06F030, Data2: 0x5D47, Data3: 0x533C, Data4: ( 0x95,0xCF,0xDE,0x25,0x6A,0x0F,0x37,0x3A ))// DD06F030-5D47-533C-95CF-DE256A0F373A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage: WindowsFoundation.IID { + .init(Data1: 0xEB42988E, Data2: 0x6CB5, Data3: 0x5DD6, Data4: ( 0x9E,0x59,0x4C,0x04,0xE5,0xCA,0xEC,0x6D ))// EB42988E-6CB5-5DD6-9E59-4C04E5CAEC6D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageFactory: WindowsFoundation.IID { + .init(Data1: 0xFF4357D5, Data2: 0xDDCD, Data3: 0x5129, Data4: ( 0x9D,0x0F,0xD8,0xAE,0xD2,0xAD,0xC1,0xA9 ))// FF4357D5-DDCD-5129-9D0F-D8AED2ADC1A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides: WindowsFoundation.IID { + .init(Data1: 0x9B8445F7, Data2: 0xD938, Data3: 0x5626, Data4: ( 0x85,0x0A,0x86,0xE9,0x1C,0xA8,0x9E,0x98 ))// 9B8445F7-D938-5626-850A-86E91CA89E98 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageStatics: WindowsFoundation.IID { + .init(Data1: 0xB6241486, Data2: 0xA374, Data3: 0x5D09, Data4: ( 0xA0,0x1F,0x9A,0xBE,0x31,0x1C,0x08,0x84 ))// B6241486-A374-5D09-A01F-9ABE311C0884 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel: WindowsFoundation.IID { + .init(Data1: 0x27A1B418, Data2: 0x56F3, Data3: 0x525E, Data4: ( 0xB8,0x83,0xCE,0xFE,0xD9,0x05,0xEE,0xD3 ))// 27A1B418-56F3-525E-B883-CEFED905EED3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelFactory: WindowsFoundation.IID { + .init(Data1: 0xF5E7E21C, Data2: 0x4C97, Data3: 0x5D20, Data4: ( 0xBE,0xE6,0x3E,0x4F,0xC6,0xAB,0x14,0xE9 ))// F5E7E21C-4C97-5D20-BEE6-3E4FC6AB14E9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelStatics: WindowsFoundation.IID { + .init(Data1: 0x76A9CAA7, Data2: 0xA5D4, Data3: 0x5061, Data4: ( 0xA3,0x25,0x17,0xC7,0x6F,0x66,0xDE,0x51 ))// 76A9CAA7-A5D4-5061-A325-17C76F66DE51 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox: WindowsFoundation.IID { + .init(Data1: 0x6D3CCFF7, Data2: 0xAAEE, Data3: 0x5ADC, Data4: ( 0x82,0x98,0x33,0x30,0x0F,0xA1,0x19,0xDA ))// 6D3CCFF7-AAEE-5ADC-8298-33300FA119DA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxPasswordChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9A2F3B79, Data2: 0xC00C, Data3: 0x5D27, Data4: ( 0xBB,0x67,0x92,0xCA,0xB3,0xDB,0x04,0x77 ))// 9A2F3B79-C00C-5D27-BB67-92CAB3DB0477 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics: WindowsFoundation.IID { + .init(Data1: 0x90E6559C, Data2: 0x5F74, Data3: 0x5CD1, Data4: ( 0x87,0xB6,0xC0,0x51,0x40,0x85,0xAB,0x42 ))// 90E6559C-5F74-5CD1-87B6-C0514085AB42 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager: WindowsFoundation.IID { + .init(Data1: 0xDE7FC5D5, Data2: 0x9446, Data3: 0x5693, Data4: ( 0xBB,0xF3,0xFD,0x7F,0x94,0x3A,0x56,0x7C ))// DE7FC5D5-9446-5693-BBF3-FD7F943A567C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerFactory: WindowsFoundation.IID { + .init(Data1: 0x020722CD, Data2: 0x813A, Data3: 0x5165, Data4: ( 0xA8,0x99,0x3D,0xF9,0xAD,0xCD,0x80,0x5E ))// 020722CD-813A-5165-A899-3DF9ADCD805E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerSelectedIndexChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x6C2CE4FC, Data2: 0xBF52, Data3: 0x5CA6, Data4: ( 0x9D,0xA4,0xB0,0xBD,0x5B,0x92,0x8D,0x97 ))// 6C2CE4FC-BF52-5CA6-9DA4-B0BD5B928D97 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics: WindowsFoundation.IID { + .init(Data1: 0x37714CD8, Data2: 0xFBA6, Data3: 0x5D98, Data4: ( 0xA3,0x95,0x0A,0x7A,0x3E,0xA6,0x48,0x67 ))// 37714CD8-FBA6-5D98-A395-0A7A3EA64867 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x9D8C1252, Data2: 0x56C5, Data3: 0x57AF, Data4: ( 0x9A,0x3A,0x08,0xE9,0xB9,0x47,0xE5,0xFA ))// 9D8C1252-56C5-57AF-9A3A-08E9B947E5FA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar: WindowsFoundation.IID { + .init(Data1: 0x87555C8C, Data2: 0x0AAF, Data3: 0x52C1, Data4: ( 0x83,0x90,0x0D,0xB1,0x7F,0x40,0x43,0x8E ))// 87555C8C-0AAF-52C1-8390-0DB17F40438E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarFactory: WindowsFoundation.IID { + .init(Data1: 0x189826AD, Data2: 0xF6F2, Data3: 0x533E, Data4: ( 0x9D,0xDB,0xB6,0x60,0x0E,0x88,0x67,0x5B ))// 189826AD-F6F2-533E-9DDB-B6600E88675B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarStatics: WindowsFoundation.IID { + .init(Data1: 0x61BBB127, Data2: 0xE4C4, Data3: 0x5E22, Data4: ( 0xA8,0xDC,0xCF,0xCF,0x95,0x72,0x36,0xD0 ))// 61BBB127-E4C4-5E22-A8DC-CFCF957236D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0xFBEA95C9, Data2: 0x9EF9, Data3: 0x5E79, Data4: ( 0xAF,0x54,0x44,0xDE,0xD2,0x80,0x35,0xD5 ))// FBEA95C9-9EF9-5E79-AF54-44DED28035D5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing: WindowsFoundation.IID { + .init(Data1: 0x2670D03F, Data2: 0xE28C, Data3: 0x5652, Data4: ( 0xBE,0xE2,0xB5,0x21,0x2E,0xBD,0xF7,0xFF ))// 2670D03F-E28C-5652-BEE2-B5212EBDF7FF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingFactory: WindowsFoundation.IID { + .init(Data1: 0x092FA98C, Data2: 0x62A7, Data3: 0x5DBC, Data4: ( 0x9A,0x85,0x3E,0x55,0x6B,0xA8,0x1F,0x79 ))// 092FA98C-62A7-5DBC-9A85-3E556BA81F79 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics: WindowsFoundation.IID { + .init(Data1: 0x4BA1166A, Data2: 0xCEC2, Data3: 0x50E2, Data4: ( 0xB2,0x6B,0x66,0xB6,0x9D,0xC2,0xE3,0x71 ))// 4BA1166A-CEC2-50E2-B26B-66B69DC2E371 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x34020D86, Data2: 0xE1C1, Data3: 0x5D7C, Data4: ( 0xB2,0x23,0xAC,0xD7,0xF8,0x62,0xFF,0xD5 ))// 34020D86-E1C1-5D7C-B223-ACD7F862FFD5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton: WindowsFoundation.IID { + .init(Data1: 0x38F30CEE, Data2: 0xE75A, Data3: 0x5BA1, Data4: ( 0xAE,0x64,0x44,0x74,0xA3,0xAB,0xEA,0xC7 ))// 38F30CEE-E75A-5BA1-AE64-4474A3ABEAC7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonFactory: WindowsFoundation.IID { + .init(Data1: 0x5772C79A, Data2: 0xB3EB, Data3: 0x5719, Data4: ( 0x80,0x05,0x2A,0x51,0x34,0x29,0x49,0x5A ))// 5772C79A-B3EB-5719-8005-2A513429495A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonStatics: WindowsFoundation.IID { + .init(Data1: 0xA8BCE4D4, Data2: 0x68FE, Data3: 0x53D9, Data4: ( 0xA3,0x17,0x74,0xAB,0x40,0x9C,0xD4,0xEE ))// A8BCE4D4-68FE-53D9-A317-74AB409CD4EE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons: WindowsFoundation.IID { + .init(Data1: 0x966DAF80, Data2: 0xEE85, Data3: 0x5D90, Data4: ( 0xB6,0xB3,0x80,0xBE,0xC9,0x13,0x46,0x73 ))// 966DAF80-EE85-5D90-B6B3-80BEC9134673 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsFactory: WindowsFoundation.IID { + .init(Data1: 0x2CF95EFB, Data2: 0xA7A2, Data3: 0x5D85, Data4: ( 0x8E,0xAD,0xEA,0x22,0x2B,0xAA,0x3C,0x55 ))// 2CF95EFB-A7A2-5D85-8EAD-EA222BAA3C55 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics: WindowsFoundation.IID { + .init(Data1: 0xDE0BF0CA, Data2: 0x9AE8, Data3: 0x5B8A, Data4: ( 0x97,0x38,0x7D,0x98,0xB3,0x44,0xC0,0x39 ))// DE0BF0CA-9AE8-5B8A-9738-7D98B344C039 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel: WindowsFoundation.IID { + .init(Data1: 0xC432FCC4, Data2: 0x88F2, Data3: 0x59D8, Data4: ( 0x9D,0x0E,0xA2,0x37,0xBE,0xAE,0xB0,0x7F ))// C432FCC4-88F2-59D8-9D0E-A237BEAEB07F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelFactory: WindowsFoundation.IID { + .init(Data1: 0xC85F1443, Data2: 0xD973, Data3: 0x50FD, Data4: ( 0x94,0x97,0xB8,0x67,0xF4,0x92,0x46,0x8F ))// C85F1443-D973-50FD-9497-B867F492468F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics: WindowsFoundation.IID { + .init(Data1: 0xBDD929A2, Data2: 0x76CC, Data3: 0x59C4, Data4: ( 0x82,0xC1,0xF1,0x4B,0x5D,0xA4,0x22,0x1A ))// BDD929A2-76CC-59C4-82C1-F14B5DA4221A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition: WindowsFoundation.IID { + .init(Data1: 0xFE870F2F, Data2: 0x89EF, Data3: 0x5DAC, Data4: ( 0x9F,0x33,0x96,0x8D,0x0D,0xC5,0x77,0xC3 ))// FE870F2F-89EF-5DAC-9F33-968D0DC577C3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinitionStatics: WindowsFoundation.IID { + .init(Data1: 0x7317C7C5, Data2: 0xFD6F, Data3: 0x58D9, Data4: ( 0x9B,0x53,0x49,0x78,0xDB,0xAC,0xDE,0x23 ))// 7317C7C5-FD6F-58D9-9B53-4978DBACDE23 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider: WindowsFoundation.IID { + .init(Data1: 0x885DF41F, Data2: 0xF240, Data3: 0x5B7B, Data4: ( 0xA7,0x03,0xBF,0xAF,0x39,0xC6,0xA2,0xCD ))// 885DF41F-F240-5B7B-A703-BFAF39C6A2CD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView: WindowsFoundation.IID { + .init(Data1: 0x8C98C86D, Data2: 0x378A, Data3: 0x5102, Data4: ( 0xA1,0xE3,0x33,0x52,0x28,0x0F,0xA0,0x10 ))// 8C98C86D-378A-5102-A1E3-3352280FA010 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewFactory: WindowsFoundation.IID { + .init(Data1: 0xF3547344, Data2: 0x22E4, Data3: 0x5E6C, Data4: ( 0x9E,0xCE,0x66,0x50,0x4E,0xF7,0x33,0xED ))// F3547344-22E4-5E6C-9ECE-66504EF733ED +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics: WindowsFoundation.IID { + .init(Data1: 0xAC966C50, Data2: 0x31F1, Data3: 0x5485, Data4: ( 0x8E,0x08,0xEE,0x7A,0x7E,0x9A,0x6F,0xD0 ))// AC966C50-31F1-5485-8E08-EE7A7E9A6FD0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer: WindowsFoundation.IID { + .init(Data1: 0x1DC28C2E, Data2: 0x996C, Data3: 0x5394, Data4: ( 0x89,0xC3,0x4D,0xC6,0x56,0xB4,0xAD,0x46 ))// 1DC28C2E-996C-5394-89C3-4DC656B4AD46 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics: WindowsFoundation.IID { + .init(Data1: 0xD971FD86, Data2: 0x0A96, Data3: 0x50C4, Data4: ( 0xA6,0xE1,0x99,0x75,0xFA,0xA2,0xA1,0x42 ))// D971FD86-0A96-50C4-A6E1-9975FAA2A142 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView: WindowsFoundation.IID { + .init(Data1: 0x1E9F68EE, Data2: 0x6CE5, Data3: 0x5CBF, Data4: ( 0xBB,0xFE,0xB8,0xCD,0x28,0x4B,0x9C,0x23 ))// 1E9F68EE-6CE5-5CBF-BBFE-B8CD284B9C23 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBF7BB85B, Data2: 0x1D46, Data3: 0x5004, Data4: ( 0xA3,0x70,0xEC,0xB6,0x26,0x63,0x05,0x88 ))// BF7BB85B-1D46-5004-A370-ECB626630588 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xAEE37D7C, Data2: 0x4696, Data3: 0x55F1, Data4: ( 0x96,0xCA,0x65,0x68,0x32,0xFC,0x0F,0xD2 ))// AEE37D7C-4696-55F1-96CA-656832FC0FD2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x6A46CB4B, Data2: 0xAB26, Data3: 0x55B2, Data4: ( 0xAA,0x76,0x9B,0x33,0x7A,0x4F,0x8E,0x8E ))// 6A46CB4B-AB26-55B2-AA76-9B337A4F8E8E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs: WindowsFoundation.IID { + .init(Data1: 0x09760D99, Data2: 0xD60C, Data3: 0x5C76, Data4: ( 0x80,0x33,0x12,0x7B,0x20,0x85,0x35,0x8C ))// 09760D99-D60C-5C76-8033-127B2085358C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7ACB0423, Data2: 0x6FC7, Data3: 0x516B, Data4: ( 0xAB,0x67,0x03,0xA4,0xA4,0x28,0x5A,0x90 ))// 7ACB0423-6FC7-516B-AB67-03A4A4285A90 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9BDEAE9C, Data2: 0x972C, Data3: 0x54AE, Data4: ( 0x9C,0x62,0xFC,0x1A,0x03,0xFF,0x3F,0xA8 ))// 9BDEAE9C-972C-54AE-9C62-FC1A03FF3FA8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions: WindowsFoundation.IID { + .init(Data1: 0x30B2E77B, Data2: 0x2553, Data3: 0x5B09, Data4: ( 0xB3,0x08,0xB4,0xB0,0x6F,0xC8,0xF9,0xAF ))// 30B2E77B-2553-5B09-B308-B4B06FC8F9AF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptionsFactory: WindowsFoundation.IID { + .init(Data1: 0x31EB58FE, Data2: 0x0F6A, Data3: 0x51EC, Data4: ( 0x90,0xDB,0x5C,0xCA,0xA0,0xA2,0x88,0xA6 ))// 31EB58FE-0F6A-51EC-90DB-5CCAA0A288A6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x59BFB77B, Data2: 0x47C9, Data3: 0x5691, Data4: ( 0xBD,0xCD,0x53,0x6F,0xBE,0x8E,0xB8,0xC1 ))// 59BFB77B-47C9-5691-BDCD-536FBE8EB8C1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC821207E, Data2: 0xAB2A, Data3: 0x5F6C, Data4: ( 0x90,0x74,0x41,0x18,0x40,0xA6,0x8D,0x55 ))// C821207E-AB2A-5F6C-9074-411840A68D55 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions: WindowsFoundation.IID { + .init(Data1: 0xE4ACE0B2, Data2: 0x9B0C, Data3: 0x5EDA, Data4: ( 0x88,0xA2,0xC3,0x1B,0x1B,0x84,0xF8,0x29 ))// E4ACE0B2-9B0C-5EDA-88A2-C31B1B84F829 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptionsFactory: WindowsFoundation.IID { + .init(Data1: 0xD1C82E57, Data2: 0xD5E8, Data3: 0x58F5, Data4: ( 0xA2,0xC0,0xEE,0x70,0xC6,0x41,0x43,0xBE ))// D1C82E57-D5E8-58F5-A2C0-EE70C64143BE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB6C18076, Data2: 0x4B76, Data3: 0x5416, Data4: ( 0xAD,0x29,0xE2,0xDC,0x20,0xC4,0x62,0x46 ))// B6C18076-4B76-5416-AD29-E2DC20C46246 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x0FCD041D, Data2: 0x465F, Data3: 0x5745, Data4: ( 0x98,0x82,0x0C,0x83,0x48,0xE4,0x13,0x5D ))// 0FCD041D-465F-5745-9882-0C8348E4135D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom: WindowsFoundation.IID { + .init(Data1: 0x7E14616D, Data2: 0x55EF, Data3: 0x548C, Data4: ( 0xA9,0x97,0xC9,0x23,0xE3,0x02,0x71,0x8F ))// 7E14616D-55EF-548C-A997-C923E302718F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation: WindowsFoundation.IID { + .init(Data1: 0x12D62B04, Data2: 0xBB13, Data3: 0x50F2, Data4: ( 0x9D,0x8B,0xE5,0x7C,0x02,0xB4,0xBD,0xE4 ))// 12D62B04-BB13-50F2-9D8B-E57C02B4BDE4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation: WindowsFoundation.IID { + .init(Data1: 0x41C1DEC7, Data2: 0xF34F, Data3: 0x51DB, Data4: ( 0x95,0x25,0x5C,0x14,0x9B,0x05,0xA5,0x27 ))// 41C1DEC7-F34F-51DB-9525-5C149B05A527 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics: WindowsFoundation.IID { + .init(Data1: 0xE4FBD358, Data2: 0x9342, Data3: 0x56D3, Data4: ( 0xB5,0xC2,0xBF,0x80,0xDE,0x6F,0x47,0xED ))// E4FBD358-9342-56D3-B5C2-BF80DE6F47ED +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xCF62D53D, Data2: 0x97D3, Data3: 0x5CEF, Data4: ( 0x96,0xF3,0x1C,0x41,0x3F,0x52,0x4E,0xCA ))// CF62D53D-97D3-5CEF-96F3-1C413F524ECA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider: WindowsFoundation.IID { + .init(Data1: 0xF7418ECF, Data2: 0x7C35, Data3: 0x5216, Data4: ( 0x8B,0xF1,0xD8,0x2D,0x47,0xCC,0xE5,0xDF ))// F7418ECF-7C35-5216-8BF1-D82D47CCE5DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderFactory: WindowsFoundation.IID { + .init(Data1: 0x06604D71, Data2: 0x34CA, Data3: 0x5F39, Data4: ( 0x96,0x56,0x29,0xD8,0x1D,0x3C,0x11,0x0C ))// 06604D71-34CA-5F39-9656-29D81D3C110C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics: WindowsFoundation.IID { + .init(Data1: 0xF0541F7B, Data2: 0x6D81, Data3: 0x59E2, Data4: ( 0x99,0x7A,0x2E,0x65,0xFB,0xCC,0xCD,0x21 ))// F0541F7B-6D81-59E2-997A-2E65FBCCCD21 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView: WindowsFoundation.IID { + .init(Data1: 0x10AE18F7, Data2: 0x1666, Data3: 0x5897, Data4: ( 0xBB,0xCE,0x1E,0x68,0x7E,0x77,0x84,0xA8 ))// 10AE18F7-1666-5897-BBCE-1E687E7784A8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewFactory: WindowsFoundation.IID { + .init(Data1: 0x389ECE72, Data2: 0x75CE, Data3: 0x561B, Data4: ( 0xAA,0xD3,0xC5,0x21,0x25,0xCA,0x6A,0x50 ))// 389ECE72-75CE-561B-AAD3-C52125CA6A50 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewPaneClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9138965B, Data2: 0x8499, Data3: 0x5F9C, Data4: ( 0x93,0xE0,0x34,0xBE,0xDA,0x44,0x1E,0x6D ))// 9138965B-8499-5F9C-93E0-34BEDA441E6D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics: WindowsFoundation.IID { + .init(Data1: 0x1C69A263, Data2: 0x552C, Data3: 0x5505, Data4: ( 0xAC,0x81,0x49,0xE2,0x47,0xFE,0xE9,0xDB ))// 1C69A263-552C-5505-AC81-49E247FEE9DB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout: WindowsFoundation.IID { + .init(Data1: 0x3EA9C3DD, Data2: 0x8103, Data3: 0x571F, Data4: ( 0x9E,0x07,0x44,0xEA,0x76,0xC9,0x1A,0x10 ))// 3EA9C3DD-8103-571F-9E07-44EA76C91A10 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutFactory: WindowsFoundation.IID { + .init(Data1: 0xEA606F86, Data2: 0x21A1, Data3: 0x5C35, Data4: ( 0x91,0x1E,0x4A,0x1D,0xE8,0xBC,0x69,0xD9 ))// EA606F86-21A1-5C35-911E-4A1DE8BC69D9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutStatics: WindowsFoundation.IID { + .init(Data1: 0x5610AECF, Data2: 0xFB2A, Data3: 0x5726, Data4: ( 0xAC,0x3A,0x16,0x47,0x9B,0xA2,0xEC,0xAD ))// 5610AECF-FB2A-5726-AC3A-16479BA2ECAD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel: WindowsFoundation.IID { + .init(Data1: 0x493AB00B, Data2: 0x3A6A, Data3: 0x5E4A, Data4: ( 0x94,0x52,0x40,0x7C,0xD5,0x19,0x74,0x06 ))// 493AB00B-3A6A-5E4A-9452-407CD5197406 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelFactory: WindowsFoundation.IID { + .init(Data1: 0x64C1D388, Data2: 0x47A2, Data3: 0x5A74, Data4: ( 0xA7,0x5B,0x55,0x9D,0x15,0x1E,0xE5,0xAC ))// 64C1D388-47A2-5A74-A75B-559D151EE5AC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics: WindowsFoundation.IID { + .init(Data1: 0x10BB04E3, Data2: 0xEB01, Data3: 0x5EA8, Data4: ( 0x9F,0x96,0x69,0x50,0x84,0x79,0xDE,0xF9 ))// 10BB04E3-EB01-5EA8-9F96-69508479DEF9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelector: WindowsFoundation.IID { + .init(Data1: 0x7F9CF759, Data2: 0x785B, Data3: 0x5EF9, Data4: ( 0x9E,0xA7,0x15,0x55,0x67,0x3A,0x47,0x5A ))// 7F9CF759-785B-5EF9-9EA7-1555673A475A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorFactory: WindowsFoundation.IID { + .init(Data1: 0x2A033206, Data2: 0xA4FB, Data3: 0x5F11, Data4: ( 0x8C,0x2D,0x61,0xE1,0xDF,0x78,0xFB,0xC3 ))// 2A033206-A4FB-5F11-8C2D-61E1DF78FBC3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverrides: WindowsFoundation.IID { + .init(Data1: 0x26015D75, Data2: 0xEF00, Data3: 0x5C78, Data4: ( 0x8E,0x58,0x16,0x3D,0xA1,0x0F,0x69,0x4F ))// 26015D75-EF00-5C78-8E58-163DA10F694F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel: WindowsFoundation.IID { + .init(Data1: 0x08844F85, Data2: 0xAA1B, Data3: 0x540D, Data4: ( 0xBE,0xF2,0xB2,0xBB,0x7B,0x25,0x7F,0x8C ))// 08844F85-AA1B-540D-BEF2-B2BB7B257F8C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelFactory: WindowsFoundation.IID { + .init(Data1: 0x38D00B69, Data2: 0x5759, Data3: 0x5F37, Data4: ( 0x9E,0x1C,0x3A,0xE0,0xD4,0x28,0x8B,0x26 ))// 38D00B69-5759-5F37-9E1C-3AE0D4288B26 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelStatics: WindowsFoundation.IID { + .init(Data1: 0xD83B0621, Data2: 0xAACA, Data3: 0x534B, Data4: ( 0xAF,0xDE,0x53,0x70,0x16,0x71,0x76,0xB5 ))// D83B0621-AACA-534B-AFDE-5370167176B5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip: WindowsFoundation.IID { + .init(Data1: 0xDAEBD5F7, Data2: 0x3B47, Data3: 0x5B12, Data4: ( 0xB8,0x04,0xF4,0xE1,0x44,0x2B,0x21,0x13 ))// DAEBD5F7-3B47-5B12-B804-F4E1442B2113 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2536F506, Data2: 0x4038, Data3: 0x59DB, Data4: ( 0x9E,0x35,0xA9,0x25,0x2F,0xB5,0xAD,0xB2 ))// 2536F506-4038-59DB-9E35-A9252FB5ADB2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x16F53512, Data2: 0x3C55, Data3: 0x5636, Data4: ( 0xA8,0x56,0x22,0x9D,0x97,0x68,0xD6,0x4E ))// 16F53512-3C55-5636-A856-229D9768D64E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipFactory: WindowsFoundation.IID { + .init(Data1: 0xA3ECD47D, Data2: 0x2972, Data3: 0x5D19, Data4: ( 0xA6,0x2E,0xDD,0xFB,0xC5,0xE1,0xAD,0x57 ))// A3ECD47D-2972-5D19-A62E-DDFBC5E1AD57 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics: WindowsFoundation.IID { + .init(Data1: 0x7C3ECDDB, Data2: 0x0B4D, Data3: 0x51C2, Data4: ( 0xA2,0x7F,0x89,0x18,0x0A,0xFD,0x45,0xA8 ))// 7C3ECDDB-0B4D-51C2-A27F-89180AFD45A8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0xB081E1E9, Data2: 0xC1A5, Data3: 0x590A, Data4: ( 0x80,0x49,0x69,0xEA,0x00,0x3B,0x6C,0xF7 ))// B081E1E9-C1A5-590A-8049-69EA003B6CF7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsFactory: WindowsFoundation.IID { + .init(Data1: 0x63210545, Data2: 0xE195, Data3: 0x56CD, Data4: ( 0xBC,0xCD,0x16,0x92,0x55,0xE1,0x34,0xE3 ))// 63210545-E195-56CD-BCCD-169255E134E3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsStatics: WindowsFoundation.IID { + .init(Data1: 0xFA9ACF9A, Data2: 0x9743, Data3: 0x51EE, Data4: ( 0x8D,0xB9,0x8A,0xBD,0x06,0x3E,0xDF,0xEA ))// FA9ACF9A-9743-51EE-8DB9-8ABD063EDFEA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock: WindowsFoundation.IID { + .init(Data1: 0x1AC8D84F, Data2: 0x392C, Data3: 0x5C7E, Data4: ( 0x83,0xF5,0xA5,0x3E,0x3B,0xF0,0xAB,0xB0 ))// 1AC8D84F-392C-5C7E-83F5-A53E3BF0ABB0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics: WindowsFoundation.IID { + .init(Data1: 0x3187104B, Data2: 0x65C2, Data3: 0x5E53, Data4: ( 0xB8,0x89,0xC8,0x27,0x2B,0x13,0x14,0xCD ))// 3187104B-65C2-5E53-B889-C8272B1314CD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox: WindowsFoundation.IID { + .init(Data1: 0x873AF7C2, Data2: 0xAB89, Data3: 0x5D76, Data4: ( 0x8D,0xBE,0x3D,0x63,0x25,0x66,0x9D,0xF5 ))// 873AF7C2-AB89-5D76-8DBE-3D6325669DF5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBA46105B, Data2: 0x9A16, Data3: 0x5237, Data4: ( 0xA2,0x0F,0x5D,0xF7,0x50,0x99,0x2A,0x05 ))// BA46105B-9A16-5237-A20F-5DF750992A05 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxFactory: WindowsFoundation.IID { + .init(Data1: 0xE1D8B82E, Data2: 0xBC60, Data3: 0x5D27, Data4: ( 0xB6,0x46,0x5C,0xA4,0xC4,0xA6,0x94,0x32 ))// E1D8B82E-BC60-5D27-B646-5CA4C4A69432 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x6DCE20DB, Data2: 0x894E, Data3: 0x5FF6, Data4: ( 0x82,0x5B,0xF9,0x89,0x1A,0xF7,0x95,0x16 ))// 6DCE20DB-894E-5FF6-825B-F9891AF79516 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics: WindowsFoundation.IID { + .init(Data1: 0xA41CF38F, Data2: 0x712A, Data3: 0x5599, Data4: ( 0xBB,0xED,0x5A,0x3D,0x9B,0x6B,0xD4,0x6E ))// A41CF38F-712A-5599-BBED-5A3D9B6BD46E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxTextChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA1A08D48, Data2: 0xE8C0, Data3: 0x5379, Data4: ( 0xB1,0x38,0x7E,0xB3,0xF8,0xD5,0xF5,0xE6 ))// A1A08D48-E8C0-5379-B138-7EB3F8D5F5E6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x71C37E43, Data2: 0x7BE7, Data3: 0x52FC, Data4: ( 0xBF,0x8C,0x98,0x67,0xF4,0x4B,0xE5,0xF4 ))// 71C37E43-7BE7-52FC-BF8C-9867F44BE5F4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x04F420D2, Data2: 0xBA9C, Data3: 0x5F59, Data4: ( 0xB8,0xAC,0x0D,0x8A,0xA5,0x0A,0x92,0x40 ))// 04F420D2-BA9C-5F59-B8AC-0D8AA50A9240 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionEndedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x19D0A5C5, Data2: 0x8D0F, Data3: 0x5118, Data4: ( 0x8C,0x30,0xE7,0x09,0x32,0x6F,0x12,0x83 ))// 19D0A5C5-8D0F-5118-8C30-E709326F1283 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionStartedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA604FF71, Data2: 0x5D44, Data3: 0x5859, Data4: ( 0x8D,0x71,0x72,0x03,0x0E,0xD7,0x8B,0xC8 ))// A604FF71-5D44-5859-8D71-72030ED78BC8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCopyingToClipboardEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1DAAC6D5, Data2: 0x8DB5, Data3: 0x5D9F, Data4: ( 0x93,0x82,0x1E,0x64,0x4F,0x9A,0xA4,0x37 ))// 1DAAC6D5-8DB5-5D9F-9382-1E644F9AA437 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCuttingToClipboardEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9D73671F, Data2: 0xEA30, Data3: 0x555D, Data4: ( 0x81,0x29,0x5A,0x96,0xAE,0xC7,0x3A,0x14 ))// 9D73671F-EA30-555D-8129-5A96AEC73A14 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFC5E567E, Data2: 0x3AA9, Data3: 0x5C57, Data4: ( 0x88,0xD4,0x83,0x4A,0xD3,0xB6,0x2E,0x9E ))// FC5E567E-3AA9-5C57-88D4-834AD3B62E9E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem: WindowsFoundation.IID { + .init(Data1: 0x1803F260, Data2: 0x67E4, Data3: 0x5BC1, Data4: ( 0xA6,0x3A,0x12,0x35,0x10,0x16,0x7B,0xB8 ))// 1803F260-67E4-5BC1-A63A-123510167BB8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemFactory: WindowsFoundation.IID { + .init(Data1: 0x426DFD57, Data2: 0x6CC9, Data3: 0x570F, Data4: ( 0x95,0x0D,0x37,0x43,0x72,0x35,0xDC,0x89 ))// 426DFD57-6CC9-570F-950D-37437235DC89 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemStatics: WindowsFoundation.IID { + .init(Data1: 0x7411E854, Data2: 0xC59A, Data3: 0x5463, Data4: ( 0xBE,0xAB,0x64,0xDD,0xB0,0x52,0xC6,0xDC ))// 7411E854-C59A-5463-BEAB-64DDB052C6DC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch: WindowsFoundation.IID { + .init(Data1: 0x1B17EEB1, Data2: 0x74BF, Data3: 0x5A83, Data4: ( 0x81,0x61,0xA8,0x6F,0x0F,0xDC,0xDF,0x24 ))// 1B17EEB1-74BF-5A83-8161-A86F0FDCDF24 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides: WindowsFoundation.IID { + .init(Data1: 0x772682DB, Data2: 0xE3D4, Data3: 0x5242, Data4: ( 0xB6,0xDE,0x36,0x70,0x57,0x25,0xEE,0xB8 ))// 772682DB-E3D4-5242-B6DE-36705725EEB8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics: WindowsFoundation.IID { + .init(Data1: 0xC9C203D6, Data2: 0x0619, Data3: 0x504D, Data4: ( 0x9E,0xD8,0x50,0x54,0xFE,0x3C,0xA5,0x1E ))// C9C203D6-0619-504D-9ED8-5054FE3CA51E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip: WindowsFoundation.IID { + .init(Data1: 0x67E93D74, Data2: 0x5E93, Data3: 0x59A1, Data4: ( 0x91,0xBF,0x41,0x3E,0xFB,0xEB,0x90,0x4C ))// 67E93D74-5E93-59A1-91BF-413EFBEB904C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipFactory: WindowsFoundation.IID { + .init(Data1: 0xBCBB3720, Data2: 0x2DB8, Data3: 0x54E1, Data4: ( 0x88,0x06,0xFC,0xBE,0xD3,0x89,0x49,0xA9 ))// BCBB3720-2DB8-54E1-8806-FCBED38949A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipService: WindowsFoundation.IID { + .init(Data1: 0x01140768, Data2: 0x2727, Data3: 0x5F89, Data4: ( 0x80,0xE0,0x52,0x10,0x32,0x6A,0x34,0x31 ))// 01140768-2727-5F89-80E0-5210326A3431 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics: WindowsFoundation.IID { + .init(Data1: 0x5AA38ADC, Data2: 0x9874, Data3: 0x5E0A, Data4: ( 0x8D,0x8E,0x15,0x74,0xEF,0xC0,0xB8,0x8F ))// 5AA38ADC-9874-5E0A-8D8E-1574EFC0B88F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics: WindowsFoundation.IID { + .init(Data1: 0x88EB60D4, Data2: 0xCD54, Data3: 0x5E23, Data4: ( 0xBD,0x1A,0x22,0x37,0x02,0x44,0x2B,0xA4 ))// 88EB60D4-CD54-5E23-BD1A-223702442BA4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView: WindowsFoundation.IID { + .init(Data1: 0x1BEF9AF4, Data2: 0x712C, Data3: 0x50EF, Data4: ( 0x9B,0xB4,0x88,0x1B,0x97,0x52,0x32,0xAB ))// 1BEF9AF4-712C-50EF-9BB4-881B975232AB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2: WindowsFoundation.IID { + .init(Data1: 0xB947CA7D, Data2: 0x0F6F, Data3: 0x594C, Data4: ( 0x83,0xEC,0x14,0x15,0x3D,0x34,0x32,0x25 ))// B947CA7D-0F6F-594C-83EC-14153D343225 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView3: WindowsFoundation.IID { + .init(Data1: 0xA1B5538E, Data2: 0x7956, Data3: 0x5671, Data4: ( 0xAF,0xD0,0x4C,0x0F,0x38,0x12,0x2B,0x70 ))// A1B5538E-7956-5671-AFD0-4C0F38122B70 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8EE00B59, Data2: 0x42C6, Data3: 0x5D73, Data4: ( 0x80,0x9F,0x68,0x71,0x00,0x88,0xE5,0xA5 ))// 8EE00B59-42C6-5D73-809F-68710088E5A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs2: WindowsFoundation.IID { + .init(Data1: 0x77804A23, Data2: 0x9FEB, Data3: 0x5C57, Data4: ( 0x9C,0x95,0x4D,0xD9,0x84,0x26,0x72,0x17 ))// 77804A23-9FEB-5C57-9C95-4DD984267217 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE5B8547E, Data2: 0xF839, Data3: 0x55DB, Data4: ( 0x9C,0x26,0x2A,0x95,0xF5,0x7A,0x60,0xDC ))// E5B8547E-F839-55DB-9C26-2A95F57A60DC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs2: WindowsFoundation.IID { + .init(Data1: 0x060D3921, Data2: 0x57A0, Data3: 0x5BC5, Data4: ( 0xBE,0x26,0x32,0x0B,0xD9,0xC1,0xA6,0xE8 ))// 060D3921-57A0-5BC5-BE26-320BD9C1A6E8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1B6C4FFC, Data2: 0xCD32, Data3: 0x5E06, Data4: ( 0xB7,0x82,0xDF,0x9F,0x07,0x75,0x46,0xC7 ))// 1B6C4FFC-CD32-5E06-B782-DF9F077546C7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBD769EF7, Data2: 0xCADC, Data3: 0x5334, Data4: ( 0x93,0xAD,0xC9,0xBB,0xE8,0x20,0x64,0x3D ))// BD769EF7-CADC-5334-93AD-C9BBE820643D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs2: WindowsFoundation.IID { + .init(Data1: 0xED7840E5, Data2: 0xDBF5, Data3: 0x5937, Data4: ( 0x89,0xDD,0x99,0x7A,0x6F,0xDE,0x0D,0x5C ))// ED7840E5-DBF5-5937-89DD-997A6FDE0D5C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewFactory: WindowsFoundation.IID { + .init(Data1: 0x9C6220BE, Data2: 0xF9EB, Data3: 0x518A, Data4: ( 0xB3,0x0E,0x7E,0x41,0xDE,0x5E,0xFD,0xA9 ))// 9C6220BE-F9EB-518A-B30E-7E41DE5EFDA9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem: WindowsFoundation.IID { + .init(Data1: 0x70437A49, Data2: 0x2999, Data3: 0x5A97, Data4: ( 0xB1,0x9D,0x35,0x4E,0xF5,0x9D,0x4F,0x5C ))// 70437A49-2999-5A97-B19D-354EF59D4F5C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2: WindowsFoundation.IID { + .init(Data1: 0xB1B70143, Data2: 0x3F5B, Data3: 0x54F4, Data4: ( 0x8B,0xD7,0x41,0xDC,0x15,0xCF,0x45,0xA9 ))// B1B70143-3F5B-54F4-8BD7-41DC15CF45A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemFactory: WindowsFoundation.IID { + .init(Data1: 0x878FD918, Data2: 0xE77E, Data3: 0x5BE8, Data4: ( 0x8C,0x8A,0xB7,0x9B,0x27,0xB0,0x8D,0x9B ))// 878FD918-E77E-5BE8-8C8A-B79B27B08D9B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1A05853C, Data2: 0xB101, Data3: 0x542C, Data4: ( 0x9A,0x1E,0x77,0x5A,0x04,0x4C,0x46,0x52 ))// 1A05853C-B101-542C-9A1E-775A044C4652 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics: WindowsFoundation.IID { + .init(Data1: 0xEFDB238D, Data2: 0x2CCA, Data3: 0x589C, Data4: ( 0xAE,0xDF,0x8E,0x29,0x7B,0x5A,0xA2,0x48 ))// EFDB238D-2CCA-589C-AEDF-8E297B5AA248 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics2: WindowsFoundation.IID { + .init(Data1: 0x431BEF52, Data2: 0xD60D, Data3: 0x5CE3, Data4: ( 0xB8,0x12,0xAE,0xE4,0xA2,0xFB,0x7E,0xD3 ))// 431BEF52-D60D-5CE3-B812-AEE4A2FB7ED3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x29B5DD9C, Data2: 0x2BFB, Data3: 0x5E1C, Data4: ( 0x97,0xCB,0xCD,0xC3,0xC3,0x4A,0x36,0x5D ))// 29B5DD9C-2BFB-5E1C-97CB-CDC3C34A365D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsFactory: WindowsFoundation.IID { + .init(Data1: 0x1D1A66E3, Data2: 0xF56D, Data3: 0x5D7F, Data4: ( 0x94,0x2C,0xF3,0xA8,0x7F,0x5C,0x55,0x2E ))// 1D1A66E3-F56D-5D7F-942C-F3A87F5C552E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics: WindowsFoundation.IID { + .init(Data1: 0x67817566, Data2: 0x6528, Data3: 0x5F4A, Data4: ( 0xB1,0xE1,0x71,0x0A,0xB0,0x94,0xC7,0x4F ))// 67817566-6528-5F4A-B1E1-710AB094C74F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewList: WindowsFoundation.IID { + .init(Data1: 0x94CEE57B, Data2: 0x7085, Data3: 0x5A6A, Data4: ( 0xAA,0xC3,0x18,0x45,0x09,0xB8,0xEC,0xE0 ))// 94CEE57B-7085-5A6A-AAC3-184509B8ECE0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewListFactory: WindowsFoundation.IID { + .init(Data1: 0x461499A0, Data2: 0x68CF, Data3: 0x5B81, Data4: ( 0xB0,0xE4,0xB1,0xAF,0x92,0x9B,0x0B,0x12 ))// 461499A0-68CF-5B81-B0E4-B1AF929B0B12 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode: WindowsFoundation.IID { + .init(Data1: 0x00378A74, Data2: 0x790B, Data3: 0x5328, Data4: ( 0x8A,0xFA,0x7D,0x65,0xE2,0x2D,0xA4,0x26 ))// 00378A74-790B-5328-8AFA-7D65E22DA426 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeFactory: WindowsFoundation.IID { + .init(Data1: 0xC105A5E5, Data2: 0xCEA8, Data3: 0x5EFD, Data4: ( 0x8B,0xE8,0x3D,0x89,0xB5,0x4C,0xBD,0x5F ))// C105A5E5-CEA8-5EFD-8BE8-3D89B54CBD5F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics: WindowsFoundation.IID { + .init(Data1: 0xF5BB217C, Data2: 0x66B9, Data3: 0x5B62, Data4: ( 0xB2,0xD6,0xFB,0x47,0x84,0x3C,0x8F,0x6F ))// F5BB217C-66B9-5B62-B2D6-FB47843C8F6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewSelectionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x664190F3, Data2: 0x7133, Data3: 0x5599, Data4: ( 0xB4,0x1C,0x1D,0x54,0xCD,0x2C,0xB9,0x30 ))// 664190F3-7133-5599-B41C-1D54CD2CB930 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics: WindowsFoundation.IID { + .init(Data1: 0x71EFAF86, Data2: 0x4D73, Data3: 0x5F5F, Data4: ( 0x8E,0xA6,0xA4,0x2D,0xFE,0x04,0x49,0x17 ))// 71EFAF86-4D73-5F5F-8EA6-A42DFE044917 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2: WindowsFoundation.IID { + .init(Data1: 0xDDD01C44, Data2: 0xA883, Data3: 0x583B, Data4: ( 0x91,0x81,0xDC,0xA5,0x83,0xDA,0x0A,0xD9 ))// DDD01C44-A883-583B-9181-DCA583DA0AD9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUIElementCollection: WindowsFoundation.IID { + .init(Data1: 0x23050CB1, Data2: 0xDB88, Data3: 0x54ED, Data4: ( 0x90,0x83,0x5E,0xCF,0xB1,0x25,0x12,0xFD ))// 23050CB1-DB88-54ED-9083-5ECFB12512FD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout: WindowsFoundation.IID { + .init(Data1: 0x8A164CBC, Data2: 0x2A5E, Data3: 0x56E5, Data4: ( 0xA0,0x11,0xFB,0x76,0x33,0x4A,0xAB,0xDF ))// 8A164CBC-2A5E-56E5-A011-FB76334AABDF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutFactory: WindowsFoundation.IID { + .init(Data1: 0x0D9ED808, Data2: 0xF3F9, Data3: 0x5034, Data4: ( 0x96,0x27,0x15,0x2B,0x91,0xE9,0x1B,0x4B ))// 0D9ED808-F3F9-5034-9627-152B91E91B4B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics: WindowsFoundation.IID { + .init(Data1: 0x19BE9A3E, Data2: 0x37E1, Data3: 0x5A6D, Data4: ( 0x8B,0x62,0x41,0x93,0x25,0xEA,0x70,0x5A ))// 19BE9A3E-37E1-5A6D-8B62-419325EA705A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl: WindowsFoundation.IID { + .init(Data1: 0xAB8A0A51, Data2: 0x44CF, Data3: 0x5337, Data4: ( 0xAD,0x77,0x8E,0xDA,0x17,0x95,0xE9,0xF6 ))// AB8A0A51-44CF-5337-AD77-8EDA1795E9F6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlFactory: WindowsFoundation.IID { + .init(Data1: 0x61AC9074, Data2: 0xAAB3, Data3: 0x50B8, Data4: ( 0x8B,0x18,0xD4,0xD2,0x57,0x3A,0x52,0x35 ))// 61AC9074-AAB3-50B8-8B18-D4D2573A5235 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlStatics: WindowsFoundation.IID { + .init(Data1: 0x575E8FA1, Data2: 0x2E2D, Data3: 0x5857, Data4: ( 0x9A,0x93,0x6B,0x11,0xE5,0x43,0x16,0xBA ))// 575E8FA1-2E2D-5857-9A93-6B11E54316BA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayout: WindowsFoundation.IID { + .init(Data1: 0x54857CE0, Data2: 0xB9E6, Data3: 0x51A3, Data4: ( 0xBF,0xA8,0xDC,0xD8,0xEE,0x30,0x6D,0x5C ))// 54857CE0-B9E6-51A3-BFA8-DCD8EE306D5C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext: WindowsFoundation.IID { + .init(Data1: 0x5B5B186A, Data2: 0xA7F9, Data3: 0x5A2E, Data4: ( 0xB1,0xF0,0x89,0x50,0xCC,0xD9,0x73,0x50 ))// 5B5B186A-A7F9-5A2E-B1F0-8950CCD97350 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext2: WindowsFoundation.IID { + .init(Data1: 0xC34E5864, Data2: 0xA883, Data3: 0x59BE, Data4: ( 0x8C,0xE0,0x4A,0x77,0xE8,0x7B,0x03,0x43 ))// C34E5864-A883-59BE-8CE0-4A77E87B0343 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextFactory: WindowsFoundation.IID { + .init(Data1: 0x3F790B67, Data2: 0xFDFB, Data3: 0x505A, Data4: ( 0x8B,0x85,0x62,0x10,0x50,0x6D,0xF3,0x11 ))// 3F790B67-FDFB-505A-8B85-6210506DF311 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides: WindowsFoundation.IID { + .init(Data1: 0x78633B2A, Data2: 0x9633, Data3: 0x5086, Data4: ( 0x89,0xA7,0x0E,0x96,0x0A,0x95,0xA3,0xB2 ))// 78633B2A-9633-5086-89A7-0E960A95A3B2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2: WindowsFoundation.IID { + .init(Data1: 0xDA384C25, Data2: 0x5D8F, Data3: 0x5EDE, Data4: ( 0xAE,0x54,0xC3,0x18,0x81,0x3A,0xE7,0x84 ))// DA384C25-5D8F-5EDE-AE54-C318813AE784 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutFactory: WindowsFoundation.IID { + .init(Data1: 0xC7C128E1, Data2: 0x5DF7, Data3: 0x5345, Data4: ( 0xB5,0xCD,0x43,0xAF,0xDF,0xA9,0x48,0xB4 ))// C7C128E1-5DF7-5345-B5CD-43AFDFA948B4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides: WindowsFoundation.IID { + .init(Data1: 0x4357A35B, Data2: 0x3703, Data3: 0x5819, Data4: ( 0xA7,0x76,0xD1,0x39,0x84,0x8E,0x9E,0xD9 ))// 4357A35B-3703-5819-A776-D139848E9ED9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResources: WindowsFoundation.IID { + .init(Data1: 0x918CA043, Data2: 0xF42C, Data3: 0x5805, Data4: ( 0x86,0x1B,0x62,0xD6,0xD1,0xD0,0xC1,0x62 ))// 918CA043-F42C-5805-861B-62D6D1D0C162 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResourcesStatics: WindowsFoundation.IID { + .init(Data1: 0xCB49196C, Data2: 0x1458, Data3: 0x5E92, Data4: ( 0xB7,0x01,0xD0,0x8D,0x3E,0x81,0x6B,0xC5 ))// CB49196C-1458-5E92-B701-D08D3E816BC5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandler: WindowsFoundation.IID { + .init(Data1: 0xD010FF61, Data2: 0x4067, Data3: 0x526A, Data4: ( 0x95,0xA3,0x51,0x75,0x77,0xBC,0x52,0x73 ))// D010FF61-4067-526A-95A3-517577BC5273 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandler: WindowsFoundation.IID { + .init(Data1: 0x55532800, Data2: 0x7617, Data3: 0x5D67, Data4: ( 0x80,0xBF,0xB9,0x8C,0x0A,0x41,0xB9,0xD6 ))// 55532800-7617-5D67-80BF-B98C0A41B9D6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandler: WindowsFoundation.IID { + .init(Data1: 0xA3903624, Data2: 0x3393, Data3: 0x566C, Data4: ( 0xA6,0xB9,0xA6,0xB4,0xB3,0xE3,0x01,0xC3 ))// A3903624-3393-566C-A6B9-A6B4B3E301C3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xA232390D, Data2: 0x0E34, Data3: 0x595E, Data4: ( 0x89,0x31,0xFA,0x92,0x8A,0x99,0x09,0xF4 ))// A232390D-0E34-595E-8931-FA928A9909F4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x4CC95C52, Data2: 0x8A54, Data3: 0x53B7, Data4: ( 0x92,0x51,0x0B,0x3E,0xFA,0x60,0x53,0x98 ))// 4CC95C52-8A54-53B7-9251-0B3EFA605398 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x5D8DDCFF, Data2: 0x45D8, Data3: 0x5E7C, Data4: ( 0x9B,0x8B,0xC4,0x1D,0x28,0x93,0xC6,0xA1 ))// 5D8DDCFF-45D8-5E7C-9B8B-C41D2893C6A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandler: WindowsFoundation.IID { + .init(Data1: 0xDDF3A6C0, Data2: 0x5AB1, Data3: 0x5D74, Data4: ( 0x82,0x89,0x89,0x2C,0x06,0x14,0x65,0x8F ))// DDF3A6C0-5AB1-5D74-8289-892C0614658F +} + +public enum __ABI_Microsoft_UI_Xaml_Controls { + public class IAnchorRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs } + + internal func get_AnchorImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Anchor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AnchorImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Anchor(pThis, RawPointer(value))) + } + } + + internal func get_AnchorCandidatesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorCandidates(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: value) + } + + } + + public class IAppBar: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOpen(pThis, .init(from: value))) + } + } + + internal func get_IsStickyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSticky(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStickyImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSticky(pThis, .init(from: value))) + } + } + + internal func get_ClosedDisplayModeImpl() throws -> WinUI.AppBarClosedDisplayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CAppBarClosedDisplayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedDisplayMode(pThis, &value)) + } + return value + } + + internal func put_ClosedDisplayModeImpl(_ value: WinUI.AppBarClosedDisplayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedDisplayMode(pThis, value)) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.AppBarTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModeImpl() throws -> WinUI.LightDismissOverlayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayMode(pThis, &value)) + } + return value + } + + internal func put_LightDismissOverlayModeImpl(_ value: WinUI.LightDismissOverlayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightDismissOverlayMode(pThis, value)) + } + } + + internal func add_OpeningImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opening(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opening(pThis, token)) + } + } + + internal func add_OpenedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + internal func add_ClosingImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.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_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + } + + public class IAppBarFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IAppBar { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IAppBar(value!) + } + + } + + public class IAppBarOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides } + + internal func OnClosedImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnClosed(pThis, _e)) + } + } + + internal func OnOpenedImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnOpened(pThis, _e)) + } + } + + internal func OnClosingImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnClosing(pThis, _e)) + } + } + + internal func OnOpeningImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnOpening(pThis, _e)) + } + } + + } + + public class IAppBarStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsStickyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStickyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedDisplayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedDisplayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBitmapIcon: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon } + + internal func get_UriSourceImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_UriSourceImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UriSource(pThis, RawPointer(value))) + } + } + + internal func get_ShowAsMonochromeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowAsMonochrome(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowAsMonochromeImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowAsMonochrome(pThis, .init(from: value))) + } + } + + } + + public class IBitmapIconFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBitmapIcon { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBitmapIcon(value!) + } + + } + + public class IBitmapIconStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconStatics } + + internal func get_UriSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowAsMonochromePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowAsMonochromeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBorder: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_ChildImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Child(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ChildImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Child(pThis, RawPointer(value))) + } + } + + internal func get_ChildTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ChildTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ChildTransitions(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundTransitionImpl() throws -> WinUI.BrushTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundTransitionImpl(_ value: WinUI.BrushTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundTransition(pThis, RawPointer(value))) + } + } + + } + + public class IBorderStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ChildTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IButton: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton } + + internal func get_FlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Flyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FlyoutImpl(_ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Flyout(pThis, RawPointer(value))) + } + } + + } + + public class IButtonFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IButton { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IButton(value!) + } + + } + + public class IButtonStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonStatics } + + internal func get_FlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButtonStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICandidateWindowBoundsChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICandidateWindowBoundsChangedEventArgs } + + internal func get_BoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICandidateWindowBoundsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounds(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class ICanvas: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvas } + + } + + public class ICanvasFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ICanvas { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ICanvas(value!) + } + + } + + public class ICanvasStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics } + + internal func get_LeftPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLeftImpl(_ element: WinUI.UIElement?) throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLeft(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetLeftImpl(_ element: WinUI.UIElement?, _ length: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLeft(pThis, RawPointer(element), length)) + } + } + + internal func get_TopPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetTopImpl(_ element: WinUI.UIElement?) throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetTop(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetTopImpl(_ element: WinUI.UIElement?, _ length: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTop(pThis, RawPointer(element), length)) + } + } + + internal func get_ZIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetZIndexImpl(_ element: WinUI.UIElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetZIndex(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetZIndexImpl(_ element: WinUI.UIElement?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvasStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetZIndex(pThis, RawPointer(element), value)) + } + } + + } + + public class ICheckBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBox } + + } + + public class ICheckBoxFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBoxFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ICheckBox { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBoxFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ICheckBox(value!) + } + + } + + public class IChoosingGroupHeaderContainerEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs } + + internal func get_GroupHeaderContainerImpl() throws -> WinUI.ListViewBaseHeaderItem? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupHeaderContainer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GroupHeaderContainerImpl(_ value: WinUI.ListViewBaseHeaderItem?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GroupHeaderContainer(pThis, RawPointer(value))) + } + } + + internal func get_GroupIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupIndex(pThis, &value)) + } + return value + } + + internal func get_GroupImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Group(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class IChoosingItemContainerEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs } + + internal func get_ItemIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemIndex(pThis, &value)) + } + return value + } + + internal func get_ItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Item(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_ItemContainerImpl() throws -> WinUI.SelectorItem? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerImpl(_ value: WinUI.SelectorItem?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainer(pThis, RawPointer(value))) + } + } + + internal func get_IsContainerPreparedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsContainerPrepared(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsContainerPreparedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsContainerPrepared(pThis, .init(from: value))) + } + } + + } + + public class IColumnDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition } + + internal func get_WidthImpl() throws -> WinUI.GridLength { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CGridLength = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_WidthImpl(_ value: WinUI.GridLength) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Width(pThis, .from(swift: value))) + } + } + + internal func get_MaxWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidth(pThis, &value)) + } + return value + } + + internal func put_MaxWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxWidth(pThis, value)) + } + } + + internal func get_MinWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidth(pThis, &value)) + } + return value + } + + internal func put_MinWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinWidth(pThis, value)) + } + } + + internal func get_ActualWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualWidth(pThis, &value)) + } + return value + } + + } + + public class IColumnDefinitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinitionStatics } + + internal func get_WidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_WidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IComboBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox } + + internal func get_IsDropDownOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDropDownOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsDropDownOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDropDownOpen(pThis, .init(from: value))) + } + } + + internal func get_IsEditableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEditable(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsEditableImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsEditable(pThis, .init(from: value))) + } + } + + internal func get_IsSelectionBoxHighlightedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSelectionBoxHighlighted(pThis, &value)) + } + return .init(from: value) + } + + internal func get_MaxDropDownHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxDropDownHeight(pThis, &value)) + } + return value + } + + internal func put_MaxDropDownHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxDropDownHeight(pThis, value)) + } + } + + internal func get_SelectionBoxItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionBoxItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_SelectionBoxItemTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionBoxItemTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ComboBoxTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_PlaceholderTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PlaceholderTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaceholderText(pThis, _value.get())) + } + } + + internal func get_LightDismissOverlayModeImpl() throws -> WinUI.LightDismissOverlayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayMode(pThis, &value)) + } + return value + } + + internal func put_LightDismissOverlayModeImpl(_ value: WinUI.LightDismissOverlayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightDismissOverlayMode(pThis, value)) + } + } + + internal func get_IsTextSearchEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextSearchEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextSearchEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextSearchEnabled(pThis, .init(from: value))) + } + } + + internal func get_SelectionChangedTriggerImpl() throws -> WinUI.ComboBoxSelectionChangedTrigger { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CComboBoxSelectionChangedTrigger = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionChangedTrigger(pThis, &value)) + } + return value + } + + internal func put_SelectionChangedTriggerImpl(_ value: WinUI.ComboBoxSelectionChangedTrigger) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionChangedTrigger(pThis, value)) + } + } + + internal func get_PlaceholderForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderForeground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PlaceholderForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaceholderForeground(pThis, RawPointer(value))) + } + } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_TextBoxStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextBoxStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TextBoxStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextBoxStyle(pThis, RawPointer(value))) + } + } + + internal func get_DescriptionImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Description(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DescriptionImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Description(pThis, _value)) + } + } + + internal func add_DropDownClosedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DropDownClosed(pThis, _handler, &token)) + } + return token + } + + internal func remove_DropDownClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DropDownClosed(pThis, token)) + } + } + + internal func add_DropDownOpenedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DropDownOpened(pThis, _handler, &token)) + } + return token + } + + internal func remove_DropDownOpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DropDownOpened(pThis, token)) + } + } + + internal func add_TextSubmittedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextSubmitted(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextSubmittedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextSubmitted(pThis, token)) + } + } + + } + + public class IComboBoxFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IComboBox { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IComboBox(value!) + } + + } + + public class IComboBoxOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides } + + internal func OnDropDownClosedImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDropDownClosed(pThis, _e)) + } + } + + internal func OnDropDownOpenedImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDropDownOpened(pThis, _e)) + } + } + + } + + public class IComboBoxStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics } + + internal func get_IsEditablePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEditableProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsDropDownOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDropDownOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxDropDownHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxDropDownHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlaceholderTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextSearchEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextSearchEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionChangedTriggerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionChangedTriggerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlaceholderForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextBoxStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextBoxStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DescriptionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DescriptionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IComboBoxTextSubmittedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxTextSubmittedEventArgs } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxTextSubmittedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxTextSubmittedEventArgs.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_CXaml_CControls_CIComboBoxTextSubmittedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IContainerContentChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs } + + internal func get_ItemContainerImpl() throws -> WinUI.SelectorItem? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_InRecycleQueueImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InRecycleQueue(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ItemIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemIndex(pThis, &value)) + } + return value + } + + internal func get_ItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Item(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_PhaseImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Phase(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.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_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func RegisterUpdateCallbackImpl(_ callback: TypedEventHandler?) throws { + let callbackWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterUpdateCallback(pThis, _callback)) + } + } + + internal func RegisterUpdateCallbackWithPhaseImpl(_ callbackPhase: UInt32, _ callback: TypedEventHandler?) throws { + let callbackWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper(callback) + let _callback = try! callbackWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterUpdateCallbackWithPhase(pThis, callbackPhase, _callback)) + } + } + + } + + public class IContentControl: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl } + + internal func get_ContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) + } + } + + internal func get_ContentTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTemplate(pThis, RawPointer(value))) + } + } + + internal func get_ContentTemplateSelectorImpl() throws -> WinUI.DataTemplateSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTemplateSelectorImpl(_ value: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTemplateSelector(pThis, RawPointer(value))) + } + } + + internal func get_ContentTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTransitions(pThis, RawPointer(value))) + } + } + + internal func get_ContentTemplateRootImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContentControlFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IContentControl { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IContentControl(value!) + } + + } + + public class IContentControlOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides } + + internal func OnContentChangedImpl(_ oldContent: Any?, _ newContent: Any?) throws { + let oldContentWrapper = __ABI_.AnyWrapper(oldContent) + let _oldContent = try! oldContentWrapper?.toABI { $0 } + let newContentWrapper = __ABI_.AnyWrapper(newContent) + let _newContent = try! newContentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnContentChanged(pThis, _oldContent, _newContent)) + } + } + + internal func OnContentTemplateChangedImpl(_ oldContentTemplate: WinUI.DataTemplate?, _ newContentTemplate: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnContentTemplateChanged(pThis, RawPointer(oldContentTemplate), RawPointer(newContentTemplate))) + } + } + + internal func OnContentTemplateSelectorChangedImpl(_ oldContentTemplateSelector: WinUI.DataTemplateSelector?, _ newContentTemplateSelector: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnContentTemplateSelectorChanged(pThis, RawPointer(oldContentTemplateSelector), RawPointer(newContentTemplateSelector))) + } + } + + } + + public class IContentControlStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTemplateSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContentDialog: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog } + + internal func get_TitleImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_TitleImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value)) + } + } + + internal func get_TitleTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TitleTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TitleTemplate(pThis, RawPointer(value))) + } + } + + internal func get_FullSizeDesiredImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FullSizeDesired(pThis, &value)) + } + return .init(from: value) + } + + internal func put_FullSizeDesiredImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FullSizeDesired(pThis, .init(from: value))) + } + } + + internal func get_PrimaryButtonTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PrimaryButtonTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PrimaryButtonText(pThis, _value.get())) + } + } + + internal func get_SecondaryButtonTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SecondaryButtonTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SecondaryButtonText(pThis, _value.get())) + } + } + + internal func get_CloseButtonTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CloseButtonTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonText(pThis, _value.get())) + } + } + + internal func get_PrimaryButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_PrimaryButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PrimaryButtonCommand(pThis, _value)) + } + } + + internal func get_SecondaryButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_SecondaryButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SecondaryButtonCommand(pThis, _value)) + } + } + + internal func get_CloseButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommand(pThis, _value)) + } + } + + internal func get_PrimaryButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_PrimaryButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PrimaryButtonCommandParameter(pThis, _value)) + } + } + + internal func get_SecondaryButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SecondaryButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SecondaryButtonCommandParameter(pThis, _value)) + } + } + + internal func get_CloseButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommandParameter(pThis, _value)) + } + } + + internal func get_IsPrimaryButtonEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPrimaryButtonEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPrimaryButtonEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPrimaryButtonEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsSecondaryButtonEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSecondaryButtonEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSecondaryButtonEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSecondaryButtonEnabled(pThis, .init(from: value))) + } + } + + internal func get_PrimaryButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PrimaryButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PrimaryButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_SecondaryButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SecondaryButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SecondaryButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_CloseButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CloseButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_DefaultButtonImpl() throws -> WinUI.ContentDialogButton { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultButton(pThis, &value)) + } + return value + } + + internal func put_DefaultButtonImpl(_ value: WinUI.ContentDialogButton) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultButton(pThis, value)) + } + } + + internal func add_ClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.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_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + internal func add_OpenedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + internal func add_PrimaryButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PrimaryButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_PrimaryButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PrimaryButtonClick(pThis, token)) + } + } + + internal func add_SecondaryButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SecondaryButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_SecondaryButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SecondaryButtonClick(pThis, token)) + } + } + + internal func add_CloseButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CloseButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_CloseButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CloseButtonClick(pThis, token)) + } + } + + internal func HideImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Hide(pThis)) + } + } + + internal func ShowAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAsync(pThis, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.unwrapFrom(abi: operation) + } + + internal func ShowAsyncWithPlacementImpl(_ placement: WinUI.ContentDialogPlacement) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAsyncWithPlacement(pThis, placement, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.unwrapFrom(abi: operation) + } + + } + + public class IContentDialogButtonClickDeferral: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickDeferral } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickDeferral.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IContentDialogButtonClickEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickEventArgs.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_CXaml_CControls_CIContentDialogButtonClickEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func GetDeferralImpl() throws -> WinUI.ContentDialogButtonClickDeferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContentDialogClosedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosedEventArgs } + + internal func get_ResultImpl() throws -> WinUI.ContentDialogResult { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Result(pThis, &value)) + } + return value + } + + } + + public class IContentDialogClosingDeferral: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingDeferral } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingDeferral.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IContentDialogClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs } + + internal func get_ResultImpl() throws -> WinUI.ContentDialogResult { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Result(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs.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_CXaml_CControls_CIContentDialogClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func GetDeferralImpl() throws -> WinUI.ContentDialogClosingDeferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContentDialogFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IContentDialog { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IContentDialog(value!) + } + + } + + public class IContentDialogOpenedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogOpenedEventArgs } + + } + + public class IContentDialogStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics } + + internal func get_TitlePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TitleTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FullSizeDesiredPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FullSizeDesiredProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PrimaryButtonTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SecondaryButtonTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PrimaryButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SecondaryButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PrimaryButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SecondaryButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPrimaryButtonEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPrimaryButtonEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSecondaryButtonEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSecondaryButtonEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PrimaryButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PrimaryButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SecondaryButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SecondaryButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DefaultButtonPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultButtonProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContentPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter } + + internal func get_ContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) + } + } + + internal func get_ContentTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTemplate(pThis, RawPointer(value))) + } + } + + internal func get_ContentTemplateSelectorImpl() throws -> WinUI.DataTemplateSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTemplateSelectorImpl(_ value: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTemplateSelector(pThis, RawPointer(value))) + } + } + + internal func get_ContentTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTransitions(pThis, RawPointer(value))) + } + } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_FontStretchImpl() throws -> UWP.FontStretch { + var value: __x_ABI_CWindows_CUI_CText_CFontStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretch(pThis, &value)) + } + return value + } + + internal func put_FontStretchImpl(_ value: UWP.FontStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStretch(pThis, value)) + } + } + + internal func get_CharacterSpacingImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacing(pThis, &value)) + } + return value + } + + internal func put_CharacterSpacingImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharacterSpacing(pThis, value)) + } + } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func get_OpticalMarginAlignmentImpl() throws -> WinUI.OpticalMarginAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_COpticalMarginAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpticalMarginAlignment(pThis, &value)) + } + return value + } + + internal func put_OpticalMarginAlignmentImpl(_ value: WinUI.OpticalMarginAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpticalMarginAlignment(pThis, value)) + } + } + + internal func get_TextLineBoundsImpl() throws -> WinUI.TextLineBounds { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextLineBounds(pThis, &value)) + } + return value + } + + internal func put_TextLineBoundsImpl(_ value: WinUI.TextLineBounds) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextLineBounds(pThis, value)) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_BackgroundTransitionImpl() throws -> WinUI.BrushTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundTransitionImpl(_ value: WinUI.BrushTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundTransition(pThis, RawPointer(value))) + } + } + + internal func get_TextWrappingImpl() throws -> WinUI.TextWrapping { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrapping(pThis, &value)) + } + return value + } + + internal func put_TextWrappingImpl(_ value: WinUI.TextWrapping) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextWrapping(pThis, value)) + } + } + + internal func get_MaxLinesImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLines(pThis, &value)) + } + return value + } + + internal func put_MaxLinesImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxLines(pThis, value)) + } + } + + internal func get_LineStackingStrategyImpl() throws -> WinUI.LineStackingStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineStackingStrategy(pThis, &value)) + } + return value + } + + internal func put_LineStackingStrategyImpl(_ value: WinUI.LineStackingStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LineStackingStrategy(pThis, value)) + } + } + + internal func get_LineHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineHeight(pThis, &value)) + } + return value + } + + internal func put_LineHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LineHeight(pThis, value)) + } + } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_HorizontalContentAlignmentImpl() throws -> WinUI.HorizontalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalContentAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalContentAlignmentImpl(_ value: WinUI.HorizontalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalContentAlignment(pThis, value)) + } + } + + internal func get_VerticalContentAlignmentImpl() throws -> WinUI.VerticalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalContentAlignment(pThis, &value)) + } + return value + } + + internal func put_VerticalContentAlignmentImpl(_ value: WinUI.VerticalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalContentAlignment(pThis, value)) + } + } + + } + + public class IContentPresenterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IContentPresenter { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IContentPresenter(value!) + } + + } + + public class IContentPresenterOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides } + + internal func OnContentTemplateChangedImpl(_ oldContentTemplate: WinUI.DataTemplate?, _ newContentTemplate: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnContentTemplateChanged(pThis, RawPointer(oldContentTemplate), RawPointer(newContentTemplate))) + } + } + + internal func OnContentTemplateSelectorChangedImpl(_ oldContentTemplateSelector: WinUI.DataTemplateSelector?, _ newContentTemplateSelector: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnContentTemplateSelectorChanged(pThis, RawPointer(oldContentTemplateSelector), RawPointer(newContentTemplateSelector))) + } + } + + } + + public class IContentPresenterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTemplateSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpticalMarginAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpticalMarginAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextLineBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextLineBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextWrappingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrappingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxLinesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLinesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LineStackingStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineStackingStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LineHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalContentAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalContentAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalContentAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalContentAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContextMenuEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs.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_CXaml_CControls_CIContextMenuEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_CursorLeftImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CursorLeft(pThis, &value)) + } + return value + } + + internal func get_CursorTopImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CursorTop(pThis, &value)) + } + return value + } + + } + + public class IControl: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl } + + internal func get_IsFocusEngagementEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFocusEngagementEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFocusEngagementEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFocusEngagementEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsFocusEngagedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFocusEngaged(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFocusEngagedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFocusEngaged(pThis, .init(from: value))) + } + } + + internal func get_RequiresPointerImpl() throws -> WinUI.RequiresPointer { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CRequiresPointer = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequiresPointer(pThis, &value)) + } + return value + } + + internal func put_RequiresPointerImpl(_ value: WinUI.RequiresPointer) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RequiresPointer(pThis, value)) + } + } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_FontStretchImpl() throws -> UWP.FontStretch { + var value: __x_ABI_CWindows_CUI_CText_CFontStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretch(pThis, &value)) + } + return value + } + + internal func put_FontStretchImpl(_ value: UWP.FontStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStretch(pThis, value)) + } + } + + internal func get_CharacterSpacingImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacing(pThis, &value)) + } + return value + } + + internal func put_CharacterSpacingImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharacterSpacing(pThis, value)) + } + } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.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_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsEnabled(pThis, .init(from: value))) + } + } + + internal func get_TabNavigationImpl() throws -> WinUI.KeyboardNavigationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabNavigation(pThis, &value)) + } + return value + } + + internal func put_TabNavigationImpl(_ value: WinUI.KeyboardNavigationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabNavigation(pThis, value)) + } + } + + internal func get_TemplateImpl() throws -> WinUI.ControlTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Template(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TemplateImpl(_ value: WinUI.ControlTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Template(pThis, RawPointer(value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_HorizontalContentAlignmentImpl() throws -> WinUI.HorizontalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalContentAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalContentAlignmentImpl(_ value: WinUI.HorizontalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalContentAlignment(pThis, value)) + } + } + + internal func get_VerticalContentAlignmentImpl() throws -> WinUI.VerticalAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalContentAlignment(pThis, &value)) + } + return value + } + + internal func put_VerticalContentAlignmentImpl(_ value: WinUI.VerticalAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalContentAlignment(pThis, value)) + } + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_DefaultStyleResourceUriImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultStyleResourceUri(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DefaultStyleResourceUriImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultStyleResourceUri(pThis, RawPointer(value))) + } + } + + internal func get_ElementSoundModeImpl() throws -> WinUI.ElementSoundMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundMode(pThis, &value)) + } + return value + } + + internal func put_ElementSoundModeImpl(_ value: WinUI.ElementSoundMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ElementSoundMode(pThis, value)) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func add_FocusEngagedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_FocusEngaged(pThis, _handler, &token)) + } + return token + } + + internal func remove_FocusEngagedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_FocusEngaged(pThis, token)) + } + } + + internal func add_FocusDisengagedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_FocusDisengaged(pThis, _handler, &token)) + } + return token + } + + internal func remove_FocusDisengagedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_FocusDisengaged(pThis, token)) + } + } + + internal func add_IsEnabledChangedImpl(_ handler: WinUI.DependencyPropertyChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.DependencyPropertyChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_IsEnabledChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_IsEnabledChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_IsEnabledChanged(pThis, token)) + } + } + + internal func RemoveFocusEngagementImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveFocusEngagement(pThis)) + } + } + + internal func ApplyTemplateImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ApplyTemplate(pThis, &result)) + } + return .init(from: result) + } + + } + + public class IControlFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IControl { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IControl(value!) + } + + } + + public class IControlOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides } + + internal func OnPointerEnteredImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerEntered(pThis, RawPointer(e))) + } + } + + internal func OnPointerPressedImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerPressed(pThis, RawPointer(e))) + } + } + + internal func OnPointerMovedImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerMoved(pThis, RawPointer(e))) + } + } + + internal func OnPointerReleasedImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerReleased(pThis, RawPointer(e))) + } + } + + internal func OnPointerExitedImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerExited(pThis, RawPointer(e))) + } + } + + internal func OnPointerCaptureLostImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerCaptureLost(pThis, RawPointer(e))) + } + } + + internal func OnPointerCanceledImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerCanceled(pThis, RawPointer(e))) + } + } + + internal func OnPointerWheelChangedImpl(_ e: WinUI.PointerRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPointerWheelChanged(pThis, RawPointer(e))) + } + } + + internal func OnTappedImpl(_ e: WinUI.TappedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnTapped(pThis, RawPointer(e))) + } + } + + internal func OnDoubleTappedImpl(_ e: WinUI.DoubleTappedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDoubleTapped(pThis, RawPointer(e))) + } + } + + internal func OnHoldingImpl(_ e: WinUI.HoldingRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnHolding(pThis, RawPointer(e))) + } + } + + internal func OnRightTappedImpl(_ e: WinUI.RightTappedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnRightTapped(pThis, RawPointer(e))) + } + } + + internal func OnManipulationStartingImpl(_ e: WinUI.ManipulationStartingRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnManipulationStarting(pThis, RawPointer(e))) + } + } + + internal func OnManipulationInertiaStartingImpl(_ e: WinUI.ManipulationInertiaStartingRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnManipulationInertiaStarting(pThis, RawPointer(e))) + } + } + + internal func OnManipulationStartedImpl(_ e: WinUI.ManipulationStartedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnManipulationStarted(pThis, RawPointer(e))) + } + } + + internal func OnManipulationDeltaImpl(_ e: WinUI.ManipulationDeltaRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnManipulationDelta(pThis, RawPointer(e))) + } + } + + internal func OnManipulationCompletedImpl(_ e: WinUI.ManipulationCompletedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnManipulationCompleted(pThis, RawPointer(e))) + } + } + + internal func OnKeyUpImpl(_ e: WinUI.KeyRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnKeyUp(pThis, RawPointer(e))) + } + } + + internal func OnKeyDownImpl(_ e: WinUI.KeyRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnKeyDown(pThis, RawPointer(e))) + } + } + + internal func OnPreviewKeyDownImpl(_ e: WinUI.KeyRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPreviewKeyDown(pThis, RawPointer(e))) + } + } + + internal func OnPreviewKeyUpImpl(_ e: WinUI.KeyRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnPreviewKeyUp(pThis, RawPointer(e))) + } + } + + internal func OnGotFocusImpl(_ e: WinUI.RoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnGotFocus(pThis, RawPointer(e))) + } + } + + internal func OnLostFocusImpl(_ e: WinUI.RoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnLostFocus(pThis, RawPointer(e))) + } + } + + internal func OnCharacterReceivedImpl(_ e: WinUI.CharacterReceivedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnCharacterReceived(pThis, RawPointer(e))) + } + } + + internal func OnDragEnterImpl(_ e: WinUI.DragEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDragEnter(pThis, RawPointer(e))) + } + } + + internal func OnDragLeaveImpl(_ e: WinUI.DragEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDragLeave(pThis, RawPointer(e))) + } + } + + internal func OnDragOverImpl(_ e: WinUI.DragEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDragOver(pThis, RawPointer(e))) + } + } + + internal func OnDropImpl(_ e: WinUI.DragEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDrop(pThis, RawPointer(e))) + } + } + + } + + public class IControlProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlProtected } + + internal func get_DefaultStyleKeyImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultStyleKey(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DefaultStyleKeyImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultStyleKey(pThis, _value)) + } + } + + internal func GetTemplateChildImpl(_ childName: String) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + let _childName = try! HString(childName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetTemplateChild(pThis, _childName.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IControlStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics } + + internal func get_IsFocusEngagementEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFocusEngagementEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFocusEngagedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFocusEngagedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RequiresPointerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequiresPointerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TabNavigationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabNavigationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalContentAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalContentAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalContentAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalContentAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DefaultStyleKeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultStyleKeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DefaultStyleResourceUriPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultStyleResourceUriProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementSoundModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTemplateFocusTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTemplateFocusTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsTemplateFocusTargetImpl(_ element: WinUI.FrameworkElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsTemplateFocusTarget(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsTemplateFocusTargetImpl(_ element: WinUI.FrameworkElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsTemplateFocusTarget(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_IsTemplateKeyTipTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTemplateKeyTipTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsTemplateKeyTipTargetImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsTemplateKeyTipTarget(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsTemplateKeyTipTargetImpl(_ element: WinUI.DependencyObject?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsTemplateKeyTipTarget(pThis, RawPointer(element), .init(from: value))) + } + } + + } + + public class IControlTemplate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlTemplate } + + internal func get_TargetTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlTemplate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetType(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TargetTypeImpl(_ value: WinUI.TypeName) throws { + let _value = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlTemplate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetType(pThis, _value.val)) + } + } + + } + + public class IDataTemplateSelector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector } + + internal func SelectTemplateImpl(_ item: Any?, _ container: WinUI.DependencyObject?) throws -> WinUI.DataTemplate? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectTemplate(pThis, _item, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SelectTemplateForItemImpl(_ item: Any?) throws -> WinUI.DataTemplate? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectTemplateForItem(pThis, _item, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDataTemplateSelectorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDataTemplateSelector { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDataTemplateSelector(value!) + } + + } + + public class IDataTemplateSelectorOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides } + + internal func SelectTemplateCoreImpl(_ item: Any?, _ container: WinUI.DependencyObject?) throws -> WinUI.DataTemplate? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectTemplateCore(pThis, _item, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SelectTemplateForItemCoreImpl(_ item: Any?) throws -> WinUI.DataTemplate? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectTemplateForItemCore(pThis, _item, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IDragItemsCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsCompletedEventArgs } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_DropResultImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropResult(pThis, &value)) + } + return value + } + + } + + public class IDragItemsStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs.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_CXaml_CControls_CIDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_DataImpl() throws -> UWP.DataPackage? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFlipView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView } + + internal func get_UseTouchAnimationsForAllNavigationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseTouchAnimationsForAllNavigation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_UseTouchAnimationsForAllNavigationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseTouchAnimationsForAllNavigation(pThis, .init(from: value))) + } + } + + } + + public class IFlipViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlipView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlipView(value!) + } + + } + + public class IFlipViewItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItem } + + } + + public class IFlipViewItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlipViewItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlipViewItem(value!) + } + + } + + public class IFlipViewStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewStatics } + + internal func get_UseTouchAnimationsForAllNavigationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseTouchAnimationsForAllNavigationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFlyout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_FlyoutPresenterStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlyoutPresenterStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FlyoutPresenterStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FlyoutPresenterStyle(pThis, RawPointer(value))) + } + } + + } + + public class IFlyoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlyout { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlyout(value!) + } + + } + + public class IFlyoutPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter } + + internal func get_IsDefaultShadowEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDefaultShadowEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsDefaultShadowEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDefaultShadowEnabled(pThis, .init(from: value))) + } + } + + } + + public class IFlyoutPresenterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlyoutPresenter { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlyoutPresenter(value!) + } + + } + + public class IFlyoutPresenterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterStatics } + + internal func get_IsDefaultShadowEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDefaultShadowEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFlyoutStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FlyoutPresenterStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlyoutPresenterStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFocusDisengagedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusDisengagedEventArgs } + + } + + public class IFocusEngagedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusEngagedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusEngagedEventArgs.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_CXaml_CControls_CIFocusEngagedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IFontIcon: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon } + + internal func get_GlyphImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Glyph(pThis, &value)) + } + return .init(from: value) + } + + internal func put_GlyphImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Glyph(pThis, _value.get())) + } + } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_MirroredWhenRightToLeftImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MirroredWhenRightToLeft(pThis, &value)) + } + return .init(from: value) + } + + internal func put_MirroredWhenRightToLeftImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MirroredWhenRightToLeft(pThis, .init(from: value))) + } + } + + } + + public class IFontIconFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFontIcon { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFontIcon(value!) + } + + } + + public class IFontIconSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource } + + internal func get_GlyphImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Glyph(pThis, &value)) + } + return .init(from: value) + } + + internal func put_GlyphImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Glyph(pThis, _value.get())) + } + } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_MirroredWhenRightToLeftImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MirroredWhenRightToLeft(pThis, &value)) + } + return .init(from: value) + } + + internal func put_MirroredWhenRightToLeftImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MirroredWhenRightToLeft(pThis, .init(from: value))) + } + } + + } + + public class IFontIconSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFontIconSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFontIconSource(value!) + } + + } + + public class IFontIconSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics } + + internal func get_GlyphPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MirroredWhenRightToLeftPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MirroredWhenRightToLeftProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFontIconStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics } + + internal func get_GlyphPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MirroredWhenRightToLeftPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MirroredWhenRightToLeftProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame } + + internal func get_CacheSizeImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheSize(pThis, &value)) + } + return value + } + + internal func put_CacheSizeImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CacheSize(pThis, value)) + } + } + + internal func get_CanGoBackImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanGoBack(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CanGoForwardImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanGoForward(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CurrentSourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurrentSourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_SourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_SourcePageTypeImpl(_ value: WinUI.TypeName) throws { + let _value = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourcePageType(pThis, _value.val)) + } + } + + internal func get_BackStackDepthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackStackDepth(pThis, &value)) + } + return value + } + + internal func get_BackStackImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackStack(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.unwrapFrom(abi: value) + } + + internal func get_ForwardStackImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForwardStack(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.unwrapFrom(abi: value) + } + + internal func get_IsNavigationStackEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsNavigationStackEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsNavigationStackEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsNavigationStackEnabled(pThis, .init(from: value))) + } + } + + internal func add_NavigatedImpl(_ handler: WinUI.NavigatedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Navigation.NavigatedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Navigated(pThis, _handler, &token)) + } + return token + } + + internal func remove_NavigatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Navigated(pThis, token)) + } + } + + internal func add_NavigatingImpl(_ handler: WinUI.NavigatingCancelEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Navigation.NavigatingCancelEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Navigating(pThis, _handler, &token)) + } + return token + } + + internal func remove_NavigatingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Navigating(pThis, token)) + } + } + + internal func add_NavigationFailedImpl(_ handler: WinUI.NavigationFailedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Navigation.NavigationFailedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_NavigationFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_NavigationFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_NavigationFailed(pThis, token)) + } + } + + internal func add_NavigationStoppedImpl(_ handler: WinUI.NavigationStoppedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Navigation.NavigationStoppedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_NavigationStopped(pThis, _handler, &token)) + } + return token + } + + internal func remove_NavigationStoppedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_NavigationStopped(pThis, token)) + } + } + + internal func GoBackImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GoBack(pThis)) + } + } + + internal func GoBackWithTransitionInfoImpl(_ transitionInfoOverride: WinUI.NavigationTransitionInfo?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GoBackWithTransitionInfo(pThis, RawPointer(transitionInfoOverride))) + } + } + + internal func GoForwardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GoForward(pThis)) + } + } + + internal func NavigateImpl(_ sourcePageType: WinUI.TypeName, _ parameter: Any?) throws -> Bool { + var result: boolean = 0 + let _sourcePageType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: sourcePageType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Navigate(pThis, _sourcePageType.val, _parameter, &result)) + } + return .init(from: result) + } + + internal func NavigateWithTransitionInfoImpl(_ sourcePageType: WinUI.TypeName, _ parameter: Any?, _ infoOverride: WinUI.NavigationTransitionInfo?) throws -> Bool { + var result: boolean = 0 + let _sourcePageType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: sourcePageType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateWithTransitionInfo(pThis, _sourcePageType.val, _parameter, RawPointer(infoOverride), &result)) + } + return .init(from: result) + } + + internal func NavigateToTypeImpl(_ sourcePageType: WinUI.TypeName, _ parameter: Any?, _ navigationOptions: WinUI.FrameNavigationOptions?) throws -> Bool { + var result: boolean = 0 + let _sourcePageType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: sourcePageType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateToType(pThis, _sourcePageType.val, _parameter, RawPointer(navigationOptions), &result)) + } + return .init(from: result) + } + + internal func GetNavigationStateImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetNavigationState(pThis, &result)) + } + return .init(from: result) + } + + internal func SetNavigationStateImpl(_ navigationState: String) throws { + let _navigationState = try! HString(navigationState) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetNavigationState(pThis, _navigationState.get())) + } + } + + internal func SetNavigationStateWithNavigationControlImpl(_ navigationState: String, _ suppressNavigate: Bool) throws { + let _navigationState = try! HString(navigationState) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetNavigationStateWithNavigationControl(pThis, _navigationState.get(), .init(from: suppressNavigate))) + } + } + + } + + public class IFrameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrame { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFrame(value!) + } + + } + + public class IFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics } + + internal func get_CacheSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CacheSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanGoBackPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanGoBackProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanGoForwardPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanGoForwardProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CurrentSourcePageTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurrentSourcePageTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SourcePageTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackStackDepthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackStackDepthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackStackPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackStackProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ForwardStackPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForwardStackProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsNavigationStackEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsNavigationStackEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IGrid: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid } + + internal func get_RowDefinitionsImpl() throws -> WinUI.RowDefinitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RowDefinitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ColumnDefinitionsImpl() throws -> WinUI.ColumnDefinitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColumnDefinitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_RowSpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RowSpacing(pThis, &value)) + } + return value + } + + internal func put_RowSpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RowSpacing(pThis, value)) + } + } + + internal func get_ColumnSpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColumnSpacing(pThis, &value)) + } + return value + } + + internal func put_ColumnSpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ColumnSpacing(pThis, value)) + } + } + + } + + public class IGridFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGrid { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGrid(value!) + } + + } + + public class IGridStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RowSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RowSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ColumnSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColumnSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RowPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RowProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetRowImpl(_ element: WinUI.FrameworkElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRow(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetRowImpl(_ element: WinUI.FrameworkElement?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetRow(pThis, RawPointer(element), value)) + } + } + + internal func get_ColumnPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColumnProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetColumnImpl(_ element: WinUI.FrameworkElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetColumn(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetColumnImpl(_ element: WinUI.FrameworkElement?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetColumn(pThis, RawPointer(element), value)) + } + } + + internal func get_RowSpanPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RowSpanProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetRowSpanImpl(_ element: WinUI.FrameworkElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRowSpan(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetRowSpanImpl(_ element: WinUI.FrameworkElement?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetRowSpan(pThis, RawPointer(element), value)) + } + } + + internal func get_ColumnSpanPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColumnSpanProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetColumnSpanImpl(_ element: WinUI.FrameworkElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetColumnSpan(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetColumnSpanImpl(_ element: WinUI.FrameworkElement?, _ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetColumnSpan(pThis, RawPointer(element), value)) + } + } + + } + + public class IGridView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridView } + + } + + public class IGridViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGridView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGridView(value!) + } + + } + + public class IGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle } + + internal func get_PanelImpl() throws -> WinUI.ItemsPanelTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Panel(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PanelImpl(_ value: WinUI.ItemsPanelTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Panel(pThis, RawPointer(value))) + } + } + + internal func get_ContainerStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainerStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContainerStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContainerStyle(pThis, RawPointer(value))) + } + } + + internal func get_HeaderContainerStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderContainerStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderContainerStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderContainerStyle(pThis, RawPointer(value))) + } + } + + internal func get_ContainerStyleSelectorImpl() throws -> WinUI.StyleSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainerStyleSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContainerStyleSelectorImpl(_ value: WinUI.StyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContainerStyleSelector(pThis, RawPointer(value))) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_HeaderTemplateSelectorImpl() throws -> WinUI.DataTemplateSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateSelectorImpl(_ value: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplateSelector(pThis, RawPointer(value))) + } + } + + internal func get_HidesIfEmptyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HidesIfEmpty(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HidesIfEmptyImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HidesIfEmpty(pThis, .init(from: value))) + } + } + + } + + public class IGroupStyleFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGroupStyle { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGroupStyle(value!) + } + + } + + public class IGroupStyleSelector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelector } + + internal func SelectGroupStyleImpl(_ group: Any?, _ level: UInt32) throws -> WinUI.GroupStyle? { + let (result) = try ComPtrs.initialize { resultAbi in + let groupWrapper = __ABI_.AnyWrapper(group) + let _group = try! groupWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectGroupStyle(pThis, _group, level, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IGroupStyleSelectorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGroupStyleSelector { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGroupStyleSelector(value!) + } + + } + + public class IGroupStyleSelectorOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverrides } + + internal func SelectGroupStyleCoreImpl(_ group: Any?, _ level: UInt32) throws -> WinUI.GroupStyle? { + let (result) = try ComPtrs.initialize { resultAbi in + let groupWrapper = __ABI_.AnyWrapper(group) + let _group = try! groupWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectGroupStyleCore(pThis, _group, level, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IHyperlinkButton: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton } + + internal func get_NavigateUriImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigateUri(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NavigateUriImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NavigateUri(pThis, RawPointer(value))) + } + } + + } + + public class IHyperlinkButtonFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IHyperlinkButton { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IHyperlinkButton(value!) + } + + } + + public class IHyperlinkButtonStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonStatics } + + internal func get_NavigateUriPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButtonStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigateUriProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IIconElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + } + + public class IIconElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElementFactory } + + } + + public class IIconElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElementStatics } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IIconSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func CreateIconElementImpl() throws -> WinUI.IconElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateIconElement(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IIconSourceElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement } + + internal func get_IconSourceImpl() throws -> WinUI.IconSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconSourceImpl(_ value: WinUI.IconSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconSource(pThis, RawPointer(value))) + } + } + + } + + public class IIconSourceElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IIconSourceElement { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IIconSourceElement(value!) + } + + } + + public class IIconSourceElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementStatics } + + internal func get_IconSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IIconSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceFactory } + + } + + public class IIconSourceOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides } + + internal func CreateIconElementCoreImpl() throws -> WinUI.IconElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateIconElementCore(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetIconElementPropertyCoreImpl(_ iconSourceProperty: WinUI.DependencyProperty?) throws -> WinUI.DependencyProperty? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIconElementPropertyCore(pThis, RawPointer(iconSourceProperty), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IIconSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceStatics } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IImage: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage } + + internal func get_SourceImpl() throws -> WinUI.ImageSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WinUI.ImageSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + internal func get_StretchImpl() throws -> WinUI.Stretch { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stretch(pThis, &value)) + } + return value + } + + internal func put_StretchImpl(_ value: WinUI.Stretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stretch(pThis, value)) + } + } + + internal func get_NineGridImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NineGrid(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_NineGridImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NineGrid(pThis, .from(swift: value))) + } + } + + internal func add_ImageFailedImpl(_ handler: WinUI.ExceptionRoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ImageFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ImageFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ImageFailed(pThis, token)) + } + } + + internal func add_ImageOpenedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ImageOpened(pThis, _handler, &token)) + } + return token + } + + internal func remove_ImageOpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ImageOpened(pThis, token)) + } + } + + internal func GetAsCastingSourceImpl() throws -> UWP.CastingSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAsCastingSource(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetAlphaMaskImpl() throws -> WinAppSDK.CompositionBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlphaMask(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IImageIcon: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon } + + internal func get_SourceImpl() throws -> WinUI.ImageSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceImpl(_ value: WinUI.ImageSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, RawPointer(value))) + } + } + + } + + public class IImageIconFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IImageIcon { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IImageIcon(value!) + } + + } + + public class IImageIconStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconStatics } + + internal func get_SourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIconStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IImageStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageStatics } + + internal func get_SourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NineGridPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NineGridProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IInfoBar: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOpen(pThis, .init(from: value))) + } + } + + internal func get_TitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.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_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get())) + } + } + + internal func get_MessageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Message(pThis, &value)) + } + return .init(from: value) + } + + internal func put_MessageImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Message(pThis, _value.get())) + } + } + + internal func get_SeverityImpl() throws -> WinUI.InfoBarSeverity { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Severity(pThis, &value)) + } + return value + } + + internal func put_SeverityImpl(_ value: WinUI.InfoBarSeverity) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Severity(pThis, value)) + } + } + + internal func get_IconSourceImpl() throws -> WinUI.IconSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconSourceImpl(_ value: WinUI.IconSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconSource(pThis, RawPointer(value))) + } + } + + internal func get_IsIconVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIconVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsIconVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIconVisible(pThis, .init(from: value))) + } + } + + internal func get_IsClosableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsClosable(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsClosableImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsClosable(pThis, .init(from: value))) + } + } + + internal func get_CloseButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CloseButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_CloseButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommand(pThis, _value)) + } + } + + internal func get_CloseButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommandParameter(pThis, _value)) + } + } + + internal func get_ActionButtonImpl() throws -> WinUI.ButtonBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButton(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ActionButtonImpl(_ value: WinUI.ButtonBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ActionButton(pThis, RawPointer(value))) + } + } + + internal func get_ContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) + } + } + + internal func get_ContentTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTemplate(pThis, RawPointer(value))) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.InfoBarTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_CloseButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CloseButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_CloseButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CloseButtonClick(pThis, token)) + } + } + + internal func add_ClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.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_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + } + + public class IInfoBarClosedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgs } + + internal func get_ReasonImpl() throws -> WinUI.InfoBarCloseReason { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarCloseReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + } + + public class IInfoBarClosedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgsFactory } + + } + + public class IInfoBarClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs } + + internal func get_ReasonImpl() throws -> WinUI.InfoBarCloseReason { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarCloseReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs.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_CXaml_CControls_CIInfoBarClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class IInfoBarClosingEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgsFactory } + + } + + public class IInfoBarFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IInfoBar { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IInfoBar(value!) + } + + } + + public class IInfoBarStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TitlePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MessagePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MessageProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SeverityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SeverityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IconSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsIconVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIconVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsClosablePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsClosableProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActionButtonPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TemplateSettingsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettingsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IInfoBarTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings } + + internal func get_IconElementImpl() throws -> WinUI.IconElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconElementImpl(_ value: WinUI.IconElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconElement(pThis, RawPointer(value))) + } + } + + } + + public class IInfoBarTemplateSettingsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IInfoBarTemplateSettings { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IInfoBarTemplateSettings(value!) + } + + } + + public class IInfoBarTemplateSettingsStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsStatics } + + internal func get_IconElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IInsertionPanel: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanel } + + open func GetInsertionIndexesImpl(_ position: WindowsFoundation.Point, _ first: inout Int32, _ second: inout Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetInsertionIndexes(pThis, .from(swift: position), &first, &second)) + } + } + + } + + internal static var IInsertionPanelVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanelVtbl = .init( + QueryInterface: { IInsertionPanelWrapper.queryInterface($0, $1, $2) }, + AddRef: { IInsertionPanelWrapper.addRef($0) }, + Release: { IInsertionPanelWrapper.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_Xaml_Controls.IInsertionPanelWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.IInsertionPanel").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetInsertionIndexes: { + do { + guard let __unwrapped__instance = IInsertionPanelWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let position: WindowsFoundation.Point = .from(abi: $1) + var first: Int32 = 0 + var second: Int32 = 0 + try __unwrapped__instance.getInsertionIndexes(position, &first, &second) + $2?.initialize(to: first) + $3?.initialize(to: second) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IInsertionPanelWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.IInsertionPanelBridge> + public class IIsTextTrimmedChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIsTextTrimmedChangedEventArgs } + + } + + public class IItemClickEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventArgs } + + internal func get_ClickedItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClickedItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class IItemCollectionTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition } + + internal func get_OperationImpl() throws -> WinUI.ItemCollectionTransitionOperation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Operation(pThis, &value)) + } + return value + } + + internal func get_TriggersImpl() throws -> WinUI.ItemCollectionTransitionTriggers { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Triggers(pThis, &value)) + } + return value + } + + internal func get_OldBoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldBounds(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NewBoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewBounds(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HasStartedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasStarted(pThis, &value)) + } + return .init(from: value) + } + + internal func StartImpl() throws -> WinUI.ItemCollectionTransitionProgress? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Start(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IItemCollectionTransitionCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs } + + internal func get_TransitionImpl() throws -> WinUI.ItemCollectionTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IItemCollectionTransitionProgress: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress } + + internal func get_TransitionImpl() throws -> WinUI.ItemCollectionTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IItemCollectionTransitionProvider: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider } + + internal func ShouldAnimateImpl(_ transition: WinUI.ItemCollectionTransition?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShouldAnimate(pThis, RawPointer(transition), &result)) + } + return .init(from: result) + } + + internal func QueueTransitionImpl(_ transition: WinUI.ItemCollectionTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.QueueTransition(pThis, RawPointer(transition))) + } + } + + internal func add_TransitionCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TransitionCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_TransitionCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TransitionCompleted(pThis, token)) + } + } + + } + + public class IItemCollectionTransitionProviderFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IItemCollectionTransitionProvider { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IItemCollectionTransitionProvider(value!) + } + + } + + public class IItemCollectionTransitionProviderOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides } + + internal func ShouldAnimateCoreImpl(_ transition: WinUI.ItemCollectionTransition?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShouldAnimateCore(pThis, RawPointer(transition), &result)) + } + return .init(from: result) + } + + internal func StartTransitionsImpl(_ transitions: WindowsFoundation.AnyIVector?) throws { + let transitionsWrapper = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper(transitions) + let _transitions = try! transitionsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartTransitions(pThis, _transitions)) + } + } + + } + + public class IItemContainerGenerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator } + + internal func add_ItemsChangedImpl(_ handler: WinUI.ItemsChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ItemsChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ItemsChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ItemsChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ItemsChanged(pThis, token)) + } + } + + internal func ItemFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ItemFromContainer(pThis, RawPointer(container), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func ContainerFromItemImpl(_ item: Any?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromItem(pThis, _item, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func IndexFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexFromContainer(pThis, RawPointer(container), &result)) + } + return result + } + + internal func ContainerFromIndexImpl(_ index: Int32) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromIndex(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetItemContainerGeneratorForPanelImpl(_ panel: WinUI.Panel?) throws -> WinUI.ItemContainerGenerator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemContainerGeneratorForPanel(pThis, RawPointer(panel), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func StartAtImpl(_ position: WinUI.GeneratorPosition, _ direction: WinUI.GeneratorDirection, _ allowStartAtRealizedItem: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartAt(pThis, .from(swift: position), direction, .init(from: allowStartAtRealizedItem))) + } + } + + internal func StopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Stop(pThis)) + } + } + + internal func GenerateNextImpl(_ isNewlyRealized: inout Bool) throws -> WinUI.DependencyObject? { + let (returnValue) = try ComPtrs.initialize { returnValueAbi in + var _isNewlyRealized: boolean = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GenerateNext(pThis, &_isNewlyRealized, &returnValueAbi)) + } + isNewlyRealized = .init(from: _isNewlyRealized) + } + return .from(abi: returnValue) + } + + internal func PrepareItemContainerImpl(_ container: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PrepareItemContainer(pThis, RawPointer(container))) + } + } + + internal func RemoveAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAll(pThis)) + } + } + + internal func RemoveImpl(_ position: WinUI.GeneratorPosition, _ count: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, .from(swift: position), count)) + } + } + + internal func GeneratorPositionFromIndexImpl(_ itemIndex: Int32) throws -> WinUI.GeneratorPosition { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GeneratorPositionFromIndex(pThis, itemIndex, &result)) + } + return .from(abi: result) + } + + internal func IndexFromGeneratorPositionImpl(_ position: WinUI.GeneratorPosition) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexFromGeneratorPosition(pThis, .from(swift: position), &result)) + } + return result + } + + internal func RecycleImpl(_ position: WinUI.GeneratorPosition, _ count: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Recycle(pThis, .from(swift: position), count)) + } + } + + } + + public class IItemContainerMapping: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping } + + open func ItemFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ItemFromContainer(pThis, RawPointer(container), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func ContainerFromItemImpl(_ item: Any?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromItem(pThis, _item, &resultAbi)) + } + } + return .from(abi: result) + } + + open func IndexFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexFromContainer(pThis, RawPointer(container), &result)) + } + return result + } + + open func ContainerFromIndexImpl(_ index: Int32) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromIndex(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + internal static var IItemContainerMappingVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMappingVtbl = .init( + QueryInterface: { IItemContainerMappingWrapper.queryInterface($0, $1, $2) }, + AddRef: { IItemContainerMappingWrapper.addRef($0) }, + Release: { IItemContainerMappingWrapper.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_Xaml_Controls.IItemContainerMappingWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.IItemContainerMapping").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + ItemFromContainer: { + do { + guard let __unwrapped__instance = IItemContainerMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let container: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.itemFromContainer(container) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ContainerFromItem: { + do { + guard let __unwrapped__instance = IItemContainerMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.containerFromItem(item) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IndexFromContainer: { + do { + guard let __unwrapped__instance = IItemContainerMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let container: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.indexFromContainer(container) + $2?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ContainerFromIndex: { + do { + guard let __unwrapped__instance = IItemContainerMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: Int32 = $1 + let result = try __unwrapped__instance.containerFromIndex(index) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IItemContainerMappingWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.IItemContainerMappingBridge> + public class IItemsControl: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl } + + internal func get_ItemsSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemsSourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsSource(pThis, _value)) + } + } + + internal func get_ItemsImpl() throws -> WinUI.ItemCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplate(pThis, RawPointer(value))) + } + } + + internal func get_ItemTemplateSelectorImpl() throws -> WinUI.DataTemplateSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemTemplateSelectorImpl(_ value: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplateSelector(pThis, RawPointer(value))) + } + } + + internal func get_ItemsPanelImpl() throws -> WinUI.ItemsPanelTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsPanel(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemsPanelImpl(_ value: WinUI.ItemsPanelTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsPanel(pThis, RawPointer(value))) + } + } + + internal func get_DisplayMemberPathImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayMemberPath(pThis, &value)) + } + return .init(from: value) + } + + internal func put_DisplayMemberPathImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DisplayMemberPath(pThis, _value.get())) + } + } + + internal func get_ItemsPanelRootImpl() throws -> WinUI.Panel? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsPanelRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerStyle(pThis, RawPointer(value))) + } + } + + internal func get_ItemContainerStyleSelectorImpl() throws -> WinUI.StyleSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerStyleSelectorImpl(_ value: WinUI.StyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerStyleSelector(pThis, RawPointer(value))) + } + } + + internal func get_ItemContainerGeneratorImpl() throws -> WinUI.ItemContainerGenerator? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerGenerator(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerTransitions(pThis, RawPointer(value))) + } + } + + internal func get_GroupStyleImpl() throws -> WindowsFoundation.AnyIObservableVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupStyle(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.unwrapFrom(abi: value) + } + + internal func get_GroupStyleSelectorImpl() throws -> WinUI.GroupStyleSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupStyleSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GroupStyleSelectorImpl(_ value: WinUI.GroupStyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GroupStyleSelector(pThis, RawPointer(value))) + } + } + + internal func get_IsGroupingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsGrouping(pThis, &value)) + } + return .init(from: value) + } + + internal func GroupHeaderContainerFromItemContainerImpl(_ itemContainer: WinUI.DependencyObject?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GroupHeaderContainerFromItemContainer(pThis, RawPointer(itemContainer), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IItemsControlFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IItemsControl { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IItemsControl(value!) + } + + } + + public class IItemsControlOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides } + + internal func IsItemItsOwnContainerOverrideImpl(_ item: Any?) throws -> Bool { + var result: boolean = 0 + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsItemItsOwnContainerOverride(pThis, _item, &result)) + } + return .init(from: result) + } + + internal func GetContainerForItemOverrideImpl() throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetContainerForItemOverride(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func ClearContainerForItemOverrideImpl(_ element: WinUI.DependencyObject?, _ item: Any?) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearContainerForItemOverride(pThis, RawPointer(element), _item)) + } + } + + internal func PrepareContainerForItemOverrideImpl(_ element: WinUI.DependencyObject?, _ item: Any?) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PrepareContainerForItemOverride(pThis, RawPointer(element), _item)) + } + } + + internal func OnItemsChangedImpl(_ e: Any?) throws { + let eWrapper = __ABI_.AnyWrapper(e) + let _e = try! eWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemsChanged(pThis, _e)) + } + } + + internal func OnItemContainerStyleChangedImpl(_ oldItemContainerStyle: WinUI.Style?, _ newItemContainerStyle: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemContainerStyleChanged(pThis, RawPointer(oldItemContainerStyle), RawPointer(newItemContainerStyle))) + } + } + + internal func OnItemContainerStyleSelectorChangedImpl(_ oldItemContainerStyleSelector: WinUI.StyleSelector?, _ newItemContainerStyleSelector: WinUI.StyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemContainerStyleSelectorChanged(pThis, RawPointer(oldItemContainerStyleSelector), RawPointer(newItemContainerStyleSelector))) + } + } + + internal func OnItemTemplateChangedImpl(_ oldItemTemplate: WinUI.DataTemplate?, _ newItemTemplate: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemTemplateChanged(pThis, RawPointer(oldItemTemplate), RawPointer(newItemTemplate))) + } + } + + internal func OnItemTemplateSelectorChangedImpl(_ oldItemTemplateSelector: WinUI.DataTemplateSelector?, _ newItemTemplateSelector: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemTemplateSelectorChanged(pThis, RawPointer(oldItemTemplateSelector), RawPointer(newItemTemplateSelector))) + } + } + + internal func OnGroupStyleSelectorChangedImpl(_ oldGroupStyleSelector: WinUI.GroupStyleSelector?, _ newGroupStyleSelector: WinUI.GroupStyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnGroupStyleSelectorChanged(pThis, RawPointer(oldGroupStyleSelector), RawPointer(newGroupStyleSelector))) + } + } + + } + + public class IItemsControlStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics } + + internal func get_ItemsSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplateSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DisplayMemberPathPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayMemberPathProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerStyleSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_GroupStyleSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupStyleSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsGroupingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsGroupingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetItemsOwnerImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ItemsControl? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemsOwner(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func ItemsControlFromItemContainerImpl(_ container: WinUI.DependencyObject?) throws -> WinUI.ItemsControl? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ItemsControlFromItemContainer(pThis, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IItemsPanelTemplate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsPanelTemplate } + + } + + public class IItemsRepeater: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater } + + internal func get_ItemsSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemsSourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsSource(pThis, _value)) + } + } + + internal func get_ItemsSourceViewImpl() throws -> WinUI.ItemsSourceView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceView(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplateImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplate(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemTemplateImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplate(pThis, _value)) + } + } + + internal func get_LayoutImpl() throws -> WinUI.Layout? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Layout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_LayoutImpl(_ value: WinUI.Layout?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Layout(pThis, RawPointer(value))) + } + } + + internal func get_HorizontalCacheLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalCacheLength(pThis, &value)) + } + return value + } + + internal func put_HorizontalCacheLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalCacheLength(pThis, value)) + } + } + + internal func get_VerticalCacheLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalCacheLength(pThis, &value)) + } + return value + } + + internal func put_VerticalCacheLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalCacheLength(pThis, value)) + } + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func GetElementIndexImpl(_ element: WinUI.UIElement?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementIndex(pThis, RawPointer(element), &result)) + } + return result + } + + internal func TryGetElementImpl(_ index: Int32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetElement(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetOrCreateElementImpl(_ index: Int32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrCreateElement(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func add_ElementPreparedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ElementPrepared(pThis, _handler, &token)) + } + return token + } + + internal func remove_ElementPreparedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ElementPrepared(pThis, token)) + } + } + + internal func add_ElementClearingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ElementClearing(pThis, _handler, &token)) + } + return token + } + + internal func remove_ElementClearingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ElementClearing(pThis, token)) + } + } + + internal func add_ElementIndexChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ElementIndexChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ElementIndexChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ElementIndexChanged(pThis, token)) + } + } + + } + + public class IItemsRepeater2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater2 } + + internal func get_ItemTransitionProviderImpl() throws -> WinUI.ItemCollectionTransitionProvider? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTransitionProvider(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemTransitionProviderImpl(_ value: WinUI.ItemCollectionTransitionProvider?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTransitionProvider(pThis, RawPointer(value))) + } + } + + } + + public class IItemsRepeaterElementClearingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementClearingEventArgs } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementClearingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IItemsRepeaterElementIndexChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OldIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldIndex(pThis, &value)) + } + return value + } + + internal func get_NewIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewIndex(pThis, &value)) + } + return value + } + + } + + public class IItemsRepeaterElementPreparedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs } + + internal func get_ElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Index(pThis, &value)) + } + return value + } + + } + + public class IItemsRepeaterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IItemsRepeater { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IItemsRepeater(value!) + } + + } + + public class IItemsRepeaterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics } + + internal func get_ItemsSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LayoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalCacheLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalCacheLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalCacheLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalCacheLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IItemsRepeaterStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics2 } + + internal func get_ItemTransitionProviderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTransitionProviderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IItemsSourceView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView } + + internal func get_CountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Count(pThis, &value)) + } + return value + } + + internal func GetAtImpl(_ index: Int32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_HasKeyIndexMappingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasKeyIndexMapping(pThis, &value)) + } + return .init(from: value) + } + + internal func KeyFromIndexImpl(_ index: Int32) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.KeyFromIndex(pThis, index, &result)) + } + return .init(from: result) + } + + internal func IndexFromKeyImpl(_ key: String) throws -> Int32 { + var result: INT32 = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexFromKey(pThis, _key.get(), &result)) + } + return result + } + + internal func IndexOfImpl(_ item: Any?) throws -> Int32 { + var result: INT32 = 0 + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, _item, &result)) + } + return result + } + + } + + public class IItemsSourceViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceViewFactory } + + internal func CreateInstanceImpl(_ source: Any?, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IItemsSourceView { + let (value) = try ComPtrs.initialize { valueAbi in + let sourceWrapper = __ABI_.AnyWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _source, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IItemsSourceView(value!) + } + + } + + public class IKeyIndexMapping: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMapping } + + open func KeyFromIndexImpl(_ index: Int32) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.KeyFromIndex(pThis, index, &result)) + } + return .init(from: result) + } + + open func IndexFromKeyImpl(_ key: String) throws -> Int32 { + var result: INT32 = 0 + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMapping.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexFromKey(pThis, _key.get(), &result)) + } + return result + } + + } + + internal static var IKeyIndexMappingVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMappingVtbl = .init( + QueryInterface: { IKeyIndexMappingWrapper.queryInterface($0, $1, $2) }, + AddRef: { IKeyIndexMappingWrapper.addRef($0) }, + Release: { IKeyIndexMappingWrapper.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_Xaml_Controls.IKeyIndexMappingWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.IKeyIndexMapping").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + KeyFromIndex: { + do { + guard let __unwrapped__instance = IKeyIndexMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: Int32 = $1 + let result = try __unwrapped__instance.keyFromIndex(index) + $2?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IndexFromKey: { + do { + guard let __unwrapped__instance = IKeyIndexMappingWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: String = .init(from: $1) + let result = try __unwrapped__instance.indexFromKey(key) + $2?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IKeyIndexMappingWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.IKeyIndexMappingBridge> + public class ILayout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout } + + internal func InitializeForContextImpl(_ context: WinUI.LayoutContext?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InitializeForContext(pThis, RawPointer(context))) + } + } + + internal func UninitializeForContextImpl(_ context: WinUI.LayoutContext?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UninitializeForContext(pThis, RawPointer(context))) + } + } + + internal func MeasureImpl(_ context: WinUI.LayoutContext?, _ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Measure(pThis, RawPointer(context), .from(swift: availableSize), &result)) + } + return .from(abi: result) + } + + internal func ArrangeImpl(_ context: WinUI.LayoutContext?, _ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Arrange(pThis, RawPointer(context), .from(swift: finalSize), &result)) + } + return .from(abi: result) + } + + internal func add_MeasureInvalidatedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_MeasureInvalidated(pThis, _handler, &token)) + } + return token + } + + internal func remove_MeasureInvalidatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_MeasureInvalidated(pThis, token)) + } + } + + internal func add_ArrangeInvalidatedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ArrangeInvalidated(pThis, _handler, &token)) + } + return token + } + + internal func remove_ArrangeInvalidatedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ArrangeInvalidated(pThis, token)) + } + } + + } + + public class ILayout2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout2 } + + internal func get_IndexBasedLayoutOrientationImpl() throws -> WinUI.IndexBasedLayoutOrientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIndexBasedLayoutOrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IndexBasedLayoutOrientation(pThis, &value)) + } + return value + } + + } + + public class ILayoutContext: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext } + + internal func get_LayoutStateImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutState(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_LayoutStateImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutState(pThis, _value)) + } + } + + } + + public class ILayoutContextFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextFactory } + + } + + public class ILayoutContextOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides } + + internal func get_LayoutStateCoreImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutStateCore(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_LayoutStateCoreImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutStateCore(pThis, _value)) + } + } + + } + + public class ILayoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutFactory } + + } + + public class ILayoutOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverrides } + + internal func CreateDefaultItemTransitionProviderImpl() throws -> WinUI.ItemCollectionTransitionProvider? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateDefaultItemTransitionProvider(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ILayoutProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected } + + internal func InvalidateMeasureImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateMeasure(pThis)) + } + } + + internal func InvalidateArrangeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateArrange(pThis)) + } + } + + } + + public class ILayoutProtected2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected2 } + + internal func SetIndexBasedLayoutOrientationImpl(_ orientation: WinUI.IndexBasedLayoutOrientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutProtected2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIndexBasedLayoutOrientation(pThis, orientation)) + } + } + + } + + public class IListBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox } + + internal func get_SelectedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_SelectionModeImpl() throws -> WinUI.SelectionMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSelectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionMode(pThis, &value)) + } + return value + } + + internal func put_SelectionModeImpl(_ value: WinUI.SelectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionMode(pThis, value)) + } + } + + internal func get_SingleSelectionFollowsFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SingleSelectionFollowsFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SingleSelectionFollowsFocusImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SingleSelectionFollowsFocus(pThis, .init(from: value))) + } + } + + internal func ScrollIntoViewImpl(_ item: Any?) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollIntoView(pThis, _item)) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + } + + public class IListBoxFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IListBox { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IListBox(value!) + } + + } + + public class IListBoxItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItem } + + } + + public class IListBoxItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IListBoxItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IListBoxItem(value!) + } + + } + + public class IListBoxStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxStatics } + + internal func get_SelectionModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SingleSelectionFollowsFocusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SingleSelectionFollowsFocusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IListView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListView } + + } + + public class IListViewBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase } + + internal func get_SelectedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_SelectionModeImpl() throws -> WinUI.ListViewSelectionMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionMode(pThis, &value)) + } + return value + } + + internal func put_SelectionModeImpl(_ value: WinUI.ListViewSelectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionMode(pThis, value)) + } + } + + internal func get_IsSwipeEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSwipeEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSwipeEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSwipeEnabled(pThis, .init(from: value))) + } + } + + internal func get_CanDragItemsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragItems(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanDragItemsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanDragItems(pThis, .init(from: value))) + } + } + + internal func get_CanReorderItemsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanReorderItems(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanReorderItemsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanReorderItems(pThis, .init(from: value))) + } + } + + internal func get_IsItemClickEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsItemClickEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsItemClickEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsItemClickEnabled(pThis, .init(from: value))) + } + } + + internal func get_DataFetchSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataFetchSize(pThis, &value)) + } + return value + } + + internal func put_DataFetchSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DataFetchSize(pThis, value)) + } + } + + internal func get_IncrementalLoadingThresholdImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IncrementalLoadingThreshold(pThis, &value)) + } + return value + } + + internal func put_IncrementalLoadingThresholdImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IncrementalLoadingThreshold(pThis, value)) + } + } + + internal func get_IncrementalLoadingTriggerImpl() throws -> WinUI.IncrementalLoadingTrigger { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIncrementalLoadingTrigger = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IncrementalLoadingTrigger(pThis, &value)) + } + return value + } + + internal func put_IncrementalLoadingTriggerImpl(_ value: WinUI.IncrementalLoadingTrigger) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IncrementalLoadingTrigger(pThis, value)) + } + } + + internal func get_ShowsScrollingPlaceholdersImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowsScrollingPlaceholders(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowsScrollingPlaceholdersImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowsScrollingPlaceholders(pThis, .init(from: value))) + } + } + + internal func get_ReorderModeImpl() throws -> WinUI.ListViewReorderMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewReorderMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReorderMode(pThis, &value)) + } + return value + } + + internal func put_ReorderModeImpl(_ value: WinUI.ListViewReorderMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ReorderMode(pThis, value)) + } + } + + internal func get_SelectedRangesImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedRanges(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.unwrapFrom(abi: value) + } + + internal func get_IsMultiSelectCheckBoxEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMultiSelectCheckBoxEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsMultiSelectCheckBoxEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsMultiSelectCheckBoxEnabled(pThis, .init(from: value))) + } + } + + internal func get_SingleSelectionFollowsFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SingleSelectionFollowsFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SingleSelectionFollowsFocusImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SingleSelectionFollowsFocus(pThis, .init(from: value))) + } + } + + internal func add_ItemClickImpl(_ handler: WinUI.ItemClickEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.ItemClickEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ItemClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_ItemClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ItemClick(pThis, token)) + } + } + + internal func add_DragItemsStartingImpl(_ handler: WinUI.DragItemsStartingEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.DragItemsStartingEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragItemsStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragItemsStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragItemsStarting(pThis, token)) + } + } + + internal func add_DragItemsCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragItemsCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragItemsCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragItemsCompleted(pThis, token)) + } + } + + internal func add_ContainerContentChangingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContainerContentChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContainerContentChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContainerContentChanging(pThis, token)) + } + } + + internal func add_ChoosingItemContainerImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ChoosingItemContainer(pThis, _handler, &token)) + } + return token + } + + internal func remove_ChoosingItemContainerImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ChoosingItemContainer(pThis, token)) + } + } + + internal func add_ChoosingGroupHeaderContainerImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ChoosingGroupHeaderContainer(pThis, _handler, &token)) + } + return token + } + + internal func remove_ChoosingGroupHeaderContainerImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ChoosingGroupHeaderContainer(pThis, token)) + } + } + + internal func ScrollIntoViewImpl(_ item: Any?) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollIntoView(pThis, _item)) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + internal func LoadMoreItemsAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.LoadMoreItemsAsync(pThis, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.unwrapFrom(abi: operation) + } + + internal func ScrollIntoViewWithAlignmentImpl(_ item: Any?, _ alignment: WinUI.ScrollIntoViewAlignment) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollIntoViewWithAlignment(pThis, _item, alignment)) + } + } + + internal func SetDesiredContainerUpdateDurationImpl(_ duration: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetDesiredContainerUpdateDuration(pThis, .from(swift: duration))) + } + } + + internal func SelectRangeImpl(_ itemIndexRange: WinUI.ItemIndexRange?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectRange(pThis, RawPointer(itemIndexRange))) + } + } + + internal func DeselectRangeImpl(_ itemIndexRange: WinUI.ItemIndexRange?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.DeselectRange(pThis, RawPointer(itemIndexRange))) + } + } + + internal func IsDragSourceImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IsDragSource(pThis, &result)) + } + return .init(from: result) + } + + internal func TryStartConnectedAnimationAsyncImpl(_ animation: WinUI.ConnectedAnimation?, _ item: Any?, _ elementName: String) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + let _elementName = try! HString(elementName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryStartConnectedAnimationAsync(pThis, RawPointer(animation), _item, _elementName.get(), &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1_booleanWrapper.unwrapFrom(abi: operation) + } + + internal func PrepareConnectedAnimationImpl(_ key: String, _ item: Any?, _ elementName: String) throws -> WinUI.ConnectedAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + let _elementName = try! HString(elementName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PrepareConnectedAnimation(pThis, _key.get(), _item, _elementName.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_HeaderTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTransitions(pThis, RawPointer(value))) + } + } + + internal func get_FooterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Footer(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_FooterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Footer(pThis, _value)) + } + } + + internal func get_FooterTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FooterTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FooterTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FooterTemplate(pThis, RawPointer(value))) + } + } + + internal func get_FooterTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FooterTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FooterTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FooterTransitions(pThis, RawPointer(value))) + } + } + + } + + public class IListViewBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IListViewBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IListViewBase(value!) + } + + } + + public class IListViewBaseHeaderItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItem } + + } + + public class IListViewBaseHeaderItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItemFactory } + + } + + public class IListViewBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics } + + internal func get_SelectionModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSwipeEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSwipeEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanDragItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanReorderItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanReorderItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsItemClickEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsItemClickEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DataFetchSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataFetchSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IncrementalLoadingThresholdPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IncrementalLoadingThresholdProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IncrementalLoadingTriggerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IncrementalLoadingTriggerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowsScrollingPlaceholdersPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowsScrollingPlaceholdersProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ReorderModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReorderModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsMultiSelectCheckBoxEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMultiSelectCheckBoxEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SingleSelectionFollowsFocusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SingleSelectionFollowsFocusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SemanticZoomOwnerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SemanticZoomOwnerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsActiveViewPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActiveViewProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsZoomedInViewPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomedInViewProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FooterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FooterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FooterTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FooterTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FooterTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FooterTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IListViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IListView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IListView(value!) + } + + } + + public class IListViewItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItem } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ListViewItemTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IListViewItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IListViewItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IListViewItem(value!) + } + + } + + public class IMediaPlayerElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement } + + internal func get_SourceImpl() throws -> UWP.AnyIMediaPlaybackSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return __ABI_Windows_Media_Playback.IMediaPlaybackSourceWrapper.unwrapFrom(abi: value) + } + + internal func put_SourceImpl(_ value: UWP.AnyIMediaPlaybackSource?) throws { + let valueWrapper = __ABI_Windows_Media_Playback.IMediaPlaybackSourceWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, _value)) + } + } + + internal func get_TransportControlsImpl() throws -> WinUI.MediaTransportControls? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransportControls(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TransportControlsImpl(_ value: WinUI.MediaTransportControls?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransportControls(pThis, RawPointer(value))) + } + } + + internal func get_AreTransportControlsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreTransportControlsEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AreTransportControlsEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AreTransportControlsEnabled(pThis, .init(from: value))) + } + } + + internal func get_PosterSourceImpl() throws -> WinUI.ImageSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PosterSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PosterSourceImpl(_ value: WinUI.ImageSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PosterSource(pThis, RawPointer(value))) + } + } + + internal func get_StretchImpl() throws -> WinUI.Stretch { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stretch(pThis, &value)) + } + return value + } + + internal func put_StretchImpl(_ value: WinUI.Stretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stretch(pThis, value)) + } + } + + internal func get_AutoPlayImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoPlay(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AutoPlayImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutoPlay(pThis, .init(from: value))) + } + } + + internal func get_IsFullWindowImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFullWindow(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFullWindowImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFullWindow(pThis, .init(from: value))) + } + } + + internal func get_MediaPlayerImpl() throws -> UWP.MediaPlayer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MediaPlayer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func SetMediaPlayerImpl(_ mediaPlayer: UWP.MediaPlayer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetMediaPlayer(pThis, RawPointer(mediaPlayer))) + } + } + + } + + public class IMediaPlayerElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMediaPlayerElement { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMediaPlayerElement(value!) + } + + } + + public class IMediaPlayerElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics } + + internal func get_SourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AreTransportControlsEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreTransportControlsEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PosterSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PosterSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AutoPlayPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoPlayProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFullWindowPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFullWindowProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MediaPlayerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MediaPlayerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMediaTransportControls: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls } + + internal func get_IsZoomButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsZoomEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsFastForwardButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastForwardButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFastForwardButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFastForwardButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsFastForwardEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastForwardEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFastForwardEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFastForwardEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsFastRewindButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastRewindButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFastRewindButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFastRewindButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsFastRewindEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastRewindEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFastRewindEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFastRewindEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsStopButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStopButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStopButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStopButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsStopEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStopEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStopEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStopEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsVolumeButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVolumeButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsVolumeButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsVolumeButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsVolumeEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVolumeEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsVolumeEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsVolumeEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsPlaybackRateButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlaybackRateButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPlaybackRateButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPlaybackRateButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsPlaybackRateEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlaybackRateEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPlaybackRateEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPlaybackRateEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsSeekBarVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSeekBarVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSeekBarVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSeekBarVisible(pThis, .init(from: value))) + } + } + + internal func get_IsSeekEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSeekEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSeekEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSeekEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsCompactImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCompact(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsCompactImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsCompact(pThis, .init(from: value))) + } + } + + internal func get_IsSkipForwardButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipForwardButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSkipForwardButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSkipForwardButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsSkipForwardEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipForwardEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSkipForwardEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSkipForwardEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsSkipBackwardButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipBackwardButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSkipBackwardButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSkipBackwardButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsSkipBackwardEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipBackwardEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSkipBackwardEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSkipBackwardEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsNextTrackButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsNextTrackButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsNextTrackButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsNextTrackButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_IsPreviousTrackButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPreviousTrackButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPreviousTrackButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPreviousTrackButtonVisible(pThis, .init(from: value))) + } + } + + internal func get_FastPlayFallbackBehaviourImpl() throws -> WinUI.FastPlayFallbackBehaviour { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFastPlayFallbackBehaviour = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FastPlayFallbackBehaviour(pThis, &value)) + } + return value + } + + internal func put_FastPlayFallbackBehaviourImpl(_ value: WinUI.FastPlayFallbackBehaviour) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FastPlayFallbackBehaviour(pThis, value)) + } + } + + internal func get_ShowAndHideAutomaticallyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowAndHideAutomatically(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowAndHideAutomaticallyImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowAndHideAutomatically(pThis, .init(from: value))) + } + } + + internal func get_IsRepeatEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRepeatEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsRepeatEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsRepeatEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsRepeatButtonVisibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRepeatButtonVisible(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsRepeatButtonVisibleImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsRepeatButtonVisible(pThis, .init(from: value))) + } + } + + internal func add_ThumbnailRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ThumbnailRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_ThumbnailRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ThumbnailRequested(pThis, token)) + } + } + + internal func ShowImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Show(pThis)) + } + } + + internal func HideImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Hide(pThis)) + } + } + + } + + public class IMediaTransportControlsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMediaTransportControls { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMediaTransportControls(value!) + } + + } + + public class IMediaTransportControlsStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics } + + internal func get_IsZoomButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsZoomEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFastForwardButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastForwardButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFastForwardEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastForwardEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFastRewindButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastRewindButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFastRewindEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFastRewindEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsStopButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStopButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsStopEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStopEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsVolumeButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVolumeButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsVolumeEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVolumeEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPlaybackRateButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlaybackRateButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPlaybackRateEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlaybackRateEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSeekBarVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSeekBarVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSeekEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSeekEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsCompactPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCompactProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSkipForwardButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipForwardButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSkipForwardEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipForwardEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSkipBackwardButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipBackwardButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSkipBackwardEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSkipBackwardEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsNextTrackButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsNextTrackButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPreviousTrackButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPreviousTrackButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FastPlayFallbackBehaviourPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FastPlayFallbackBehaviourProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowAndHideAutomaticallyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowAndHideAutomaticallyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsRepeatEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRepeatEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsRepeatButtonVisiblePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControlsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRepeatButtonVisibleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMenuBar: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBar } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.unwrapFrom(abi: value) + } + + } + + public class IMenuBarFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMenuBar { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMenuBar(value!) + } + + } + + public class IMenuBarItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem } + + internal func get_TitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem.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_CXaml_CControls_CIMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get())) + } + } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.unwrapFrom(abi: value) + } + + } + + public class IMenuBarItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMenuBarItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMenuBarItem(value!) + } + + } + + public class IMenuBarItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemStatics } + + internal func get_TitlePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMenuBarStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarStatics } + + internal func get_ItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMenuFlyout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.unwrapFrom(abi: value) + } + + internal func get_MenuFlyoutPresenterStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MenuFlyoutPresenterStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_MenuFlyoutPresenterStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MenuFlyoutPresenterStyle(pThis, RawPointer(value))) + } + } + + internal func ShowAtImpl(_ targetElement: WinUI.UIElement?, _ point: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAt(pThis, RawPointer(targetElement), .from(swift: point))) + } + } + + } + + public class IMenuFlyoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMenuFlyout { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMenuFlyout(value!) + } + + } + + public class IMenuFlyoutItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_CommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Command(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_CommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Command(pThis, _value)) + } + } + + internal func get_CommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CommandParameter(pThis, _value)) + } + } + + internal func get_IconImpl() throws -> WinUI.IconElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Icon(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconImpl(_ value: WinUI.IconElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Icon(pThis, RawPointer(value))) + } + } + + internal func get_KeyboardAcceleratorTextOverrideImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorTextOverride(pThis, &value)) + } + return .init(from: value) + } + + internal func put_KeyboardAcceleratorTextOverrideImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyboardAcceleratorTextOverride(pThis, _value.get())) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.MenuFlyoutItemTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_ClickImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Click(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Click(pThis, token)) + } + } + + } + + public class IMenuFlyoutItemBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBase } + + } + + public class IMenuFlyoutItemBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBaseFactory } + + } + + public class IMenuFlyoutItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMenuFlyoutItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMenuFlyoutItem(value!) + } + + } + + public class IMenuFlyoutItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics } + + internal func get_TextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IconPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyboardAcceleratorTextOverridePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorTextOverrideProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMenuFlyoutSeparator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparator } + + } + + public class IMenuFlyoutSeparatorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparatorFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMenuFlyoutSeparator { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparatorFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMenuFlyoutSeparator(value!) + } + + } + + public class IMenuFlyoutStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutStatics } + + internal func get_MenuFlyoutPresenterStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MenuFlyoutPresenterStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMenuFlyoutSubItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.unwrapFrom(abi: value) + } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_IconImpl() throws -> WinUI.IconElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Icon(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconImpl(_ value: WinUI.IconElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Icon(pThis, RawPointer(value))) + } + } + + } + + public class IMenuFlyoutSubItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItemStatics } + + internal func get_TextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IconPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class INavigate: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CINavigate } + + open func NavigateImpl(_ sourcePageType: WinUI.TypeName) throws -> Bool { + var result: boolean = 0 + let _sourcePageType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: sourcePageType) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CINavigate.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Navigate(pThis, _sourcePageType.val, &result)) + } + return .init(from: result) + } + + } + + internal static var INavigateVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CINavigateVtbl = .init( + QueryInterface: { INavigateWrapper.queryInterface($0, $1, $2) }, + AddRef: { INavigateWrapper.addRef($0) }, + Release: { INavigateWrapper.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_Xaml_Controls.INavigateWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.INavigate").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Navigate: { + do { + guard let __unwrapped__instance = INavigateWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sourcePageType: WinUI.TypeName = .from(abi: $1) + let result = try __unwrapped__instance.navigate(sourcePageType) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias INavigateWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.INavigateBridge> + public class IPage: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage } + + internal func get_FrameImpl() throws -> WinUI.Frame? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Frame(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NavigationCacheModeImpl() throws -> WinUI.NavigationCacheMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationCacheMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationCacheMode(pThis, &value)) + } + return value + } + + internal func put_NavigationCacheModeImpl(_ value: WinUI.NavigationCacheMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NavigationCacheMode(pThis, value)) + } + } + + internal func get_TopAppBarImpl() throws -> WinUI.AppBar? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopAppBar(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TopAppBarImpl(_ value: WinUI.AppBar?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopAppBar(pThis, RawPointer(value))) + } + } + + internal func get_BottomAppBarImpl() throws -> WinUI.AppBar? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomAppBar(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BottomAppBarImpl(_ value: WinUI.AppBar?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BottomAppBar(pThis, RawPointer(value))) + } + } + + } + + public class IPageFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPage { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPage(value!) + } + + } + + public class IPageOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides } + + internal func OnNavigatedFromImpl(_ e: WinUI.NavigationEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnNavigatedFrom(pThis, RawPointer(e))) + } + } + + internal func OnNavigatedToImpl(_ e: WinUI.NavigationEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnNavigatedTo(pThis, RawPointer(e))) + } + } + + internal func OnNavigatingFromImpl(_ e: WinUI.NavigatingCancelEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnNavigatingFrom(pThis, RawPointer(e))) + } + } + + } + + public class IPageStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageStatics } + + internal func get_FramePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FrameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TopAppBarPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopAppBarProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BottomAppBarPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BottomAppBarProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPanel: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel } + + internal func get_ChildrenImpl() throws -> WinUI.UIElementCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Children(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func get_IsItemsHostImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsItemsHost(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ChildrenTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildrenTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ChildrenTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ChildrenTransitions(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundTransitionImpl() throws -> WinUI.BrushTransition? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundTransition(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundTransitionImpl(_ value: WinUI.BrushTransition?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundTransition(pThis, RawPointer(value))) + } + } + + } + + public class IPanelFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPanel { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPanel(value!) + } + + } + + public class IPanelStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelStatics } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsItemsHostPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsItemsHostProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ChildrenTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildrenTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPasswordBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox } + + internal func get_PasswordImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Password(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PasswordImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Password(pThis, _value.get())) + } + } + + internal func get_PasswordCharImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PasswordChar(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PasswordCharImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PasswordChar(pThis, _value.get())) + } + } + + internal func get_IsPasswordRevealButtonEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPasswordRevealButtonEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPasswordRevealButtonEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPasswordRevealButtonEnabled(pThis, .init(from: value))) + } + } + + internal func get_MaxLengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLength(pThis, &value)) + } + return value + } + + internal func put_MaxLengthImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxLength(pThis, value)) + } + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_PlaceholderTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PlaceholderTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaceholderText(pThis, _value.get())) + } + } + + internal func get_SelectionHighlightColorImpl() throws -> WinUI.SolidColorBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionHighlightColorImpl(_ value: WinUI.SolidColorBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionHighlightColor(pThis, RawPointer(value))) + } + } + + internal func get_PreventKeyboardDisplayOnProgrammaticFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreventKeyboardDisplayOnProgrammaticFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PreventKeyboardDisplayOnProgrammaticFocusImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreventKeyboardDisplayOnProgrammaticFocus(pThis, .init(from: value))) + } + } + + internal func get_PasswordRevealModeImpl() throws -> WinUI.PasswordRevealMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPasswordRevealMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PasswordRevealMode(pThis, &value)) + } + return value + } + + internal func put_PasswordRevealModeImpl(_ value: WinUI.PasswordRevealMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PasswordRevealMode(pThis, value)) + } + } + + internal func get_TextReadingOrderImpl() throws -> WinUI.TextReadingOrder { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrder(pThis, &value)) + } + return value + } + + internal func put_TextReadingOrderImpl(_ value: WinUI.TextReadingOrder) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextReadingOrder(pThis, value)) + } + } + + internal func get_InputScopeImpl() throws -> WinUI.InputScope? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputScope(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_InputScopeImpl(_ value: WinUI.InputScope?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InputScope(pThis, RawPointer(value))) + } + } + + internal func get_CanPasteClipboardContentImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanPasteClipboardContent(pThis, &value)) + } + return .init(from: value) + } + + internal func get_SelectionFlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionFlyoutImpl(_ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionFlyout(pThis, RawPointer(value))) + } + } + + internal func get_DescriptionImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Description(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DescriptionImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Description(pThis, _value)) + } + } + + internal func add_PasswordChangedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PasswordChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_PasswordChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PasswordChanged(pThis, token)) + } + } + + internal func add_ContextMenuOpeningImpl(_ handler: WinUI.ContextMenuOpeningEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextMenuOpening(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextMenuOpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextMenuOpening(pThis, token)) + } + } + + internal func add_PasteImpl(_ handler: WinUI.TextControlPasteEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.TextControlPasteEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Paste(pThis, _handler, &token)) + } + return token + } + + internal func remove_PasteImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Paste(pThis, token)) + } + } + + internal func add_PasswordChangingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PasswordChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_PasswordChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PasswordChanging(pThis, token)) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + internal func PasteFromClipboardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PasteFromClipboard(pThis)) + } + } + + } + + public class IPasswordBoxPasswordChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxPasswordChangingEventArgs } + + internal func get_IsContentChangingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxPasswordChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsContentChanging(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IPasswordBoxStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics } + + internal func get_PasswordPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PasswordProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PasswordCharPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PasswordCharProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPasswordRevealButtonEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPasswordRevealButtonEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlaceholderTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionHighlightColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreventKeyboardDisplayOnProgrammaticFocusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreventKeyboardDisplayOnProgrammaticFocusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PasswordRevealModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PasswordRevealModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextReadingOrderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_InputScopePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputScopeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanPasteClipboardContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanPasteClipboardContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DescriptionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DescriptionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPipsPager: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager } + + internal func get_NumberOfPagesImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NumberOfPages(pThis, &value)) + } + return value + } + + internal func put_NumberOfPagesImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NumberOfPages(pThis, value)) + } + } + + internal func get_SelectedPageIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedPageIndex(pThis, &value)) + } + return value + } + + internal func put_SelectedPageIndexImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedPageIndex(pThis, value)) + } + } + + internal func get_MaxVisiblePipsImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxVisiblePips(pThis, &value)) + } + return value + } + + internal func put_MaxVisiblePipsImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxVisiblePips(pThis, value)) + } + } + + internal func get_OrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func put_OrientationImpl(_ value: WinUI.Orientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, value)) + } + } + + internal func get_PreviousButtonVisibilityImpl() throws -> WinUI.PipsPagerButtonVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousButtonVisibility(pThis, &value)) + } + return value + } + + internal func put_PreviousButtonVisibilityImpl(_ value: WinUI.PipsPagerButtonVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreviousButtonVisibility(pThis, value)) + } + } + + internal func get_NextButtonVisibilityImpl() throws -> WinUI.PipsPagerButtonVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NextButtonVisibility(pThis, &value)) + } + return value + } + + internal func put_NextButtonVisibilityImpl(_ value: WinUI.PipsPagerButtonVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NextButtonVisibility(pThis, value)) + } + } + + internal func get_PreviousButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PreviousButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreviousButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_NextButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NextButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NextButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NextButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_SelectedPipStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedPipStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectedPipStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedPipStyle(pThis, RawPointer(value))) + } + } + + internal func get_NormalPipStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NormalPipStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NormalPipStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NormalPipStyle(pThis, RawPointer(value))) + } + } + + internal func add_SelectedIndexChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectedIndexChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectedIndexChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectedIndexChanged(pThis, token)) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.PipsPagerTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPipsPagerFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPipsPager { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPipsPager(value!) + } + + } + + public class IPipsPagerSelectedIndexChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerSelectedIndexChangedEventArgs } + + } + + public class IPipsPagerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics } + + internal func get_NumberOfPagesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NumberOfPagesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedPageIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedPageIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxVisiblePipsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxVisiblePipsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreviousButtonVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousButtonVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NextButtonVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NextButtonVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreviousButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreviousButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NextButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NextButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedPipStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedPipStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NormalPipStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NormalPipStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPipsPagerTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerTemplateSettings } + + internal func get_PipsPagerItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PipsPagerItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_intWrapper.unwrapFrom(abi: value) + } + + } + + public class IProgressBar: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar } + + internal func get_IsIndeterminateImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIndeterminate(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsIndeterminateImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIndeterminate(pThis, .init(from: value))) + } + } + + internal func get_ShowErrorImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowError(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowErrorImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowError(pThis, .init(from: value))) + } + } + + internal func get_ShowPausedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowPaused(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShowPausedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowPaused(pThis, .init(from: value))) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ProgressBarTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IProgressBarFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IProgressBar { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IProgressBar(value!) + } + + } + + public class IProgressBarStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarStatics } + + internal func get_IsIndeterminatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIndeterminateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowErrorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowErrorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowPausedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowPausedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IProgressBarTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings } + + internal func get_ContainerAnimationStartPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainerAnimationStartPosition(pThis, &value)) + } + return value + } + + internal func get_ContainerAnimationEndPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainerAnimationEndPosition(pThis, &value)) + } + return value + } + + internal func get_Container2AnimationStartPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container2AnimationStartPosition(pThis, &value)) + } + return value + } + + internal func get_Container2AnimationEndPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container2AnimationEndPosition(pThis, &value)) + } + return value + } + + internal func get_ContainerAnimationMidPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContainerAnimationMidPosition(pThis, &value)) + } + return value + } + + internal func get_IndicatorLengthDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IndicatorLengthDelta(pThis, &value)) + } + return value + } + + internal func get_ClipRectImpl() throws -> WinUI.RectangleGeometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClipRect(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EllipseAnimationEndPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseAnimationEndPosition(pThis, &value)) + } + return value + } + + internal func get_EllipseAnimationWellPositionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseAnimationWellPosition(pThis, &value)) + } + return value + } + + internal func get_EllipseDiameterImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseDiameter(pThis, &value)) + } + return value + } + + internal func get_EllipseOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseOffset(pThis, &value)) + } + return value + } + + } + + public class IProgressRing: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing } + + internal func get_IsActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActive(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsActiveImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsActive(pThis, .init(from: value))) + } + } + + internal func get_IsIndeterminateImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIndeterminate(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsIndeterminateImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsIndeterminate(pThis, .init(from: value))) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ProgressRingTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) + } + return value + } + + internal func put_ValueImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, value)) + } + } + + internal func get_MinimumImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Minimum(pThis, &value)) + } + return value + } + + internal func put_MinimumImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Minimum(pThis, value)) + } + } + + internal func get_MaximumImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Maximum(pThis, &value)) + } + return value + } + + internal func put_MaximumImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Maximum(pThis, value)) + } + } + + } + + public class IProgressRingFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IProgressRing { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IProgressRing(value!) + } + + } + + public class IProgressRingStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics } + + internal func get_IsActivePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActiveProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsIndeterminatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIndeterminateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinimumPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinimumProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaximumPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaximumProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IProgressRingTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings } + + internal func get_EllipseDiameterImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseDiameter(pThis, &value)) + } + return value + } + + internal func get_EllipseOffsetImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EllipseOffset(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_MaxSideLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxSideLength(pThis, &value)) + } + return value + } + + } + + public class IRadioButton: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton } + + internal func get_GroupNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_GroupNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GroupName(pThis, _value.get())) + } + } + + } + + public class IRadioButtonFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRadioButton { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRadioButton(value!) + } + + } + + public class IRadioButtonStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonStatics } + + internal func get_GroupNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GroupNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRadioButtons: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons } + + internal func get_ItemsSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemsSourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsSource(pThis, _value)) + } + } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_ItemTemplateImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplate(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemTemplateImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplate(pThis, _value)) + } + } + + internal func ContainerFromIndexImpl(_ index: Int32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromIndex(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_SelectedIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedIndex(pThis, &value)) + } + return value + } + + internal func put_SelectedIndexImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedIndex(pThis, value)) + } + } + + internal func get_SelectedItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SelectedItemImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedItem(pThis, _value)) + } + } + + internal func add_SelectionChangedImpl(_ handler: WinUI.SelectionChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.SelectionChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanged(pThis, token)) + } + } + + internal func get_MaxColumnsImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxColumns(pThis, &value)) + } + return value + } + + internal func put_MaxColumnsImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxColumns(pThis, value)) + } + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + } + + public class IRadioButtonsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRadioButtons { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRadioButtons(value!) + } + + } + + public class IRadioButtonsStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics } + + internal func get_ItemsSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedItemPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItemProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxColumnsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxColumnsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtonsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRelativePanel: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + } + + public class IRelativePanelFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRelativePanel { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRelativePanel(value!) + } + + } + + public class IRelativePanelStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LeftOfPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftOfProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetLeftOfImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLeftOf(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetLeftOfImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetLeftOf(pThis, RawPointer(element), _value)) + } + } + + internal func get_AbovePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AboveProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAboveImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAbove(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAboveImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAbove(pThis, RawPointer(element), _value)) + } + } + + internal func get_RightOfPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RightOfProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetRightOfImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRightOf(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetRightOfImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetRightOf(pThis, RawPointer(element), _value)) + } + } + + internal func get_BelowPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BelowProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetBelowImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBelow(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetBelowImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBelow(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignHorizontalCenterWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignHorizontalCenterWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignHorizontalCenterWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignHorizontalCenterWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignHorizontalCenterWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignHorizontalCenterWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignVerticalCenterWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignVerticalCenterWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignVerticalCenterWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignVerticalCenterWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignVerticalCenterWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignVerticalCenterWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignLeftWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignLeftWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignLeftWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignLeftWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignLeftWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignLeftWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignTopWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignTopWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignTopWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignTopWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignTopWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignTopWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignRightWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignRightWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignRightWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignRightWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignRightWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignRightWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignBottomWithPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignBottomWithProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignBottomWithImpl(_ element: WinUI.UIElement?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignBottomWith(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetAlignBottomWithImpl(_ element: WinUI.UIElement?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignBottomWith(pThis, RawPointer(element), _value)) + } + } + + internal func get_AlignLeftWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignLeftWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignLeftWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignLeftWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignLeftWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignLeftWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_AlignTopWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignTopWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignTopWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignTopWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignTopWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignTopWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_AlignRightWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignRightWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignRightWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignRightWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignRightWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignRightWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_AlignBottomWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignBottomWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignBottomWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignBottomWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignBottomWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignBottomWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_AlignHorizontalCenterWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignHorizontalCenterWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignHorizontalCenterWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignHorizontalCenterWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignHorizontalCenterWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignHorizontalCenterWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_AlignVerticalCenterWithPanelPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlignVerticalCenterWithPanelProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlignVerticalCenterWithPanelImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlignVerticalCenterWithPanel(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetAlignVerticalCenterWithPanelImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAlignVerticalCenterWithPanel(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRowDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition } + + internal func get_HeightImpl() throws -> WinUI.GridLength { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CGridLength = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_HeightImpl(_ value: WinUI.GridLength) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Height(pThis, .from(swift: value))) + } + } + + internal func get_MaxHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeight(pThis, &value)) + } + return value + } + + internal func put_MaxHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxHeight(pThis, value)) + } + } + + internal func get_MinHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeight(pThis, &value)) + } + return value + } + + internal func put_MinHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinHeight(pThis, value)) + } + } + + internal func get_ActualHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualHeight(pThis, &value)) + } + return value + } + + } + + public class IRowDefinitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinitionStatics } + + internal func get_HeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IScrollAnchorProvider: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider } + + open func get_CurrentAnchorImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurrentAnchor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func RegisterAnchorCandidateImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAnchorCandidate(pThis, RawPointer(element))) + } + } + + open func UnregisterAnchorCandidateImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterAnchorCandidate(pThis, RawPointer(element))) + } + } + + } + + internal static var IScrollAnchorProviderVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProviderVtbl = .init( + QueryInterface: { IScrollAnchorProviderWrapper.queryInterface($0, $1, $2) }, + AddRef: { IScrollAnchorProviderWrapper.addRef($0) }, + Release: { IScrollAnchorProviderWrapper.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_Xaml_Controls.IScrollAnchorProviderWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.IScrollAnchorProvider").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_CurrentAnchor: { + guard let __unwrapped__instance = IScrollAnchorProviderWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.currentAnchor + value?.copyTo($1) + return S_OK + }, + + RegisterAnchorCandidate: { + do { + guard let __unwrapped__instance = IScrollAnchorProviderWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let element: WinUI.UIElement? = .from(abi: ComPtr($1)) + try __unwrapped__instance.registerAnchorCandidate(element) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + UnregisterAnchorCandidate: { + do { + guard let __unwrapped__instance = IScrollAnchorProviderWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let element: WinUI.UIElement? = .from(abi: ComPtr($1)) + try __unwrapped__instance.unregisterAnchorCandidate(element) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IScrollAnchorProviderWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.IScrollAnchorProviderBridge> + public class IScrollView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_CurrentAnchorImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurrentAnchor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScrollPresenterImpl() throws -> WinUI.ScrollPresenter? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollPresenter(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExpressionAnimationSourcesImpl() throws -> WinAppSDK.CompositionPropertySet? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpressionAnimationSources(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func get_ZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomFactor(pThis, &value)) + } + return value + } + + internal func get_ExtentWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentWidth(pThis, &value)) + } + return value + } + + internal func get_ExtentHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentHeight(pThis, &value)) + } + return value + } + + internal func get_ViewportWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportWidth(pThis, &value)) + } + return value + } + + internal func get_ViewportHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportHeight(pThis, &value)) + } + return value + } + + internal func get_ScrollableWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableWidth(pThis, &value)) + } + return value + } + + internal func get_ScrollableHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableHeight(pThis, &value)) + } + return value + } + + internal func get_StateImpl() throws -> WinUI.ScrollingInteractionState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_State(pThis, &value)) + } + return value + } + + internal func get_HorizontalScrollBarVisibilityImpl() throws -> WinUI.ScrollingScrollBarVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollBarVisibilityImpl(_ value: WinUI.ScrollingScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollBarVisibility(pThis, value)) + } + } + + internal func get_VerticalScrollBarVisibilityImpl() throws -> WinUI.ScrollingScrollBarVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollBarVisibilityImpl(_ value: WinUI.ScrollingScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollBarVisibility(pThis, value)) + } + } + + internal func get_ContentOrientationImpl() throws -> WinUI.ScrollingContentOrientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentOrientation(pThis, &value)) + } + return value + } + + internal func put_ContentOrientationImpl(_ value: WinUI.ScrollingContentOrientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentOrientation(pThis, value)) + } + } + + internal func get_HorizontalScrollChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollChainMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollChainMode(pThis, value)) + } + } + + internal func get_VerticalScrollChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollChainMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollChainMode(pThis, value)) + } + } + + internal func get_HorizontalScrollRailModeImpl() throws -> WinUI.ScrollingRailMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollRailMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollRailModeImpl(_ value: WinUI.ScrollingRailMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollRailMode(pThis, value)) + } + } + + internal func get_VerticalScrollRailModeImpl() throws -> WinUI.ScrollingRailMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollRailMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollRailModeImpl(_ value: WinUI.ScrollingRailMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollRailMode(pThis, value)) + } + } + + internal func get_HorizontalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollModeImpl(_ value: WinUI.ScrollingScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollMode(pThis, value)) + } + } + + internal func get_VerticalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollModeImpl(_ value: WinUI.ScrollingScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollMode(pThis, value)) + } + } + + internal func get_ComputedHorizontalScrollBarVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func get_ComputedVerticalScrollBarVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func get_ComputedHorizontalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollMode(pThis, &value)) + } + return value + } + + internal func get_ComputedVerticalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollMode(pThis, &value)) + } + return value + } + + internal func get_ZoomChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomChainMode(pThis, &value)) + } + return value + } + + internal func put_ZoomChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomChainMode(pThis, value)) + } + } + + internal func get_ZoomModeImpl() throws -> WinUI.ScrollingZoomMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingZoomMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomMode(pThis, &value)) + } + return value + } + + internal func put_ZoomModeImpl(_ value: WinUI.ScrollingZoomMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomMode(pThis, value)) + } + } + + internal func get_IgnoredInputKindsImpl() throws -> WinUI.ScrollingInputKinds { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IgnoredInputKinds(pThis, &value)) + } + return value + } + + internal func put_IgnoredInputKindsImpl(_ value: WinUI.ScrollingInputKinds) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IgnoredInputKinds(pThis, value)) + } + } + + internal func get_MinZoomFactorImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MinZoomFactorImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinZoomFactor(pThis, value)) + } + } + + internal func get_MaxZoomFactorImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MaxZoomFactorImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxZoomFactor(pThis, value)) + } + } + + internal func get_HorizontalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAnchorRatio(pThis, value)) + } + } + + internal func get_VerticalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAnchorRatio(pThis, value)) + } + } + + internal func RegisterAnchorCandidateImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RegisterAnchorCandidate(pThis, RawPointer(element))) + } + } + + internal func UnregisterAnchorCandidateImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UnregisterAnchorCandidate(pThis, RawPointer(element))) + } + } + + internal func ScrollToImpl(_ horizontalOffset: Double, _ verticalOffset: Double) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollTo(pThis, horizontalOffset, verticalOffset, &result)) + } + return result + } + + internal func ScrollToWithOptionsImpl(_ horizontalOffset: Double, _ verticalOffset: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollToWithOptions(pThis, horizontalOffset, verticalOffset, RawPointer(options), &result)) + } + return result + } + + internal func ScrollByImpl(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollBy(pThis, horizontalOffsetDelta, verticalOffsetDelta, &result)) + } + return result + } + + internal func ScrollByWithOptionsImpl(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollByWithOptions(pThis, horizontalOffsetDelta, verticalOffsetDelta, RawPointer(options), &result)) + } + return result + } + + internal func AddScrollVelocityImpl(_ offsetsVelocity: WindowsFoundation.Vector2, _ inertiaDecayRate: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let inertiaDecayRateWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(inertiaDecayRate) + let _inertiaDecayRate = try! inertiaDecayRateWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddScrollVelocity(pThis, .from(swift: offsetsVelocity), _inertiaDecayRate, &result)) + } + return result + } + + internal func ZoomToImpl(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomTo(pThis, zoomFactor, _centerPoint, &result)) + } + return result + } + + internal func ZoomToWithOptionsImpl(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomToWithOptions(pThis, zoomFactor, _centerPoint, RawPointer(options), &result)) + } + return result + } + + internal func ZoomByImpl(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomBy(pThis, zoomFactorDelta, _centerPoint, &result)) + } + return result + } + + internal func ZoomByWithOptionsImpl(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomByWithOptions(pThis, zoomFactorDelta, _centerPoint, RawPointer(options), &result)) + } + return result + } + + internal func AddZoomVelocityImpl(_ zoomFactorVelocity: Float, _ centerPoint: WindowsFoundation.Vector2?, _ inertiaDecayRate: Float?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + let inertiaDecayRateWrapper = WinUI.__x_ABI_C__FIReference_1_floatWrapper(inertiaDecayRate) + let _inertiaDecayRate = try! inertiaDecayRateWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddZoomVelocity(pThis, zoomFactorVelocity, _centerPoint, _inertiaDecayRate, &result)) + } + return result + } + + internal func add_ExtentChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ExtentChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ExtentChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ExtentChanged(pThis, token)) + } + } + + internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.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_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) + } + } + + internal func add_ViewChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChanged(pThis, token)) + } + } + + internal func add_ScrollAnimationStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollAnimationStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ScrollAnimationStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollAnimationStarting(pThis, token)) + } + } + + internal func add_ZoomAnimationStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ZoomAnimationStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ZoomAnimationStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ZoomAnimationStarting(pThis, token)) + } + } + + internal func add_ScrollCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ScrollCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollCompleted(pThis, token)) + } + } + + internal func add_ZoomCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ZoomCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ZoomCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ZoomCompleted(pThis, token)) + } + } + + internal func add_BringingIntoViewImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_BringingIntoView(pThis, _handler, &token)) + } + return token + } + + internal func remove_BringingIntoViewImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BringingIntoView(pThis, token)) + } + } + + internal func add_AnchorRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AnchorRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AnchorRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AnchorRequested(pThis, token)) + } + } + + } + + public class IScrollViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollView(value!) + } + + } + + public class IScrollViewStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScrollPresenterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollPresenterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentOrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentOrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollRailModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollRailModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollRailModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollRailModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedHorizontalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedVerticalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedHorizontalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedVerticalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IgnoredInputKindsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IgnoredInputKindsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IScrollViewer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer } + + internal func get_HorizontalScrollBarVisibilityImpl() throws -> WinUI.ScrollBarVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollBarVisibilityImpl(_ value: WinUI.ScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollBarVisibility(pThis, value)) + } + } + + internal func get_VerticalScrollBarVisibilityImpl() throws -> WinUI.ScrollBarVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollBarVisibilityImpl(_ value: WinUI.ScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollBarVisibility(pThis, value)) + } + } + + internal func get_IsHorizontalRailEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHorizontalRailEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHorizontalRailEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHorizontalRailEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsVerticalRailEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVerticalRailEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsVerticalRailEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsVerticalRailEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsHorizontalScrollChainingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHorizontalScrollChainingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsHorizontalScrollChainingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsHorizontalScrollChainingEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsVerticalScrollChainingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVerticalScrollChainingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsVerticalScrollChainingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsVerticalScrollChainingEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsZoomChainingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomChainingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomChainingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomChainingEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsScrollInertiaEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsScrollInertiaEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsScrollInertiaEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsScrollInertiaEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsZoomInertiaEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomInertiaEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomInertiaEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomInertiaEnabled(pThis, .init(from: value))) + } + } + + internal func get_HorizontalScrollModeImpl() throws -> WinUI.ScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollModeImpl(_ value: WinUI.ScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollMode(pThis, value)) + } + } + + internal func get_VerticalScrollModeImpl() throws -> WinUI.ScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollModeImpl(_ value: WinUI.ScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollMode(pThis, value)) + } + } + + internal func get_ZoomModeImpl() throws -> WinUI.ZoomMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CZoomMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomMode(pThis, &value)) + } + return value + } + + internal func put_ZoomModeImpl(_ value: WinUI.ZoomMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomMode(pThis, value)) + } + } + + internal func get_HorizontalSnapPointsAlignmentImpl() throws -> WinUI.SnapPointsAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalSnapPointsAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalSnapPointsAlignmentImpl(_ value: WinUI.SnapPointsAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalSnapPointsAlignment(pThis, value)) + } + } + + internal func get_VerticalSnapPointsAlignmentImpl() throws -> WinUI.SnapPointsAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalSnapPointsAlignment(pThis, &value)) + } + return value + } + + internal func put_VerticalSnapPointsAlignmentImpl(_ value: WinUI.SnapPointsAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalSnapPointsAlignment(pThis, value)) + } + } + + internal func get_HorizontalSnapPointsTypeImpl() throws -> WinUI.SnapPointsType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalSnapPointsType(pThis, &value)) + } + return value + } + + internal func put_HorizontalSnapPointsTypeImpl(_ value: WinUI.SnapPointsType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalSnapPointsType(pThis, value)) + } + } + + internal func get_VerticalSnapPointsTypeImpl() throws -> WinUI.SnapPointsType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalSnapPointsType(pThis, &value)) + } + return value + } + + internal func put_VerticalSnapPointsTypeImpl(_ value: WinUI.SnapPointsType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalSnapPointsType(pThis, value)) + } + } + + internal func get_ZoomSnapPointsTypeImpl() throws -> WinUI.SnapPointsType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomSnapPointsType(pThis, &value)) + } + return value + } + + internal func put_ZoomSnapPointsTypeImpl(_ value: WinUI.SnapPointsType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomSnapPointsType(pThis, value)) + } + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_ViewportWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportWidth(pThis, &value)) + } + return value + } + + internal func get_ScrollableWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableWidth(pThis, &value)) + } + return value + } + + internal func get_ComputedHorizontalScrollBarVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func get_ExtentWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentWidth(pThis, &value)) + } + return value + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func get_ViewportHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportHeight(pThis, &value)) + } + return value + } + + internal func get_ScrollableHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableHeight(pThis, &value)) + } + return value + } + + internal func get_ComputedVerticalScrollBarVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollBarVisibility(pThis, &value)) + } + return value + } + + internal func get_ExtentHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentHeight(pThis, &value)) + } + return value + } + + internal func get_MinZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MinZoomFactorImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinZoomFactor(pThis, value)) + } + } + + internal func get_MaxZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MaxZoomFactorImpl(_ value: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxZoomFactor(pThis, value)) + } + } + + internal func get_ZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomFactor(pThis, &value)) + } + return value + } + + internal func get_ZoomSnapPointsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomSnapPoints(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func get_TopLeftHeaderImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopLeftHeader(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TopLeftHeaderImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopLeftHeader(pThis, RawPointer(value))) + } + } + + internal func get_LeftHeaderImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftHeader(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_LeftHeaderImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LeftHeader(pThis, RawPointer(value))) + } + } + + internal func get_TopHeaderImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopHeader(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TopHeaderImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopHeader(pThis, RawPointer(value))) + } + } + + internal func get_ReduceViewportForCoreInputViewOcclusionsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReduceViewportForCoreInputViewOcclusions(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ReduceViewportForCoreInputViewOcclusionsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ReduceViewportForCoreInputViewOcclusions(pThis, .init(from: value))) + } + } + + internal func get_HorizontalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAnchorRatio(pThis, value)) + } + } + + internal func get_VerticalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAnchorRatio(pThis, value)) + } + } + + internal func get_CanContentRenderOutsideBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanContentRenderOutsideBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanContentRenderOutsideBoundsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanContentRenderOutsideBounds(pThis, .init(from: value))) + } + } + + internal func add_AnchorRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AnchorRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AnchorRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AnchorRequested(pThis, token)) + } + } + + internal func add_ViewChangingImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChanging(pThis, token)) + } + } + + internal func add_ViewChangedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChanged(pThis, token)) + } + } + + internal func add_DirectManipulationStartedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DirectManipulationStarted(pThis, _handler, &token)) + } + return token + } + + internal func remove_DirectManipulationStartedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DirectManipulationStarted(pThis, token)) + } + } + + internal func add_DirectManipulationCompletedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DirectManipulationCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_DirectManipulationCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DirectManipulationCompleted(pThis, token)) + } + } + + internal func ScrollToHorizontalOffsetImpl(_ offset: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollToHorizontalOffset(pThis, offset)) + } + } + + internal func ScrollToVerticalOffsetImpl(_ offset: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollToVerticalOffset(pThis, offset)) + } + } + + internal func ZoomToFactorImpl(_ factor: Float) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomToFactor(pThis, factor)) + } + } + + internal func ChangeViewImpl(_ horizontalOffset: Double?, _ verticalOffset: Double?, _ zoomFactor: Float?) throws -> Bool { + var result: boolean = 0 + let horizontalOffsetWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(horizontalOffset) + let _horizontalOffset = try! horizontalOffsetWrapper?.toABI { $0 } + let verticalOffsetWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(verticalOffset) + let _verticalOffset = try! verticalOffsetWrapper?.toABI { $0 } + let zoomFactorWrapper = WinUI.__x_ABI_C__FIReference_1_floatWrapper(zoomFactor) + let _zoomFactor = try! zoomFactorWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ChangeView(pThis, _horizontalOffset, _verticalOffset, _zoomFactor, &result)) + } + return .init(from: result) + } + + internal func ChangeViewWithOptionalAnimationImpl(_ horizontalOffset: Double?, _ verticalOffset: Double?, _ zoomFactor: Float?, _ disableAnimation: Bool) throws -> Bool { + var result: boolean = 0 + let horizontalOffsetWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(horizontalOffset) + let _horizontalOffset = try! horizontalOffsetWrapper?.toABI { $0 } + let verticalOffsetWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(verticalOffset) + let _verticalOffset = try! verticalOffsetWrapper?.toABI { $0 } + let zoomFactorWrapper = WinUI.__x_ABI_C__FIReference_1_floatWrapper(zoomFactor) + let _zoomFactor = try! zoomFactorWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ChangeViewWithOptionalAnimation(pThis, _horizontalOffset, _verticalOffset, _zoomFactor, .init(from: disableAnimation), &result)) + } + return .init(from: result) + } + + internal func InvalidateScrollInfoImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InvalidateScrollInfo(pThis)) + } + } + + internal func get_IsDeferredScrollingEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDeferredScrollingEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsDeferredScrollingEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDeferredScrollingEnabled(pThis, .init(from: value))) + } + } + + internal func get_BringIntoViewOnFocusChangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewOnFocusChange(pThis, &value)) + } + return .init(from: value) + } + + internal func put_BringIntoViewOnFocusChangeImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BringIntoViewOnFocusChange(pThis, .init(from: value))) + } + } + + } + + public class IScrollViewerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics } + + internal func get_HorizontalSnapPointsAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalSnapPointsAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalSnapPointsAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalSnapPointsAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalSnapPointsTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalSnapPointsTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalSnapPointsTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalSnapPointsTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomSnapPointsTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomSnapPointsTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ViewportWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScrollableWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedHorizontalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExtentWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ViewportHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScrollableHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedVerticalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExtentHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomSnapPointsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomSnapPointsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TopLeftHeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopLeftHeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LeftHeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LeftHeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TopHeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopHeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ReduceViewportForCoreInputViewOcclusionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReduceViewportForCoreInputViewOcclusionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetHorizontalScrollBarVisibilityImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ScrollBarVisibility { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHorizontalScrollBarVisibility(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetHorizontalScrollBarVisibilityImpl(_ element: WinUI.DependencyObject?, _ horizontalScrollBarVisibility: WinUI.ScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetHorizontalScrollBarVisibility(pThis, RawPointer(element), horizontalScrollBarVisibility)) + } + } + + internal func get_VerticalScrollBarVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollBarVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetVerticalScrollBarVisibilityImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ScrollBarVisibility { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetVerticalScrollBarVisibility(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetVerticalScrollBarVisibilityImpl(_ element: WinUI.DependencyObject?, _ verticalScrollBarVisibility: WinUI.ScrollBarVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetVerticalScrollBarVisibility(pThis, RawPointer(element), verticalScrollBarVisibility)) + } + } + + internal func get_IsHorizontalRailEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHorizontalRailEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsHorizontalRailEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsHorizontalRailEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsHorizontalRailEnabledImpl(_ element: WinUI.DependencyObject?, _ isHorizontalRailEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsHorizontalRailEnabled(pThis, RawPointer(element), .init(from: isHorizontalRailEnabled))) + } + } + + internal func get_IsVerticalRailEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVerticalRailEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsVerticalRailEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsVerticalRailEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsVerticalRailEnabledImpl(_ element: WinUI.DependencyObject?, _ isVerticalRailEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsVerticalRailEnabled(pThis, RawPointer(element), .init(from: isVerticalRailEnabled))) + } + } + + internal func get_IsHorizontalScrollChainingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsHorizontalScrollChainingEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsHorizontalScrollChainingEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsHorizontalScrollChainingEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsHorizontalScrollChainingEnabledImpl(_ element: WinUI.DependencyObject?, _ isHorizontalScrollChainingEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsHorizontalScrollChainingEnabled(pThis, RawPointer(element), .init(from: isHorizontalScrollChainingEnabled))) + } + } + + internal func get_IsVerticalScrollChainingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsVerticalScrollChainingEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsVerticalScrollChainingEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsVerticalScrollChainingEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsVerticalScrollChainingEnabledImpl(_ element: WinUI.DependencyObject?, _ isVerticalScrollChainingEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsVerticalScrollChainingEnabled(pThis, RawPointer(element), .init(from: isVerticalScrollChainingEnabled))) + } + } + + internal func get_IsZoomChainingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomChainingEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsZoomChainingEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsZoomChainingEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsZoomChainingEnabledImpl(_ element: WinUI.DependencyObject?, _ isZoomChainingEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsZoomChainingEnabled(pThis, RawPointer(element), .init(from: isZoomChainingEnabled))) + } + } + + internal func get_IsScrollInertiaEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsScrollInertiaEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsScrollInertiaEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsScrollInertiaEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsScrollInertiaEnabledImpl(_ element: WinUI.DependencyObject?, _ isScrollInertiaEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsScrollInertiaEnabled(pThis, RawPointer(element), .init(from: isScrollInertiaEnabled))) + } + } + + internal func get_IsZoomInertiaEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomInertiaEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsZoomInertiaEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsZoomInertiaEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsZoomInertiaEnabledImpl(_ element: WinUI.DependencyObject?, _ isZoomInertiaEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsZoomInertiaEnabled(pThis, RawPointer(element), .init(from: isZoomInertiaEnabled))) + } + } + + internal func get_HorizontalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetHorizontalScrollModeImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ScrollMode { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHorizontalScrollMode(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetHorizontalScrollModeImpl(_ element: WinUI.DependencyObject?, _ horizontalScrollMode: WinUI.ScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetHorizontalScrollMode(pThis, RawPointer(element), horizontalScrollMode)) + } + } + + internal func get_VerticalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetVerticalScrollModeImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ScrollMode { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetVerticalScrollMode(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetVerticalScrollModeImpl(_ element: WinUI.DependencyObject?, _ verticalScrollMode: WinUI.ScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetVerticalScrollMode(pThis, RawPointer(element), verticalScrollMode)) + } + } + + internal func get_ZoomModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetZoomModeImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.ZoomMode { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CZoomMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetZoomMode(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetZoomModeImpl(_ element: WinUI.DependencyObject?, _ zoomMode: WinUI.ZoomMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetZoomMode(pThis, RawPointer(element), zoomMode)) + } + } + + internal func get_CanContentRenderOutsideBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanContentRenderOutsideBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetCanContentRenderOutsideBoundsImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCanContentRenderOutsideBounds(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetCanContentRenderOutsideBoundsImpl(_ element: WinUI.DependencyObject?, _ canContentRenderOutsideBounds: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetCanContentRenderOutsideBounds(pThis, RawPointer(element), .init(from: canContentRenderOutsideBounds))) + } + } + + internal func get_IsDeferredScrollingEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDeferredScrollingEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsDeferredScrollingEnabledImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsDeferredScrollingEnabled(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsDeferredScrollingEnabledImpl(_ element: WinUI.DependencyObject?, _ isDeferredScrollingEnabled: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsDeferredScrollingEnabled(pThis, RawPointer(element), .init(from: isDeferredScrollingEnabled))) + } + } + + internal func get_BringIntoViewOnFocusChangePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BringIntoViewOnFocusChangeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetBringIntoViewOnFocusChangeImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBringIntoViewOnFocusChange(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetBringIntoViewOnFocusChangeImpl(_ element: WinUI.DependencyObject?, _ bringIntoViewOnFocusChange: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBringIntoViewOnFocusChange(pThis, RawPointer(element), .init(from: bringIntoViewOnFocusChange))) + } + } + + } + + public class IScrollViewerView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func get_ZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomFactor(pThis, &value)) + } + return value + } + + } + + public class IScrollViewerViewChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangedEventArgs } + + internal func get_IsIntermediateImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsIntermediate(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IScrollViewerViewChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs } + + internal func get_NextViewImpl() throws -> WinUI.ScrollViewerView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NextView(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FinalViewImpl() throws -> WinUI.ScrollViewerView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FinalView(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsInertialImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertial(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IScrollingAnchorRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs } + + internal func get_AnchorCandidatesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorCandidates(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: value) + } + + internal func get_AnchorElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnchorElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AnchorElementImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnchorElement(pThis, RawPointer(value))) + } + } + + } + + public class IScrollingBringingIntoViewEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs } + + internal func get_SnapPointsModeImpl() throws -> WinUI.ScrollingSnapPointsMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapPointsMode(pThis, &value)) + } + return value + } + + internal func put_SnapPointsModeImpl(_ value: WinUI.ScrollingSnapPointsMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SnapPointsMode(pThis, value)) + } + } + + internal func get_RequestEventArgsImpl() throws -> WinUI.BringIntoViewRequestedEventArgs? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RequestEventArgs(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TargetHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetHorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_TargetVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetVerticalOffset(pThis, &value)) + } + return value + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.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_CXaml_CControls_CIScrollingBringingIntoViewEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class IScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs } + + internal func get_AnimationImpl() throws -> WinAppSDK.CompositionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Animation(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AnimationImpl(_ value: WinAppSDK.CompositionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Animation(pThis, RawPointer(value))) + } + } + + internal func get_StartPositionImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_EndPositionImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EndPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + } + + public class IScrollingScrollCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollCompletedEventArgs } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + } + + public class IScrollingScrollOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions } + + internal func get_AnimationModeImpl() throws -> WinUI.ScrollingAnimationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationMode(pThis, &value)) + } + return value + } + + internal func put_AnimationModeImpl(_ value: WinUI.ScrollingAnimationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationMode(pThis, value)) + } + } + + internal func get_SnapPointsModeImpl() throws -> WinUI.ScrollingSnapPointsMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapPointsMode(pThis, &value)) + } + return value + } + + internal func put_SnapPointsModeImpl(_ value: WinUI.ScrollingSnapPointsMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SnapPointsMode(pThis, value)) + } + } + + } + + public class IScrollingScrollOptionsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptionsFactory } + + internal func CreateInstanceImpl(_ animationMode: WinUI.ScrollingAnimationMode, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollingScrollOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, animationMode, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollingScrollOptions(value!) + } + + internal func CreateInstance2Impl(_ animationMode: WinUI.ScrollingAnimationMode, _ snapPointsMode: WinUI.ScrollingSnapPointsMode, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollingScrollOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance2(pThis, animationMode, snapPointsMode, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollingScrollOptions(value!) + } + + } + + public class IScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs } + + internal func get_CenterPointImpl() throws -> WindowsFoundation.Vector2 { + var value: __x_ABI_CWindows_CFoundation_CNumerics_CVector2 = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_StartZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartZoomFactor(pThis, &value)) + } + return value + } + + internal func get_EndZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EndZoomFactor(pThis, &value)) + } + return value + } + + internal func get_AnimationImpl() throws -> WinAppSDK.CompositionAnimation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Animation(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AnimationImpl(_ value: WinAppSDK.CompositionAnimation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Animation(pThis, RawPointer(value))) + } + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + } + + public class IScrollingZoomCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomCompletedEventArgs } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + } + + public class IScrollingZoomOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions } + + internal func get_AnimationModeImpl() throws -> WinUI.ScrollingAnimationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AnimationMode(pThis, &value)) + } + return value + } + + internal func put_AnimationModeImpl(_ value: WinUI.ScrollingAnimationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AnimationMode(pThis, value)) + } + } + + internal func get_SnapPointsModeImpl() throws -> WinUI.ScrollingSnapPointsMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapPointsMode(pThis, &value)) + } + return value + } + + internal func put_SnapPointsModeImpl(_ value: WinUI.ScrollingSnapPointsMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SnapPointsMode(pThis, value)) + } + } + + } + + public class IScrollingZoomOptionsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptionsFactory } + + internal func CreateInstanceImpl(_ animationMode: WinUI.ScrollingAnimationMode, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollingZoomOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, animationMode, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollingZoomOptions(value!) + } + + internal func CreateInstance2Impl(_ animationMode: WinUI.ScrollingAnimationMode, _ snapPointsMode: WinUI.ScrollingSnapPointsMode, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollingZoomOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance2(pThis, animationMode, snapPointsMode, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollingZoomOptions(value!) + } + + } + + public class ISelectionChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs } + + internal func get_AddedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AddedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_RemovedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RemovedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class ISelectionChangedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgsFactory } + + internal func CreateInstanceWithRemovedItemsAndAddedItemsImpl(_ removedItems: WindowsFoundation.AnyIVector?, _ addedItems: WindowsFoundation.AnyIVector?, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISelectionChangedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let removedItemsWrapper = WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper(removedItems) + let _removedItems = try! removedItemsWrapper?.toABI { $0 } + let addedItemsWrapper = WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper(addedItems) + let _addedItems = try! addedItemsWrapper?.toABI { $0 } + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithRemovedItemsAndAddedItems(pThis, _removedItems, _addedItems, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISelectionChangedEventArgs(value!) + } + + } + + public class ISemanticZoom: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom } + + internal func get_ZoomedInViewImpl() throws -> WinUI.AnyISemanticZoomInformation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomedInView(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper.unwrapFrom(abi: value) + } + + internal func put_ZoomedInViewImpl(_ value: WinUI.AnyISemanticZoomInformation?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomedInView(pThis, _value)) + } + } + + internal func get_ZoomedOutViewImpl() throws -> WinUI.AnyISemanticZoomInformation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomedOutView(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper.unwrapFrom(abi: value) + } + + internal func put_ZoomedOutViewImpl(_ value: WinUI.AnyISemanticZoomInformation?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomedOutView(pThis, _value)) + } + } + + internal func get_IsZoomedInViewActiveImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomedInViewActive(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomedInViewActiveImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomedInViewActive(pThis, .init(from: value))) + } + } + + internal func get_CanChangeViewsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanChangeViews(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanChangeViewsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanChangeViews(pThis, .init(from: value))) + } + } + + internal func add_ViewChangeStartedImpl(_ handler: WinUI.SemanticZoomViewChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.SemanticZoomViewChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChangeStarted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangeStartedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChangeStarted(pThis, token)) + } + } + + internal func add_ViewChangeCompletedImpl(_ handler: WinUI.SemanticZoomViewChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.SemanticZoomViewChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChangeCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangeCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChangeCompleted(pThis, token)) + } + } + + internal func ToggleActiveViewImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ToggleActiveView(pThis)) + } + } + + internal func get_IsZoomOutButtonEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomOutButtonEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsZoomOutButtonEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomOutButtonEnabled(pThis, .init(from: value))) + } + } + + } + + public class ISemanticZoomInformation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation } + + open func get_SemanticZoomOwnerImpl() throws -> WinUI.SemanticZoom? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SemanticZoomOwner(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func put_SemanticZoomOwnerImpl(_ value: WinUI.SemanticZoom?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SemanticZoomOwner(pThis, RawPointer(value))) + } + } + + open func get_IsActiveViewImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsActiveView(pThis, &value)) + } + return .init(from: value) + } + + open func put_IsActiveViewImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsActiveView(pThis, .init(from: value))) + } + } + + open func get_IsZoomedInViewImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomedInView(pThis, &value)) + } + return .init(from: value) + } + + open func put_IsZoomedInViewImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsZoomedInView(pThis, .init(from: value))) + } + } + + open func InitializeViewChangeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InitializeViewChange(pThis)) + } + } + + open func CompleteViewChangeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CompleteViewChange(pThis)) + } + } + + open func MakeVisibleImpl(_ item: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MakeVisible(pThis, RawPointer(item))) + } + } + + open func StartViewChangeFromImpl(_ source: WinUI.SemanticZoomLocation?, _ destination: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartViewChangeFrom(pThis, RawPointer(source), RawPointer(destination))) + } + } + + open func StartViewChangeToImpl(_ source: WinUI.SemanticZoomLocation?, _ destination: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.StartViewChangeTo(pThis, RawPointer(source), RawPointer(destination))) + } + } + + open func CompleteViewChangeFromImpl(_ source: WinUI.SemanticZoomLocation?, _ destination: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CompleteViewChangeFrom(pThis, RawPointer(source), RawPointer(destination))) + } + } + + open func CompleteViewChangeToImpl(_ source: WinUI.SemanticZoomLocation?, _ destination: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CompleteViewChangeTo(pThis, RawPointer(source), RawPointer(destination))) + } + } + + } + + internal static var ISemanticZoomInformationVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformationVtbl = .init( + QueryInterface: { ISemanticZoomInformationWrapper.queryInterface($0, $1, $2) }, + AddRef: { ISemanticZoomInformationWrapper.addRef($0) }, + Release: { ISemanticZoomInformationWrapper.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_Xaml_Controls.ISemanticZoomInformationWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.ISemanticZoomInformation").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_SemanticZoomOwner: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.semanticZoomOwner + value?.copyTo($1) + return S_OK + }, + + put_SemanticZoomOwner: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.SemanticZoom? = .from(abi: ComPtr($1)) + __unwrapped__instance.semanticZoomOwner = value + return S_OK + }, + + get_IsActiveView: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isActiveView + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + put_IsActiveView: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Bool = .init(from: $1) + __unwrapped__instance.isActiveView = value + return S_OK + }, + + get_IsZoomedInView: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isZoomedInView + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + put_IsZoomedInView: { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Bool = .init(from: $1) + __unwrapped__instance.isZoomedInView = value + return S_OK + }, + + InitializeViewChange: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.initializeViewChange() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + CompleteViewChange: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.completeViewChange() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + MakeVisible: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($1)) + try __unwrapped__instance.makeVisible(item) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + StartViewChangeFrom: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let source: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($1)) + let destination: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($2)) + try __unwrapped__instance.startViewChangeFrom(source, destination) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + StartViewChangeTo: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let source: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($1)) + let destination: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($2)) + try __unwrapped__instance.startViewChangeTo(source, destination) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + CompleteViewChangeFrom: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let source: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($1)) + let destination: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($2)) + try __unwrapped__instance.completeViewChangeFrom(source, destination) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + CompleteViewChangeTo: { + do { + guard let __unwrapped__instance = ISemanticZoomInformationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let source: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($1)) + let destination: WinUI.SemanticZoomLocation? = .from(abi: ComPtr($2)) + try __unwrapped__instance.completeViewChangeTo(source, destination) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias ISemanticZoomInformationWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationBridge> + public class ISemanticZoomLocation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation } + + internal func get_ItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Item(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Item(pThis, _value)) + } + } + + internal func get_BoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounds(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BoundsImpl(_ value: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Bounds(pThis, .from(swift: value))) + } + } + + } + + public class ISemanticZoomStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics } + + internal func get_ZoomedInViewPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomedInViewProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomedOutViewPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomedOutViewProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsZoomedInViewActivePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomedInViewActiveProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanChangeViewsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanChangeViewsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsZoomOutButtonEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsZoomOutButtonEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISemanticZoomViewChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs } + + internal func get_IsSourceZoomedInViewImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSourceZoomedInView(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSourceZoomedInViewImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSourceZoomedInView(pThis, .init(from: value))) + } + } + + internal func get_SourceItemImpl() throws -> WinUI.SemanticZoomLocation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourceItem(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SourceItemImpl(_ value: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SourceItem(pThis, RawPointer(value))) + } + } + + internal func get_DestinationItemImpl() throws -> WinUI.SemanticZoomLocation? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DestinationItem(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DestinationItemImpl(_ value: WinUI.SemanticZoomLocation?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DestinationItem(pThis, RawPointer(value))) + } + } + + } + + public class ISlider: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider } + + internal func get_IntermediateValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IntermediateValue(pThis, &value)) + } + return value + } + + internal func put_IntermediateValueImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IntermediateValue(pThis, value)) + } + } + + internal func get_StepFrequencyImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StepFrequency(pThis, &value)) + } + return value + } + + internal func put_StepFrequencyImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StepFrequency(pThis, value)) + } + } + + internal func get_SnapsToImpl() throws -> WinUI.SliderSnapsTo { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSliderSnapsTo = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapsTo(pThis, &value)) + } + return value + } + + internal func put_SnapsToImpl(_ value: WinUI.SliderSnapsTo) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SnapsTo(pThis, value)) + } + } + + internal func get_TickFrequencyImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TickFrequency(pThis, &value)) + } + return value + } + + internal func put_TickFrequencyImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TickFrequency(pThis, value)) + } + } + + internal func get_TickPlacementImpl() throws -> WinUI.TickPlacement { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TickPlacement(pThis, &value)) + } + return value + } + + internal func put_TickPlacementImpl(_ value: WinUI.TickPlacement) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TickPlacement(pThis, value)) + } + } + + internal func get_OrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func put_OrientationImpl(_ value: WinUI.Orientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, value)) + } + } + + internal func get_IsDirectionReversedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDirectionReversed(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsDirectionReversedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsDirectionReversed(pThis, .init(from: value))) + } + } + + internal func get_IsThumbToolTipEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsThumbToolTipEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsThumbToolTipEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsThumbToolTipEnabled(pThis, .init(from: value))) + } + } + + internal func get_ThumbToolTipValueConverterImpl() throws -> WinUI.AnyIValueConverter? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ThumbToolTipValueConverter(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper.unwrapFrom(abi: value) + } + + internal func put_ThumbToolTipValueConverterImpl(_ value: WinUI.AnyIValueConverter?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ThumbToolTipValueConverter(pThis, _value)) + } + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + } + + public class ISliderFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISlider { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISlider(value!) + } + + } + + public class ISliderStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics } + + internal func get_IntermediateValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IntermediateValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StepFrequencyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StepFrequencyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SnapsToPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SnapsToProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TickFrequencyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TickFrequencyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TickPlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TickPlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsDirectionReversedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDirectionReversedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsThumbToolTipEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsThumbToolTipEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ThumbToolTipValueConverterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ThumbToolTipValueConverterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISliderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplitView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_PaneImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Pane(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PaneImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Pane(pThis, RawPointer(value))) + } + } + + internal func get_IsPaneOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPaneOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsPaneOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsPaneOpen(pThis, .init(from: value))) + } + } + + internal func get_OpenPaneLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenPaneLength(pThis, &value)) + } + return value + } + + internal func put_OpenPaneLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenPaneLength(pThis, value)) + } + } + + internal func get_CompactPaneLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompactPaneLength(pThis, &value)) + } + return value + } + + internal func put_CompactPaneLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompactPaneLength(pThis, value)) + } + } + + internal func get_PanePlacementImpl() throws -> WinUI.SplitViewPanePlacement { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewPanePlacement = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PanePlacement(pThis, &value)) + } + return value + } + + internal func put_PanePlacementImpl(_ value: WinUI.SplitViewPanePlacement) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PanePlacement(pThis, value)) + } + } + + internal func get_DisplayModeImpl() throws -> WinUI.SplitViewDisplayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayMode(pThis, &value)) + } + return value + } + + internal func put_DisplayModeImpl(_ value: WinUI.SplitViewDisplayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DisplayMode(pThis, value)) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.SplitViewTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaneBackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaneBackground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PaneBackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PaneBackground(pThis, RawPointer(value))) + } + } + + internal func get_LightDismissOverlayModeImpl() throws -> WinUI.LightDismissOverlayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayMode(pThis, &value)) + } + return value + } + + internal func put_LightDismissOverlayModeImpl(_ value: WinUI.LightDismissOverlayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightDismissOverlayMode(pThis, value)) + } + } + + internal func add_PaneClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PaneClosing(pThis, _handler, &token)) + } + return token + } + + internal func remove_PaneClosingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PaneClosing(pThis, token)) + } + } + + internal func add_PaneClosedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PaneClosed(pThis, _handler, &token)) + } + return token + } + + internal func remove_PaneClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PaneClosed(pThis, token)) + } + } + + internal func add_PaneOpeningImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PaneOpening(pThis, _handler, &token)) + } + return token + } + + internal func remove_PaneOpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PaneOpening(pThis, token)) + } + } + + internal func add_PaneOpenedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PaneOpened(pThis, _handler, &token)) + } + return token + } + + internal func remove_PaneOpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PaneOpened(pThis, token)) + } + } + + } + + public class ISplitViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISplitView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISplitView(value!) + } + + } + + public class ISplitViewPaneClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewPaneClosingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewPaneClosingEventArgs.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_CXaml_CControls_CISplitViewPaneClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class ISplitViewStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PanePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaneProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPaneOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPaneOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpenPaneLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenPaneLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CompactPaneLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompactPaneLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PanePlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PanePlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DisplayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DisplayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TemplateSettingsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettingsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaneBackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaneBackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IStackLayout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout } + + internal func get_OrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func put_OrientationImpl(_ value: WinUI.Orientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, value)) + } + } + + internal func get_SpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Spacing(pThis, &value)) + } + return value + } + + internal func put_SpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Spacing(pThis, value)) + } + } + + } + + public class IStackLayoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IStackLayout { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IStackLayout(value!) + } + + } + + public class IStackLayoutStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutStatics } + + internal func get_OrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IStackPanel: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel } + + internal func get_AreScrollSnapPointsRegularImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreScrollSnapPointsRegular(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AreScrollSnapPointsRegularImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AreScrollSnapPointsRegular(pThis, .init(from: value))) + } + } + + internal func get_OrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func put_OrientationImpl(_ value: WinUI.Orientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, value)) + } + } + + internal func get_BackgroundSizingImpl() throws -> WinUI.BackgroundSizing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizing(pThis, &value)) + } + return value + } + + internal func put_BackgroundSizingImpl(_ value: WinUI.BackgroundSizing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BackgroundSizing(pThis, value)) + } + } + + internal func get_BorderBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BorderBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderBrush(pThis, RawPointer(value))) + } + } + + internal func get_BorderThicknessImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThickness(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_BorderThicknessImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BorderThickness(pThis, .from(swift: value))) + } + } + + internal func get_CornerRadiusImpl() throws -> WinUI.CornerRadius { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadius(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CornerRadiusImpl(_ value: WinUI.CornerRadius) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CornerRadius(pThis, .from(swift: value))) + } + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_SpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Spacing(pThis, &value)) + } + return value + } + + internal func put_SpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Spacing(pThis, value)) + } + } + + } + + public class IStackPanelFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IStackPanel { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IStackPanel(value!) + } + + } + + public class IStackPanelStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics } + + internal func get_AreScrollSnapPointsRegularPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreScrollSnapPointsRegularProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundSizingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundSizingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BorderThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BorderThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CornerRadiusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CornerRadiusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IStyleSelector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelector } + + internal func SelectStyleImpl(_ item: Any?, _ container: WinUI.DependencyObject?) throws -> WinUI.Style? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectStyle(pThis, _item, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IStyleSelectorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IStyleSelector { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IStyleSelector(value!) + } + + } + + public class IStyleSelectorOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverrides } + + internal func SelectStyleCoreImpl(_ item: Any?, _ container: WinUI.DependencyObject?) throws -> WinUI.Style? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectStyleCore(pThis, _item, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ISwapChainPanel: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel } + + internal func get_CompositionScaleXImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionScaleX(pThis, &value)) + } + return value + } + + internal func get_CompositionScaleYImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionScaleY(pThis, &value)) + } + return value + } + + internal func add_CompositionScaleChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CompositionScaleChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_CompositionScaleChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CompositionScaleChanged(pThis, token)) + } + } + + internal func CreateCoreIndependentInputSourceImpl(_ deviceKinds: WinAppSDK.InputPointerSourceDeviceKinds) throws -> WinAppSDK.InputPointerSource? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateCoreIndependentInputSource(pThis, deviceKinds, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ISwapChainPanelFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISwapChainPanel { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISwapChainPanel(value!) + } + + } + + public class ISwapChainPanelStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelStatics } + + internal func get_CompositionScaleXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionScaleXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CompositionScaleYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanelStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionScaleYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITeachingTip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip } + + internal func get_TitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.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_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get())) + } + } + + internal func get_SubtitleImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Subtitle(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SubtitleImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Subtitle(pThis, _value.get())) + } + } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOpen(pThis, .init(from: value))) + } + } + + internal func get_TargetImpl() throws -> WinUI.FrameworkElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TargetImpl(_ value: WinUI.FrameworkElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Target(pThis, RawPointer(value))) + } + } + + internal func get_TailVisibilityImpl() throws -> WinUI.TeachingTipTailVisibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipTailVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TailVisibility(pThis, &value)) + } + return value + } + + internal func put_TailVisibilityImpl(_ value: WinUI.TeachingTipTailVisibility) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TailVisibility(pThis, value)) + } + } + + internal func get_ActionButtonContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonContent(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ActionButtonContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ActionButtonContent(pThis, _value)) + } + } + + internal func get_ActionButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ActionButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ActionButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_ActionButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_ActionButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ActionButtonCommand(pThis, _value)) + } + } + + internal func get_ActionButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ActionButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ActionButtonCommandParameter(pThis, _value)) + } + } + + internal func get_CloseButtonContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonContent(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonContent(pThis, _value)) + } + } + + internal func get_CloseButtonStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CloseButtonStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonStyle(pThis, RawPointer(value))) + } + } + + internal func get_CloseButtonCommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommand(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommand(pThis, _value)) + } + } + + internal func get_CloseButtonCommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CloseButtonCommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CloseButtonCommandParameter(pThis, _value)) + } + } + + internal func get_PlacementMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PlacementMarginImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlacementMargin(pThis, .from(swift: value))) + } + } + + internal func get_ShouldConstrainToRootBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShouldConstrainToRootBoundsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShouldConstrainToRootBounds(pThis, .init(from: value))) + } + } + + internal func get_IsLightDismissEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLightDismissEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsLightDismissEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsLightDismissEnabled(pThis, .init(from: value))) + } + } + + internal func get_PreferredPlacementImpl() throws -> WinUI.TeachingTipPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreferredPlacement(pThis, &value)) + } + return value + } + + internal func put_PreferredPlacementImpl(_ value: WinUI.TeachingTipPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreferredPlacement(pThis, value)) + } + } + + internal func get_HeroContentPlacementImpl() throws -> WinUI.TeachingTipHeroContentPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipHeroContentPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeroContentPlacement(pThis, &value)) + } + return value + } + + internal func put_HeroContentPlacementImpl(_ value: WinUI.TeachingTipHeroContentPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeroContentPlacement(pThis, value)) + } + } + + internal func get_HeroContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeroContent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeroContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeroContent(pThis, RawPointer(value))) + } + } + + internal func get_IconSourceImpl() throws -> WinUI.IconSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconSourceImpl(_ value: WinUI.IconSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconSource(pThis, RawPointer(value))) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.TeachingTipTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_ActionButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ActionButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_ActionButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ActionButtonClick(pThis, token)) + } + } + + internal func add_CloseButtonClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CloseButtonClick(pThis, _handler, &token)) + } + return token + } + + internal func remove_CloseButtonClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CloseButtonClick(pThis, token)) + } + } + + internal func add_ClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.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_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + } + + public class ITeachingTipClosedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosedEventArgs } + + internal func get_ReasonImpl() throws -> WinUI.TeachingTipCloseReason { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + } + + public class ITeachingTipClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs } + + internal func get_ReasonImpl() throws -> WinUI.TeachingTipCloseReason { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs.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_CXaml_CControls_CITeachingTipClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func GetDeferralImpl() throws -> WindowsFoundation.Deferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ITeachingTipFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITeachingTip { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITeachingTip(value!) + } + + } + + public class ITeachingTipStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TailVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TailVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TitlePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TitleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SubtitlePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SubtitleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActionButtonContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActionButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActionButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ActionButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActionButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CloseButtonCommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CloseButtonCommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlacementMarginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementMarginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShouldConstrainToRootBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsLightDismissEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLightDismissEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreferredPlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreferredPlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeroContentPlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeroContentPlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeroContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeroContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IconSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TemplateSettingsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettingsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITeachingTipTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings } + + internal func get_TopRightHighlightMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopRightHighlightMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TopRightHighlightMarginImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopRightHighlightMargin(pThis, .from(swift: value))) + } + } + + internal func get_TopLeftHighlightMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopLeftHighlightMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TopLeftHighlightMarginImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TopLeftHighlightMargin(pThis, .from(swift: value))) + } + } + + internal func get_IconElementImpl() throws -> WinUI.IconElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_IconElementImpl(_ value: WinUI.IconElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IconElement(pThis, RawPointer(value))) + } + } + + } + + public class ITeachingTipTemplateSettingsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITeachingTipTemplateSettings { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITeachingTipTemplateSettings(value!) + } + + } + + public class ITeachingTipTemplateSettingsStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsStatics } + + internal func get_TopRightHighlightMarginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopRightHighlightMarginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TopLeftHighlightMarginPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TopLeftHighlightMarginProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IconElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IconElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITextBlock: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_FontStretchImpl() throws -> UWP.FontStretch { + var value: __x_ABI_CWindows_CUI_CText_CFontStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretch(pThis, &value)) + } + return value + } + + internal func put_FontStretchImpl(_ value: UWP.FontStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStretch(pThis, value)) + } + } + + internal func get_CharacterSpacingImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacing(pThis, &value)) + } + return value + } + + internal func put_CharacterSpacingImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharacterSpacing(pThis, value)) + } + } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func get_TextWrappingImpl() throws -> WinUI.TextWrapping { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrapping(pThis, &value)) + } + return value + } + + internal func put_TextWrappingImpl(_ value: WinUI.TextWrapping) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextWrapping(pThis, value)) + } + } + + internal func get_TextTrimmingImpl() throws -> WinUI.TextTrimming { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextTrimming(pThis, &value)) + } + return value + } + + internal func put_TextTrimmingImpl(_ value: WinUI.TextTrimming) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextTrimming(pThis, value)) + } + } + + internal func get_TextAlignmentImpl() throws -> WinUI.TextAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextAlignment(pThis, &value)) + } + return value + } + + internal func put_TextAlignmentImpl(_ value: WinUI.TextAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextAlignment(pThis, value)) + } + } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_InlinesImpl() throws -> WinUI.InlineCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Inlines(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Padding(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PaddingImpl(_ value: WinUI.Thickness) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Padding(pThis, .from(swift: value))) + } + } + + internal func get_LineHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineHeight(pThis, &value)) + } + return value + } + + internal func put_LineHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LineHeight(pThis, value)) + } + } + + internal func get_LineStackingStrategyImpl() throws -> WinUI.LineStackingStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineStackingStrategy(pThis, &value)) + } + return value + } + + internal func put_LineStackingStrategyImpl(_ value: WinUI.LineStackingStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LineStackingStrategy(pThis, value)) + } + } + + internal func get_IsTextSelectionEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextSelectionEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextSelectionEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextSelectionEnabled(pThis, .init(from: value))) + } + } + + internal func get_SelectedTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedText(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ContentStartImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentStart(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentEndImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentEnd(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionStartImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionStart(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionEndImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionEnd(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BaselineOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BaselineOffset(pThis, &value)) + } + return value + } + + internal func get_SelectionHighlightColorImpl() throws -> WinUI.SolidColorBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionHighlightColorImpl(_ value: WinUI.SolidColorBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionHighlightColor(pThis, RawPointer(value))) + } + } + + internal func get_MaxLinesImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLines(pThis, &value)) + } + return value + } + + internal func put_MaxLinesImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxLines(pThis, value)) + } + } + + internal func get_TextLineBoundsImpl() throws -> WinUI.TextLineBounds { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextLineBounds(pThis, &value)) + } + return value + } + + internal func put_TextLineBoundsImpl(_ value: WinUI.TextLineBounds) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextLineBounds(pThis, value)) + } + } + + internal func get_OpticalMarginAlignmentImpl() throws -> WinUI.OpticalMarginAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_COpticalMarginAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpticalMarginAlignment(pThis, &value)) + } + return value + } + + internal func put_OpticalMarginAlignmentImpl(_ value: WinUI.OpticalMarginAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpticalMarginAlignment(pThis, value)) + } + } + + internal func get_IsColorFontEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsColorFontEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsColorFontEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsColorFontEnabled(pThis, .init(from: value))) + } + } + + internal func get_TextReadingOrderImpl() throws -> WinUI.TextReadingOrder { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrder(pThis, &value)) + } + return value + } + + internal func put_TextReadingOrderImpl(_ value: WinUI.TextReadingOrder) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextReadingOrder(pThis, value)) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_TextDecorationsImpl() throws -> UWP.TextDecorations { + var value: __x_ABI_CWindows_CUI_CText_CTextDecorations = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextDecorations(pThis, &value)) + } + return value + } + + internal func put_TextDecorationsImpl(_ value: UWP.TextDecorations) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextDecorations(pThis, value)) + } + } + + internal func get_IsTextTrimmedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextTrimmed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_HorizontalTextAlignmentImpl() throws -> WinUI.TextAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalTextAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalTextAlignmentImpl(_ value: WinUI.TextAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalTextAlignment(pThis, value)) + } + } + + internal func get_TextHighlightersImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextHighlighters(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.unwrapFrom(abi: value) + } + + internal func get_SelectionFlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionFlyoutImpl(_ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionFlyout(pThis, RawPointer(value))) + } + } + + internal func add_SelectionChangedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanged(pThis, token)) + } + } + + internal func add_ContextMenuOpeningImpl(_ handler: WinUI.ContextMenuOpeningEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextMenuOpening(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextMenuOpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextMenuOpening(pThis, token)) + } + } + + internal func add_IsTextTrimmedChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_IsTextTrimmedChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_IsTextTrimmedChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_IsTextTrimmedChanged(pThis, token)) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + internal func SelectImpl(_ start: WinUI.TextPointer?, _ end: WinUI.TextPointer?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Select(pThis, RawPointer(start), RawPointer(end))) + } + } + + internal func GetAlphaMaskImpl() throws -> WinAppSDK.CompositionBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlphaMask(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func CopySelectionToClipboardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CopySelectionToClipboard(pThis)) + } + } + + } + + public class ITextBlockStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextWrappingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrappingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextTrimmingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextTrimmingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PaddingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PaddingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LineHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LineStackingStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LineStackingStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextSelectionEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextSelectionEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionHighlightColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxLinesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLinesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextLineBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextLineBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpticalMarginAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpticalMarginAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsColorFontEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsColorFontEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextReadingOrderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextDecorationsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextDecorationsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextTrimmedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextTrimmedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalTextAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalTextAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlockStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITextBox: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_SelectedTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SelectedTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedText(pThis, _value.get())) + } + } + + internal func get_SelectionLengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionLength(pThis, &value)) + } + return value + } + + internal func put_SelectionLengthImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionLength(pThis, value)) + } + } + + internal func get_SelectionStartImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionStart(pThis, &value)) + } + return value + } + + internal func put_SelectionStartImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionStart(pThis, value)) + } + } + + internal func get_MaxLengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLength(pThis, &value)) + } + return value + } + + internal func put_MaxLengthImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxLength(pThis, value)) + } + } + + internal func get_IsReadOnlyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsReadOnly(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsReadOnlyImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsReadOnly(pThis, .init(from: value))) + } + } + + internal func get_AcceptsReturnImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AcceptsReturn(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AcceptsReturnImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AcceptsReturn(pThis, .init(from: value))) + } + } + + internal func get_TextAlignmentImpl() throws -> WinUI.TextAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextAlignment(pThis, &value)) + } + return value + } + + internal func put_TextAlignmentImpl(_ value: WinUI.TextAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextAlignment(pThis, value)) + } + } + + internal func get_TextWrappingImpl() throws -> WinUI.TextWrapping { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrapping(pThis, &value)) + } + return value + } + + internal func put_TextWrappingImpl(_ value: WinUI.TextWrapping) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextWrapping(pThis, value)) + } + } + + internal func get_IsSpellCheckEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSpellCheckEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSpellCheckEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSpellCheckEnabled(pThis, .init(from: value))) + } + } + + internal func get_IsTextPredictionEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextPredictionEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextPredictionEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextPredictionEnabled(pThis, .init(from: value))) + } + } + + internal func get_InputScopeImpl() throws -> WinUI.InputScope? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputScope(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_InputScopeImpl(_ value: WinUI.InputScope?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_InputScope(pThis, RawPointer(value))) + } + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_PlaceholderTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderText(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PlaceholderTextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaceholderText(pThis, _value.get())) + } + } + + internal func get_SelectionHighlightColorImpl() throws -> WinUI.SolidColorBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionHighlightColorImpl(_ value: WinUI.SolidColorBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionHighlightColor(pThis, RawPointer(value))) + } + } + + internal func get_PreventKeyboardDisplayOnProgrammaticFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreventKeyboardDisplayOnProgrammaticFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func put_PreventKeyboardDisplayOnProgrammaticFocusImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PreventKeyboardDisplayOnProgrammaticFocus(pThis, .init(from: value))) + } + } + + internal func get_IsColorFontEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsColorFontEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsColorFontEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsColorFontEnabled(pThis, .init(from: value))) + } + } + + internal func get_SelectionHighlightColorWhenNotFocusedImpl() throws -> WinUI.SolidColorBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColorWhenNotFocused(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionHighlightColorWhenNotFocusedImpl(_ value: WinUI.SolidColorBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionHighlightColorWhenNotFocused(pThis, RawPointer(value))) + } + } + + internal func get_HorizontalTextAlignmentImpl() throws -> WinUI.TextAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalTextAlignment(pThis, &value)) + } + return value + } + + internal func put_HorizontalTextAlignmentImpl(_ value: WinUI.TextAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalTextAlignment(pThis, value)) + } + } + + internal func get_CharacterCasingImpl() throws -> WinUI.CharacterCasing { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCharacterCasing = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterCasing(pThis, &value)) + } + return value + } + + internal func put_CharacterCasingImpl(_ value: WinUI.CharacterCasing) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharacterCasing(pThis, value)) + } + } + + internal func get_PlaceholderForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderForeground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PlaceholderForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlaceholderForeground(pThis, RawPointer(value))) + } + } + + internal func get_CanPasteClipboardContentImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanPasteClipboardContent(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CanUndoImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanUndo(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CanRedoImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanRedo(pThis, &value)) + } + return .init(from: value) + } + + internal func get_SelectionFlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectionFlyoutImpl(_ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionFlyout(pThis, RawPointer(value))) + } + } + + internal func get_ProofingMenuFlyoutImpl() throws -> WinUI.FlyoutBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProofingMenuFlyout(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DescriptionImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Description(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_DescriptionImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Description(pThis, _value)) + } + } + + internal func add_TextChangedImpl(_ handler: WinUI.TextChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.TextChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextChanged(pThis, token)) + } + } + + internal func add_SelectionChangedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanged(pThis, token)) + } + } + + internal func add_ContextMenuOpeningImpl(_ handler: WinUI.ContextMenuOpeningEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ContextMenuOpening(pThis, _handler, &token)) + } + return token + } + + internal func remove_ContextMenuOpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ContextMenuOpening(pThis, token)) + } + } + + internal func add_PasteImpl(_ handler: WinUI.TextControlPasteEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.TextControlPasteEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Paste(pThis, _handler, &token)) + } + return token + } + + internal func remove_PasteImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Paste(pThis, token)) + } + } + + internal func add_TextCompositionStartedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextCompositionStarted(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextCompositionStartedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextCompositionStarted(pThis, token)) + } + } + + internal func add_TextCompositionChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextCompositionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextCompositionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextCompositionChanged(pThis, token)) + } + } + + internal func add_TextCompositionEndedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextCompositionEnded(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextCompositionEndedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextCompositionEnded(pThis, token)) + } + } + + internal func add_CopyingToClipboardImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CopyingToClipboard(pThis, _handler, &token)) + } + return token + } + + internal func remove_CopyingToClipboardImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CopyingToClipboard(pThis, token)) + } + } + + internal func add_CuttingToClipboardImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CuttingToClipboard(pThis, _handler, &token)) + } + return token + } + + internal func remove_CuttingToClipboardImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CuttingToClipboard(pThis, token)) + } + } + + internal func add_BeforeTextChangingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_BeforeTextChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_BeforeTextChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BeforeTextChanging(pThis, token)) + } + } + + internal func add_SelectionChangingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanging(pThis, token)) + } + } + + internal func SelectImpl(_ start: Int32, _ length: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Select(pThis, start, length)) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + internal func GetRectFromCharacterIndexImpl(_ charIndex: Int32, _ trailingEdge: Bool) throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRectFromCharacterIndex(pThis, charIndex, .init(from: trailingEdge), &result)) + } + return .from(abi: result) + } + + internal func GetLinguisticAlternativesAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation?>? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetLinguisticAlternativesAsync(pThis, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.unwrapFrom(abi: operation) + } + + internal func UndoImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Undo(pThis)) + } + } + + internal func RedoImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Redo(pThis)) + } + } + + internal func PasteFromClipboardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PasteFromClipboard(pThis)) + } + } + + internal func CopySelectionToClipboardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CopySelectionToClipboard(pThis)) + } + } + + internal func CutSelectionToClipboardImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CutSelectionToClipboard(pThis)) + } + } + + internal func ClearUndoRedoHistoryImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ClearUndoRedoHistory(pThis)) + } + } + + internal func get_TextReadingOrderImpl() throws -> WinUI.TextReadingOrder { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrder(pThis, &value)) + } + return value + } + + internal func put_TextReadingOrderImpl(_ value: WinUI.TextReadingOrder) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextReadingOrder(pThis, value)) + } + } + + internal func get_DesiredCandidateWindowAlignmentImpl() throws -> WinUI.CandidateWindowAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCandidateWindowAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredCandidateWindowAlignment(pThis, &value)) + } + return value + } + + internal func put_DesiredCandidateWindowAlignmentImpl(_ value: WinUI.CandidateWindowAlignment) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredCandidateWindowAlignment(pThis, value)) + } + } + + internal func add_CandidateWindowBoundsChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CandidateWindowBoundsChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_CandidateWindowBoundsChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CandidateWindowBoundsChanged(pThis, token)) + } + } + + internal func add_TextChangingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TextChanging(pThis, _handler, &token)) + } + return token + } + + internal func remove_TextChangingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TextChanging(pThis, token)) + } + } + + } + + public class ITextBoxBeforeTextChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs } + + internal func get_NewTextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewText(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs.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_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class ITextBoxFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITextBox { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITextBox(value!) + } + + } + + public class ITextBoxSelectionChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs } + + internal func get_SelectionStartImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionStart(pThis, &value)) + } + return value + } + + internal func get_SelectionLengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionLength(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs.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_CXaml_CControls_CITextBoxSelectionChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class ITextBoxStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics } + + internal func get_TextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsReadOnlyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsReadOnlyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AcceptsReturnPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AcceptsReturnProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextWrappingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextWrappingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSpellCheckEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSpellCheckEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextPredictionEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextPredictionEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_InputScopePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputScopeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlaceholderTextPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderTextProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionHighlightColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PreventKeyboardDisplayOnProgrammaticFocusPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PreventKeyboardDisplayOnProgrammaticFocusProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsColorFontEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsColorFontEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionHighlightColorWhenNotFocusedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionHighlightColorWhenNotFocusedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalTextAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalTextAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterCasingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterCasingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlaceholderForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlaceholderForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanPasteClipboardContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanPasteClipboardContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanUndoPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanUndoProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanRedoPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanRedoProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ProofingMenuFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ProofingMenuFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DescriptionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DescriptionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DesiredCandidateWindowAlignmentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredCandidateWindowAlignmentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextReadingOrderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextReadingOrderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITextBoxTextChangingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxTextChangingEventArgs } + + internal func get_IsContentChangingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxTextChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsContentChanging(pThis, &value)) + } + return .init(from: value) + } + + } + + public class ITextChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventArgs } + + } + + public class ITextCompositionChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionChangedEventArgs } + + internal func get_StartIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartIndex(pThis, &value)) + } + return value + } + + internal func get_LengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Length(pThis, &value)) + } + return value + } + + } + + public class ITextCompositionEndedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionEndedEventArgs } + + internal func get_StartIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionEndedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartIndex(pThis, &value)) + } + return value + } + + internal func get_LengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionEndedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Length(pThis, &value)) + } + return value + } + + } + + public class ITextCompositionStartedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionStartedEventArgs } + + internal func get_StartIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartIndex(pThis, &value)) + } + return value + } + + internal func get_LengthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionStartedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Length(pThis, &value)) + } + return value + } + + } + + public class ITextControlCopyingToClipboardEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCopyingToClipboardEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCopyingToClipboardEventArgs.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_CXaml_CControls_CITextControlCopyingToClipboardEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class ITextControlCuttingToClipboardEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCuttingToClipboardEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCuttingToClipboardEventArgs.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_CXaml_CControls_CITextControlCuttingToClipboardEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class ITextControlPasteEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventArgs.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_CXaml_CControls_CITextControlPasteEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IToggleMenuFlyoutItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem } + + internal func get_IsCheckedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsChecked(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsCheckedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsChecked(pThis, .init(from: value))) + } + } + + } + + public class IToggleMenuFlyoutItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IToggleMenuFlyoutItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IToggleMenuFlyoutItem(value!) + } + + } + + public class IToggleMenuFlyoutItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemStatics } + + internal func get_IsCheckedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCheckedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IToggleSwitch: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch } + + internal func get_IsOnImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOn(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOnImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOn(pThis, .init(from: value))) + } + } + + internal func get_HeaderImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Header(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HeaderImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Header(pThis, _value)) + } + } + + internal func get_HeaderTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_HeaderTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HeaderTemplate(pThis, RawPointer(value))) + } + } + + internal func get_OnContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OnContent(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_OnContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OnContent(pThis, _value)) + } + } + + internal func get_OnContentTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OnContentTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OnContentTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OnContentTemplate(pThis, RawPointer(value))) + } + } + + internal func get_OffContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffContent(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_OffContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OffContent(pThis, _value)) + } + } + + internal func get_OffContentTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffContentTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OffContentTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OffContentTemplate(pThis, RawPointer(value))) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ToggleSwitchTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_ToggledImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Toggled(pThis, _handler, &token)) + } + return token + } + + internal func remove_ToggledImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Toggled(pThis, token)) + } + } + + } + + public class IToggleSwitchOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides } + + internal func OnToggledImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnToggled(pThis)) + } + } + + internal func OnOnContentChangedImpl(_ oldContent: Any?, _ newContent: Any?) throws { + let oldContentWrapper = __ABI_.AnyWrapper(oldContent) + let _oldContent = try! oldContentWrapper?.toABI { $0 } + let newContentWrapper = __ABI_.AnyWrapper(newContent) + let _newContent = try! newContentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnOnContentChanged(pThis, _oldContent, _newContent)) + } + } + + internal func OnOffContentChangedImpl(_ oldContent: Any?, _ newContent: Any?) throws { + let oldContentWrapper = __ABI_.AnyWrapper(oldContent) + let _oldContent = try! oldContentWrapper?.toABI { $0 } + let newContentWrapper = __ABI_.AnyWrapper(newContent) + let _newContent = try! newContentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnOffContentChanged(pThis, _oldContent, _newContent)) + } + } + + internal func OnHeaderChangedImpl(_ oldContent: Any?, _ newContent: Any?) throws { + let oldContentWrapper = __ABI_.AnyWrapper(oldContent) + let _oldContent = try! oldContentWrapper?.toABI { $0 } + let newContentWrapper = __ABI_.AnyWrapper(newContent) + let _newContent = try! newContentWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnHeaderChanged(pThis, _oldContent, _newContent)) + } + } + + } + + public class IToggleSwitchStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics } + + internal func get_IsOnPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOnProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HeaderTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HeaderTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OnContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OnContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OnContentTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OnContentTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OffContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OffContentTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitchStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffContentTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IToolTip: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_HorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value)) + } + } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOpen(pThis, .init(from: value))) + } + } + + internal func get_PlacementImpl() throws -> WinUI.PlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Placement(pThis, &value)) + } + return value + } + + internal func put_PlacementImpl(_ value: WinUI.PlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Placement(pThis, value)) + } + } + + internal func get_PlacementTargetImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PlacementTargetImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlacementTarget(pThis, RawPointer(value))) + } + } + + internal func get_PlacementRectImpl() throws -> WindowsFoundation.Rect? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementRect(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.unwrapFrom(abi: value) + } + + internal func put_PlacementRectImpl(_ value: WindowsFoundation.Rect?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlacementRect(pThis, _value)) + } + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func put_VerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value)) + } + } + + internal func get_TemplateSettingsImpl() throws -> WinUI.ToolTipTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_ClosedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + internal func add_OpenedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + } + + public class IToolTipFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IToolTip { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IToolTip(value!) + } + + } + + public class IToolTipService: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipService } + + } + + public class IToolTipServiceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics } + + internal func get_PlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetPlacementImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.PlacementMode { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPlacement(pThis, RawPointer(element), &result)) + } + return result + } + + internal func SetPlacementImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.PlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPlacement(pThis, RawPointer(element), value)) + } + } + + internal func get_PlacementTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetPlacementTargetImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPlacementTarget(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetPlacementTargetImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPlacementTarget(pThis, RawPointer(element), RawPointer(value))) + } + } + + internal func get_ToolTipPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToolTipProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetToolTipImpl(_ element: WinUI.DependencyObject?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetToolTip(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetToolTipImpl(_ element: WinUI.DependencyObject?, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetToolTip(pThis, RawPointer(element), _value)) + } + } + + } + + public class IToolTipStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics } + + internal func get_HorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlacementTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlacementRectPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementRectProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView } + + internal func get_RootNodesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RootNodes(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.unwrapFrom(abi: value) + } + + internal func get_SelectionModeImpl() throws -> WinUI.TreeViewSelectionMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTreeViewSelectionMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionMode(pThis, &value)) + } + return value + } + + internal func put_SelectionModeImpl(_ value: WinUI.TreeViewSelectionMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectionMode(pThis, value)) + } + } + + internal func get_SelectedNodesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedNodes(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.unwrapFrom(abi: value) + } + + internal func ExpandImpl(_ value: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Expand(pThis, RawPointer(value))) + } + } + + internal func CollapseImpl(_ value: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Collapse(pThis, RawPointer(value))) + } + } + + internal func SelectAllImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SelectAll(pThis)) + } + } + + internal func add_ItemInvokedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ItemInvoked(pThis, _handler, &token)) + } + return token + } + + internal func remove_ItemInvokedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ItemInvoked(pThis, token)) + } + } + + internal func add_ExpandingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Expanding(pThis, _handler, &token)) + } + return token + } + + internal func remove_ExpandingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Expanding(pThis, token)) + } + } + + internal func add_CollapsedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Collapsed(pThis, _handler, &token)) + } + return token + } + + internal func remove_CollapsedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Collapsed(pThis, token)) + } + } + + } + + public class ITreeView2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2 } + + internal func NodeFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> WinUI.TreeViewNode? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NodeFromContainer(pThis, RawPointer(container), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func ContainerFromNodeImpl(_ node: WinUI.TreeViewNode?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromNode(pThis, RawPointer(node), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func ItemFromContainerImpl(_ container: WinUI.DependencyObject?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ItemFromContainer(pThis, RawPointer(container), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func ContainerFromItemImpl(_ item: Any?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ContainerFromItem(pThis, _item, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func get_CanDragItemsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragItems(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanDragItemsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanDragItems(pThis, .init(from: value))) + } + } + + internal func get_CanReorderItemsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanReorderItems(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CanReorderItemsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CanReorderItems(pThis, .init(from: value))) + } + } + + internal func get_ItemTemplateImpl() throws -> WinUI.DataTemplate? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplate(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemTemplateImpl(_ value: WinUI.DataTemplate?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplate(pThis, RawPointer(value))) + } + } + + internal func get_ItemTemplateSelectorImpl() throws -> WinUI.DataTemplateSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemTemplateSelectorImpl(_ value: WinUI.DataTemplateSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemTemplateSelector(pThis, RawPointer(value))) + } + } + + internal func get_ItemContainerStyleImpl() throws -> WinUI.Style? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyle(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerStyleImpl(_ value: WinUI.Style?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerStyle(pThis, RawPointer(value))) + } + } + + internal func get_ItemContainerStyleSelectorImpl() throws -> WinUI.StyleSelector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleSelector(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerStyleSelectorImpl(_ value: WinUI.StyleSelector?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerStyleSelector(pThis, RawPointer(value))) + } + } + + internal func get_ItemContainerTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ItemContainerTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemContainerTransitions(pThis, RawPointer(value))) + } + } + + internal func get_ItemsSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemsSourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsSource(pThis, _value)) + } + } + + internal func add_DragItemsStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragItemsStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragItemsStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragItemsStarting(pThis, token)) + } + } + + internal func add_DragItemsCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DragItemsCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_DragItemsCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DragItemsCompleted(pThis, token)) + } + } + + internal func get_SelectedNodeImpl() throws -> WinUI.TreeViewNode? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedNode(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SelectedNodeImpl(_ value: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedNode(pThis, RawPointer(value))) + } + } + + internal func get_SelectedItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SelectedItemImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedItem(pThis, _value)) + } + } + + internal func get_SelectedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeView3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView3 } + + internal func add_SelectionChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanged(pThis, token)) + } + } + + } + + public class ITreeViewCollapsedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs } + + internal func get_NodeImpl() throws -> WinUI.TreeViewNode? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Node(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewCollapsedEventArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs2 } + + internal func get_ItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Item(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewDragItemsCompletedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs } + + internal func get_DropResultImpl() throws -> UWP.DataPackageOperation { + var value: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropResult(pThis, &value)) + } + return value + } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewDragItemsCompletedEventArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs2 } + + internal func get_NewParentItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewParentItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewDragItemsStartingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs.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_CXaml_CControls_CITreeViewDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_DataImpl() throws -> UWP.DataPackage? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Items(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewExpandingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs } + + internal func get_NodeImpl() throws -> WinUI.TreeViewNode? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Node(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewExpandingEventArgs2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs2 } + + internal func get_ItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Item(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITreeView { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITreeView(value!) + } + + } + + public class ITreeViewItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem } + + internal func get_GlyphOpacityImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphOpacity(pThis, &value)) + } + return value + } + + internal func put_GlyphOpacityImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GlyphOpacity(pThis, value)) + } + } + + internal func get_GlyphBrushImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GlyphBrushImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GlyphBrush(pThis, RawPointer(value))) + } + } + + internal func get_ExpandedGlyphImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpandedGlyph(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExpandedGlyphImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExpandedGlyph(pThis, _value.get())) + } + } + + internal func get_CollapsedGlyphImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CollapsedGlyph(pThis, &value)) + } + return .init(from: value) + } + + internal func put_CollapsedGlyphImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CollapsedGlyph(pThis, _value.get())) + } + } + + internal func get_GlyphSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphSize(pThis, &value)) + } + return value + } + + internal func put_GlyphSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GlyphSize(pThis, value)) + } + } + + internal func get_IsExpandedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsExpanded(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsExpandedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsExpanded(pThis, .init(from: value))) + } + } + + internal func get_TreeViewItemTemplateSettingsImpl() throws -> WinUI.TreeViewItemTemplateSettings? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TreeViewItemTemplateSettings(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewItem2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2 } + + internal func get_HasUnrealizedChildrenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasUnrealizedChildren(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HasUnrealizedChildrenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HasUnrealizedChildren(pThis, .init(from: value))) + } + } + + internal func get_ItemsSourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSource(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ItemsSourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsSource(pThis, _value)) + } + } + + } + + public class ITreeViewItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITreeViewItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITreeViewItem(value!) + } + + } + + public class ITreeViewItemInvokedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs } + + internal func get_InvokedItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InvokedItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_HandledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Handled(pThis, &value)) + } + return .init(from: value) + } + + } + + public class ITreeViewItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics } + + internal func get_GlyphOpacityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphOpacityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_GlyphBrushPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphBrushProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExpandedGlyphPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpandedGlyphProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CollapsedGlyphPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CollapsedGlyphProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_GlyphSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GlyphSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsExpandedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsExpandedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TreeViewItemTemplateSettingsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TreeViewItemTemplateSettingsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewItemStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics2 } + + internal func get_HasUnrealizedChildrenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasUnrealizedChildrenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewItemTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings } + + internal func get_ExpandedGlyphVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpandedGlyphVisibility(pThis, &value)) + } + return value + } + + internal func get_CollapsedGlyphVisibilityImpl() throws -> WinUI.Visibility { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CVisibility = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CollapsedGlyphVisibility(pThis, &value)) + } + return value + } + + internal func get_IndentationImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Indentation(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_DragItemsCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragItemsCount(pThis, &value)) + } + return value + } + + } + + public class ITreeViewItemTemplateSettingsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITreeViewItemTemplateSettings { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITreeViewItemTemplateSettings(value!) + } + + } + + public class ITreeViewItemTemplateSettingsStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics } + + internal func get_ExpandedGlyphVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpandedGlyphVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CollapsedGlyphVisibilityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CollapsedGlyphVisibilityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IndentationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IndentationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DragItemsCountPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettingsStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragItemsCountProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewList: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewList } + + } + + public class ITreeViewListFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewListFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITreeViewList { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewListFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITreeViewList(value!) + } + + } + + public class ITreeViewNode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode } + + internal func get_ContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ContentImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, _value)) + } + } + + internal func get_ParentImpl() throws -> WinUI.TreeViewNode? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsExpandedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsExpanded(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsExpandedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsExpanded(pThis, .init(from: value))) + } + } + + internal func get_HasChildrenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasChildren(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DepthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Depth(pThis, &value)) + } + return value + } + + internal func get_HasUnrealizedChildrenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasUnrealizedChildren(pThis, &value)) + } + return .init(from: value) + } + + internal func put_HasUnrealizedChildrenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HasUnrealizedChildren(pThis, .init(from: value))) + } + } + + internal func get_ChildrenImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Children(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewNodeFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITreeViewNode { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITreeViewNode(value!) + } + + } + + public class ITreeViewNodeStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DepthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DepthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsExpandedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsExpandedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HasChildrenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNodeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasChildrenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewSelectionChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewSelectionChangedEventArgs } + + internal func get_AddedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewSelectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AddedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + internal func get_RemovedItemsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewSelectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RemovedItems(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.unwrapFrom(abi: value) + } + + } + + public class ITreeViewStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics } + + internal func get_SelectedItemPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItemProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectionModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectionModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITreeViewStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2 } + + internal func get_CanDragItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanDragItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CanReorderItemsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanReorderItemsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemTemplateSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemTemplateSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerStyleSelectorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerStyleSelectorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemContainerTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemContainerTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IUIElementCollection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUIElementCollection } + + internal func MoveImpl(_ oldIndex: UInt32, _ newIndex: UInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUIElementCollection.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Move(pThis, oldIndex, newIndex)) + } + } + + } + + public class IUniformGridLayout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout } + + internal func get_OrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value)) + } + return value + } + + internal func put_OrientationImpl(_ value: WinUI.Orientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Orientation(pThis, value)) + } + } + + internal func get_MinItemWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinItemWidth(pThis, &value)) + } + return value + } + + internal func put_MinItemWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinItemWidth(pThis, value)) + } + } + + internal func get_MinItemHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinItemHeight(pThis, &value)) + } + return value + } + + internal func put_MinItemHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinItemHeight(pThis, value)) + } + } + + internal func get_MinRowSpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinRowSpacing(pThis, &value)) + } + return value + } + + internal func put_MinRowSpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinRowSpacing(pThis, value)) + } + } + + internal func get_MinColumnSpacingImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinColumnSpacing(pThis, &value)) + } + return value + } + + internal func put_MinColumnSpacingImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinColumnSpacing(pThis, value)) + } + } + + internal func get_ItemsJustificationImpl() throws -> WinUI.UniformGridLayoutItemsJustification { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsJustification(pThis, &value)) + } + return value + } + + internal func put_ItemsJustificationImpl(_ value: WinUI.UniformGridLayoutItemsJustification) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsJustification(pThis, value)) + } + } + + internal func get_ItemsStretchImpl() throws -> WinUI.UniformGridLayoutItemsStretch { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsStretch(pThis, &value)) + } + return value + } + + internal func put_ItemsStretchImpl(_ value: WinUI.UniformGridLayoutItemsStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ItemsStretch(pThis, value)) + } + } + + internal func get_MaximumRowsOrColumnsImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaximumRowsOrColumns(pThis, &value)) + } + return value + } + + internal func put_MaximumRowsOrColumnsImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaximumRowsOrColumns(pThis, value)) + } + } + + } + + public class IUniformGridLayoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IUniformGridLayout { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IUniformGridLayout(value!) + } + + } + + public class IUniformGridLayoutStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics } + + internal func get_OrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinItemWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinItemWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinItemHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinItemHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinRowSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinRowSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinColumnSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinColumnSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsJustificationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsJustificationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ItemsStretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemsStretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaximumRowsOrColumnsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayoutStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaximumRowsOrColumnsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IUserControl: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + } + + public class IUserControlFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IUserControl { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IUserControl(value!) + } + + } + + public class IUserControlStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlStatics } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControlStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IVirtualizingLayout: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayout } + + } + + public class IVirtualizingLayoutContext: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext } + + internal func get_ItemCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemCount(pThis, &value)) + } + return value + } + + internal func GetItemAtImpl(_ index: Int32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_RealizationRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RealizationRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func GetOrCreateElementAtImpl(_ index: Int32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrCreateElementAt(pThis, index, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetOrCreateElementAt2Impl(_ index: Int32, _ options: WinUI.ElementRealizationOptions) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrCreateElementAt2(pThis, index, options, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func RecycleElementImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RecycleElement(pThis, RawPointer(element))) + } + } + + internal func get_RecommendedAnchorIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RecommendedAnchorIndex(pThis, &value)) + } + return value + } + + internal func get_LayoutOriginImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutOrigin(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_LayoutOriginImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutOrigin(pThis, .from(swift: value))) + } + } + + } + + public class IVirtualizingLayoutContext2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext2 } + + internal func get_VisibleRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VisibleRect(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IVirtualizingLayoutContextFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVirtualizingLayoutContext { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IVirtualizingLayoutContext(value!) + } + + } + + public class IVirtualizingLayoutContextOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides } + + internal func ItemCountCoreImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ItemCountCore(pThis, &result)) + } + return result + } + + internal func GetItemAtCoreImpl(_ index: Int32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetItemAtCore(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func RealizationRectCoreImpl() throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RealizationRectCore(pThis, &result)) + } + return .from(abi: result) + } + + internal func GetOrCreateElementAtCoreImpl(_ index: Int32, _ options: WinUI.ElementRealizationOptions) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOrCreateElementAtCore(pThis, index, options, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func RecycleElementCoreImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RecycleElementCore(pThis, RawPointer(element))) + } + } + + internal func get_RecommendedAnchorIndexCoreImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RecommendedAnchorIndexCore(pThis, &value)) + } + return value + } + + internal func get_LayoutOriginCoreImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LayoutOriginCore(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_LayoutOriginCoreImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LayoutOriginCore(pThis, .from(swift: value))) + } + } + + } + + public class IVirtualizingLayoutContextOverrides2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2 } + + internal func VisibleRectCoreImpl() throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.VisibleRectCore(pThis, &result)) + } + return .from(abi: result) + } + + } + + public class IVirtualizingLayoutFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IVirtualizingLayout { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IVirtualizingLayout(value!) + } + + } + + public class IVirtualizingLayoutOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides } + + internal func InitializeForContextCoreImpl(_ context: WinUI.VirtualizingLayoutContext?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InitializeForContextCore(pThis, RawPointer(context))) + } + } + + internal func UninitializeForContextCoreImpl(_ context: WinUI.VirtualizingLayoutContext?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UninitializeForContextCore(pThis, RawPointer(context))) + } + } + + internal func MeasureOverrideImpl(_ context: WinUI.VirtualizingLayoutContext?, _ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MeasureOverride(pThis, RawPointer(context), .from(swift: availableSize), &result)) + } + return .from(abi: result) + } + + internal func ArrangeOverrideImpl(_ context: WinUI.VirtualizingLayoutContext?, _ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + var result: __x_ABI_CWindows_CFoundation_CSize = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ArrangeOverride(pThis, RawPointer(context), .from(swift: finalSize), &result)) + } + return .from(abi: result) + } + + internal func OnItemsChangedCoreImpl(_ context: WinUI.VirtualizingLayoutContext?, _ source: Any?, _ args: WinUI.NotifyCollectionChangedEventArgs?) throws { + let sourceWrapper = __ABI_.AnyWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnItemsChangedCore(pThis, RawPointer(context), _source, RawPointer(args))) + } + } + + } + + public class IXamlControlsResources: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResources } + + internal func get_UseCompactResourcesImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResources.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseCompactResources(pThis, &value)) + } + return .init(from: value) + } + + internal func put_UseCompactResourcesImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResources.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UseCompactResources(pThis, .init(from: value))) + } + } + + } + + public class IXamlControlsResourcesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResourcesStatics } + + internal func EnsureRevealLightsImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResourcesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.EnsureRevealLights(pThis, RawPointer(element))) + } + } + + internal func get_UseCompactResourcesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResourcesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UseCompactResourcesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + internal typealias IAppBarOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IAppBarOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverridesVtbl = .init( + QueryInterface: { IAppBarOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IAppBarOverridesWrapper.addRef($0) }, + Release: { IAppBarOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 7).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls.IAppBarOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + iids[6] = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesWrapper.IID + $1!.pointee = 7 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IAppBarOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnClosed: { + do { + guard let __unwrapped__instance = IAppBarOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onClosed(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnOpened: { + do { + guard let __unwrapped__instance = IAppBarOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onOpened(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnClosing: { + do { + guard let __unwrapped__instance = IAppBarOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onClosing(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnOpening: { + do { + guard let __unwrapped__instance = IAppBarOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onOpening(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IComboBoxOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IComboBoxOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverridesVtbl = .init( + QueryInterface: { IComboBoxOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IComboBoxOverridesWrapper.addRef($0) }, + Release: { IComboBoxOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 7).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + iids[6] = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverridesWrapper.IID + $1!.pointee = 7 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IComboBoxOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnDropDownClosed: { + do { + guard let __unwrapped__instance = IComboBoxOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onDropDownClosed(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDropDownOpened: { + do { + guard let __unwrapped__instance = IComboBoxOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onDropDownOpened(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IContentControlOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IContentControlOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverridesVtbl = .init( + QueryInterface: { IContentControlOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IContentControlOverridesWrapper.addRef($0) }, + Release: { IContentControlOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 6).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + $1!.pointee = 6 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IContentControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnContentChanged: { + do { + guard let __unwrapped__instance = IContentControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldContent: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let newContent: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.onContentChanged(oldContent, newContent) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnContentTemplateChanged: { + do { + guard let __unwrapped__instance = IContentControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldContentTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($1)) + let newContentTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onContentTemplateChanged(oldContentTemplate, newContentTemplate) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnContentTemplateSelectorChanged: { + do { + guard let __unwrapped__instance = IContentControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldContentTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($1)) + let newContentTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IContentPresenterOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IContentPresenterOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverridesVtbl = .init( + QueryInterface: { IContentPresenterOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IContentPresenterOverridesWrapper.addRef($0) }, + Release: { IContentPresenterOverridesWrapper.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_Xaml_Controls.IContentPresenterOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IContentPresenterOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnContentTemplateChanged: { + do { + guard let __unwrapped__instance = IContentPresenterOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldContentTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($1)) + let newContentTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onContentTemplateChanged(oldContentTemplate, newContentTemplate) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnContentTemplateSelectorChanged: { + do { + guard let __unwrapped__instance = IContentPresenterOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldContentTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($1)) + let newContentTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IControlOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IControlOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverridesVtbl = .init( + QueryInterface: { IControlOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IControlOverridesWrapper.addRef($0) }, + Release: { IControlOverridesWrapper.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_Xaml_Controls.IControlOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnPointerEntered: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerEntered(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerPressed: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerPressed(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerMoved: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerMoved(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerReleased: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerReleased(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerExited: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerExited(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerCaptureLost: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerCaptureLost(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerCanceled: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerCanceled(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPointerWheelChanged: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPointerWheelChanged(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnTapped: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.TappedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onTapped(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDoubleTapped: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.DoubleTappedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDoubleTapped(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnHolding: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.HoldingRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onHolding(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnRightTapped: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.RightTappedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onRightTapped(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnManipulationStarting: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.ManipulationStartingRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onManipulationStarting(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnManipulationInertiaStarting: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.ManipulationInertiaStartingRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onManipulationInertiaStarting(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnManipulationStarted: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.ManipulationStartedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onManipulationStarted(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnManipulationDelta: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.ManipulationDeltaRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onManipulationDelta(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnManipulationCompleted: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.ManipulationCompletedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onManipulationCompleted(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnKeyUp: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.KeyRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onKeyUp(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnKeyDown: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.KeyRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onKeyDown(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPreviewKeyDown: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.KeyRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPreviewKeyDown(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnPreviewKeyUp: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.KeyRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onPreviewKeyUp(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnGotFocus: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.RoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onGotFocus(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnLostFocus: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.RoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onLostFocus(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnCharacterReceived: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.CharacterReceivedRoutedEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onCharacterReceived(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDragEnter: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.DragEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDragEnter(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDragLeave: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.DragEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDragLeave(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDragOver: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.DragEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDragOver(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDrop: { + do { + guard let __unwrapped__instance = IControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.DragEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDrop(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IDataTemplateSelectorOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IDataTemplateSelectorOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverridesVtbl = .init( + QueryInterface: { IDataTemplateSelectorOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IDataTemplateSelectorOverridesWrapper.addRef($0) }, + Release: { IDataTemplateSelectorOverridesWrapper.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_Xaml_Controls.IDataTemplateSelectorOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IDataTemplateSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + SelectTemplateCore: { + do { + guard let __unwrapped__instance = IDataTemplateSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let container: WinUI.DependencyObject? = .from(abi: ComPtr($2)) + let result = try __unwrapped__instance.selectTemplateCore(item, container) + result?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SelectTemplateForItemCore: { + do { + guard let __unwrapped__instance = IDataTemplateSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.selectTemplateCore(item) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IGroupStyleSelectorOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IGroupStyleSelectorOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverridesVtbl = .init( + QueryInterface: { IGroupStyleSelectorOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IGroupStyleSelectorOverridesWrapper.addRef($0) }, + Release: { IGroupStyleSelectorOverridesWrapper.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_Xaml_Controls.IGroupStyleSelectorOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IGroupStyleSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + SelectGroupStyleCore: { + do { + guard let __unwrapped__instance = IGroupStyleSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let group: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let level: UInt32 = $2 + let result = try __unwrapped__instance.selectGroupStyleCore(group, level) + result?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IIconSourceOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IIconSourceOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverridesVtbl = .init( + QueryInterface: { IIconSourceOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IIconSourceOverridesWrapper.addRef($0) }, + Release: { IIconSourceOverridesWrapper.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_Xaml_Controls.IIconSourceOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IIconSourceOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + CreateIconElementCore: { + do { + guard let __unwrapped__instance = IIconSourceOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.createIconElementCore() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetIconElementPropertyCore: { + do { + guard let __unwrapped__instance = IIconSourceOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let iconSourceProperty: WinUI.DependencyProperty? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.getIconElementPropertyCore(iconSourceProperty) + result?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IItemCollectionTransitionProviderOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IItemCollectionTransitionProviderOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverridesVtbl = .init( + QueryInterface: { IItemCollectionTransitionProviderOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IItemCollectionTransitionProviderOverridesWrapper.addRef($0) }, + Release: { IItemCollectionTransitionProviderOverridesWrapper.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_Xaml_Controls.IItemCollectionTransitionProviderOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IItemCollectionTransitionProviderOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + ShouldAnimateCore: { + do { + guard let __unwrapped__instance = IItemCollectionTransitionProviderOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let transition: WinUI.ItemCollectionTransition? = .from(abi: ComPtr($1)) + let result = try __unwrapped__instance.shouldAnimateCore(transition) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + StartTransitions: { + do { + guard let __unwrapped__instance = IItemCollectionTransitionProviderOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let transitions: WindowsFoundation.AnyIVector? = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.startTransitions(transitions) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IItemsControlOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IItemsControlOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverridesVtbl = .init( + QueryInterface: { IItemsControlOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IItemsControlOverridesWrapper.addRef($0) }, + Release: { IItemsControlOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 6).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + $1!.pointee = 6 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + IsItemItsOwnContainerOverride: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.isItemItsOwnContainerOverride(item) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetContainerForItemOverride: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getContainerForItemOverride() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ClearContainerForItemOverride: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let element: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.clearContainerForItemOverride(element, item) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + PrepareContainerForItemOverride: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let element: WinUI.DependencyObject? = .from(abi: ComPtr($1)) + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.prepareContainerForItemOverride(element, item) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemsChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onItemsChanged(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemContainerStyleChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldItemContainerStyle: WinUI.Style? = .from(abi: ComPtr($1)) + let newItemContainerStyle: WinUI.Style? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onItemContainerStyleChanged(oldItemContainerStyle, newItemContainerStyle) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemContainerStyleSelectorChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldItemContainerStyleSelector: WinUI.StyleSelector? = .from(abi: ComPtr($1)) + let newItemContainerStyleSelector: WinUI.StyleSelector? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onItemContainerStyleSelectorChanged(oldItemContainerStyleSelector, newItemContainerStyleSelector) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemTemplateChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldItemTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($1)) + let newItemTemplate: WinUI.DataTemplate? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onItemTemplateChanged(oldItemTemplate, newItemTemplate) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemTemplateSelectorChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldItemTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($1)) + let newItemTemplateSelector: WinUI.DataTemplateSelector? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onItemTemplateSelectorChanged(oldItemTemplateSelector, newItemTemplateSelector) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnGroupStyleSelectorChanged: { + do { + guard let __unwrapped__instance = IItemsControlOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldGroupStyleSelector: WinUI.GroupStyleSelector? = .from(abi: ComPtr($1)) + let newGroupStyleSelector: WinUI.GroupStyleSelector? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onGroupStyleSelectorChanged(oldGroupStyleSelector, newGroupStyleSelector) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias ILayoutOverridesWrapper = UnsealedWinRTClassWrapper + internal static var ILayoutOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverridesVtbl = .init( + QueryInterface: { ILayoutOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { ILayoutOverridesWrapper.addRef($0) }, + Release: { ILayoutOverridesWrapper.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_Xaml_Controls.ILayoutOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = ILayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + CreateDefaultItemTransitionProvider: { + do { + guard let __unwrapped__instance = ILayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.createDefaultItemTransitionProvider() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias ILayoutContextOverridesWrapper = UnsealedWinRTClassWrapper + internal static var ILayoutContextOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverridesVtbl = .init( + QueryInterface: { ILayoutContextOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { ILayoutContextOverridesWrapper.addRef($0) }, + Release: { ILayoutContextOverridesWrapper.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_Xaml_Controls.ILayoutContextOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = ILayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_LayoutStateCore: { + guard let __unwrapped__instance = ILayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.layoutStateCore + let valueWrapper = __ABI_.AnyWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + put_LayoutStateCore: { + guard let __unwrapped__instance = ILayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + __unwrapped__instance.layoutStateCore = value + return S_OK + } + ) + internal typealias IPageOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IPageOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverridesVtbl = .init( + QueryInterface: { IPageOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IPageOverridesWrapper.addRef($0) }, + Release: { IPageOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 6).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls.IPageOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + $1!.pointee = 6 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IPageOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnNavigatedFrom: { + do { + guard let __unwrapped__instance = IPageOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.NavigationEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onNavigatedFrom(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnNavigatedTo: { + do { + guard let __unwrapped__instance = IPageOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.NavigationEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onNavigatedTo(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnNavigatingFrom: { + do { + guard let __unwrapped__instance = IPageOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let e: WinUI.NavigatingCancelEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onNavigatingFrom(e) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IStyleSelectorOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IStyleSelectorOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverridesVtbl = .init( + QueryInterface: { IStyleSelectorOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IStyleSelectorOverridesWrapper.addRef($0) }, + Release: { IStyleSelectorOverridesWrapper.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_Xaml_Controls.IStyleSelectorOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IStyleSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + SelectStyleCore: { + do { + guard let __unwrapped__instance = IStyleSelectorOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let container: WinUI.DependencyObject? = .from(abi: ComPtr($2)) + let result = try __unwrapped__instance.selectStyleCore(item, container) + result?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IVirtualizingLayoutOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IVirtualizingLayoutOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverridesVtbl = .init( + QueryInterface: { IVirtualizingLayoutOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IVirtualizingLayoutOverridesWrapper.addRef($0) }, + Release: { IVirtualizingLayoutOverridesWrapper.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_Xaml_Controls.IVirtualizingLayoutOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Controls.ILayoutOverridesWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + InitializeForContextCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let context: WinUI.VirtualizingLayoutContext? = .from(abi: ComPtr($1)) + try __unwrapped__instance.initializeForContextCore(context) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + UninitializeForContextCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let context: WinUI.VirtualizingLayoutContext? = .from(abi: ComPtr($1)) + try __unwrapped__instance.uninitializeForContextCore(context) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + MeasureOverride: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let context: WinUI.VirtualizingLayoutContext? = .from(abi: ComPtr($1)) + let availableSize: WindowsFoundation.Size = .from(abi: $2) + let result = try __unwrapped__instance.measureOverride(context, availableSize) + $3?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ArrangeOverride: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let context: WinUI.VirtualizingLayoutContext? = .from(abi: ComPtr($1)) + let finalSize: WindowsFoundation.Size = .from(abi: $2) + let result = try __unwrapped__instance.arrangeOverride(context, finalSize) + $3?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnItemsChangedCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let context: WinUI.VirtualizingLayoutContext? = .from(abi: ComPtr($1)) + let source: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + let args: WinUI.NotifyCollectionChangedEventArgs? = .from(abi: ComPtr($3)) + try __unwrapped__instance.onItemsChangedCore(context, source, args) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IVirtualizingLayoutContextOverrides2Wrapper = UnsealedWinRTClassWrapper + internal static var IVirtualizingLayoutContextOverrides2VTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2Vtbl = .init( + QueryInterface: { IVirtualizingLayoutContextOverrides2Wrapper.queryInterface($0, $1, $2) }, + AddRef: { IVirtualizingLayoutContextOverrides2Wrapper.addRef($0) }, + Release: { IVirtualizingLayoutContextOverrides2Wrapper.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_Xaml_Controls.IVirtualizingLayoutContextOverrides2Wrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverridesWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IVirtualizingLayoutContextOverrides2Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + VisibleRectCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverrides2Wrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.visibleRectCore() + $1?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IVirtualizingLayoutContextOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IVirtualizingLayoutContextOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverridesVtbl = .init( + QueryInterface: { IVirtualizingLayoutContextOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IVirtualizingLayoutContextOverridesWrapper.addRef($0) }, + Release: { IVirtualizingLayoutContextOverridesWrapper.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_Xaml_Controls.IVirtualizingLayoutContextOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2Wrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + ItemCountCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.itemCountCore() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetItemAtCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: Int32 = $1 + let result = try __unwrapped__instance.getItemAtCore(index) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RealizationRectCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.realizationRectCore() + $1?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetOrCreateElementAtCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: Int32 = $1 + let options: WinUI.ElementRealizationOptions = $2 + let result = try __unwrapped__instance.getOrCreateElementAtCore(index, options) + result?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RecycleElementCore: { + do { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let element: WinUI.UIElement? = .from(abi: ComPtr($1)) + try __unwrapped__instance.recycleElementCore(element) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + get_RecommendedAnchorIndexCore: { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.recommendedAnchorIndexCore + $1?.initialize(to: value) + return S_OK + }, + + get_LayoutOriginCore: { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.layoutOriginCore + $1?.initialize(to: .from(swift: value)) + return S_OK + }, + + put_LayoutOriginCore: { + guard let __unwrapped__instance = IVirtualizingLayoutContextOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WindowsFoundation.Point = .from(abi: $1) + __unwrapped__instance.layoutOriginCore = value + return S_OK + } + ) +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IAppBarOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IContentPresenterOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IControlOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ILayoutOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IPageOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2 { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2VTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +// MARK - ContextMenuOpeningEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class ContextMenuOpeningEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ContextMenuEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ContextMenuOpeningEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandlerBridge> + internal static var ContextMenuOpeningEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandlerVtbl = .init( + QueryInterface: { ContextMenuOpeningEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ContextMenuOpeningEventHandlerWrapper.addRef($0) }, + Release: { ContextMenuOpeningEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ContextMenuOpeningEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ContextMenuEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - DragItemsStartingEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class DragItemsStartingEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.DragItemsStartingEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias DragItemsStartingEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.DragItemsStartingEventHandlerBridge> + internal static var DragItemsStartingEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandlerVtbl = .init( + QueryInterface: { DragItemsStartingEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DragItemsStartingEventHandlerWrapper.addRef($0) }, + Release: { DragItemsStartingEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DragItemsStartingEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.DragItemsStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.DragItemsStartingEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ItemClickEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class ItemClickEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ItemClickEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ItemClickEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.ItemClickEventHandlerBridge> + internal static var ItemClickEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandlerVtbl = .init( + QueryInterface: { ItemClickEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ItemClickEventHandlerWrapper.addRef($0) }, + Release: { ItemClickEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ItemClickEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ItemClickEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ItemClickEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - SelectionChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class SelectionChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.SelectionChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias SelectionChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.SelectionChangedEventHandlerBridge> + internal static var SelectionChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandlerVtbl = .init( + QueryInterface: { SelectionChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { SelectionChangedEventHandlerWrapper.addRef($0) }, + Release: { SelectionChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = SelectionChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.SelectionChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.SelectionChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - SemanticZoomViewChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class SemanticZoomViewChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.SemanticZoomViewChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias SemanticZoomViewChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.SemanticZoomViewChangedEventHandlerBridge> + internal static var SemanticZoomViewChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandlerVtbl = .init( + QueryInterface: { SemanticZoomViewChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { SemanticZoomViewChangedEventHandlerWrapper.addRef($0) }, + Release: { SemanticZoomViewChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = SemanticZoomViewChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.SemanticZoomViewChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.SemanticZoomViewChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - TextChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class TextChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.TextChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias TextChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.TextChangedEventHandlerBridge> + internal static var TextChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandlerVtbl = .init( + QueryInterface: { TextChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { TextChangedEventHandlerWrapper.addRef($0) }, + Release: { TextChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = TextChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.TextChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.TextChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - TextControlPasteEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls { + public class TextControlPasteEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.TextControlPasteEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias TextControlPasteEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls.TextControlPasteEventHandlerBridge> + internal static var TextControlPasteEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandlerVtbl = .init( + QueryInterface: { TextControlPasteEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { TextControlPasteEventHandlerWrapper.addRef($0) }, + Release: { TextControlPasteEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = TextControlPasteEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.TextControlPasteEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.TextControlPasteEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+Impl.swift new file mode 100644 index 0000000..5266c1e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls+Impl.swift @@ -0,0 +1,364 @@ +// 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_Xaml_Controls { + public enum IInsertionPanelBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInsertionPanel + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanel + public typealias SwiftProjection = AnyIInsertionPanel + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IInsertionPanelImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IInsertionPanelVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IInsertionPanelImpl: IInsertionPanel, WinRTAbiImpl { + fileprivate typealias Bridge = IInsertionPanelBridge + 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.xaml.controls.iinsertionpanel.getinsertionindexes) + fileprivate func getInsertionIndexes(_ position: WindowsFoundation.Point, _ first: inout Int32, _ second: inout Int32) throws { + try _default.GetInsertionIndexesImpl(position, &first, &second) + } + + } + + public enum IItemContainerMappingBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerMapping + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemContainerMapping + public typealias SwiftProjection = AnyIItemContainerMapping + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IItemContainerMappingImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IItemContainerMappingVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IItemContainerMappingImpl: IItemContainerMapping, WinRTAbiImpl { + fileprivate typealias Bridge = IItemContainerMappingBridge + 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.xaml.controls.iitemcontainermapping.itemfromcontainer) + fileprivate func itemFromContainer(_ container: WinUI.DependencyObject!) throws -> Any! { + try _default.ItemFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.containerfromitem) + fileprivate func containerFromItem(_ item: Any!) throws -> WinUI.DependencyObject! { + try _default.ContainerFromItemImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.indexfromcontainer) + fileprivate func indexFromContainer(_ container: WinUI.DependencyObject!) throws -> Int32 { + try _default.IndexFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.containerfromindex) + fileprivate func containerFromIndex(_ index: Int32) throws -> WinUI.DependencyObject! { + try _default.ContainerFromIndexImpl(index) + } + + } + + public enum IKeyIndexMappingBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIKeyIndexMapping + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IKeyIndexMapping + public typealias SwiftProjection = AnyIKeyIndexMapping + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IKeyIndexMappingImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IKeyIndexMappingVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IKeyIndexMappingImpl: IKeyIndexMapping, WinRTAbiImpl { + fileprivate typealias Bridge = IKeyIndexMappingBridge + 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.xaml.controls.ikeyindexmapping.keyfromindex) + fileprivate func keyFromIndex(_ index: Int32) throws -> String { + try _default.KeyFromIndexImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.ikeyindexmapping.indexfromkey) + fileprivate func indexFromKey(_ key: String) throws -> Int32 { + try _default.IndexFromKeyImpl(key) + } + + } + + public enum INavigateBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CINavigate + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.INavigate + public typealias SwiftProjection = AnyINavigate + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return INavigateImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.INavigateVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class INavigateImpl: INavigate, WinRTAbiImpl { + fileprivate typealias Bridge = INavigateBridge + 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.xaml.controls.inavigate.navigate) + fileprivate func navigate(_ sourcePageType: WinUI.TypeName) throws -> Bool { + try _default.NavigateImpl(sourcePageType) + } + + } + + public enum IScrollAnchorProviderBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollAnchorProvider + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProvider + public typealias SwiftProjection = AnyIScrollAnchorProvider + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IScrollAnchorProviderImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProviderVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IScrollAnchorProviderImpl: IScrollAnchorProvider, WinRTAbiImpl { + fileprivate typealias Bridge = IScrollAnchorProviderBridge + 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.xaml.controls.iscrollanchorprovider.registeranchorcandidate) + fileprivate func registerAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _default.RegisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider.unregisteranchorcandidate) + fileprivate func unregisterAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _default.UnregisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider.currentanchor) + fileprivate var currentAnchor : WinUI.UIElement! { + get { try! _default.get_CurrentAnchorImpl() } + } + + } + + public enum ISemanticZoomInformationBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomInformation + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformation + public typealias SwiftProjection = AnyISemanticZoomInformation + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ISemanticZoomInformationImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ISemanticZoomInformationImpl: ISemanticZoomInformation, WinRTAbiImpl { + fileprivate typealias Bridge = ISemanticZoomInformationBridge + 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.xaml.controls.isemanticzoominformation.initializeviewchange) + fileprivate func initializeViewChange() throws { + try _default.InitializeViewChangeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchange) + fileprivate func completeViewChange() throws { + try _default.CompleteViewChangeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.makevisible) + fileprivate func makeVisible(_ item: SemanticZoomLocation!) throws { + try _default.MakeVisibleImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.startviewchangefrom) + fileprivate func startViewChangeFrom(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _default.StartViewChangeFromImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.startviewchangeto) + fileprivate func startViewChangeTo(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _default.StartViewChangeToImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchangefrom) + fileprivate func completeViewChangeFrom(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _default.CompleteViewChangeFromImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchangeto) + fileprivate func completeViewChangeTo(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _default.CompleteViewChangeToImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.isactiveview) + fileprivate var isActiveView : Bool { + get { try! _default.get_IsActiveViewImpl() } + set { try! _default.put_IsActiveViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.iszoomedinview) + fileprivate var isZoomedInView : Bool { + get { try! _default.get_IsZoomedInViewImpl() } + set { try! _default.put_IsZoomedInViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.semanticzoomowner) + fileprivate var semanticZoomOwner : SemanticZoom! { + get { try! _default.get_SemanticZoomOwnerImpl() } + set { try! _default.put_SemanticZoomOwnerImpl(newValue) } + } + + } + + public class ContextMenuOpeningEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ContextMenuOpeningEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuOpeningEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ContextMenuOpeningEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class DragItemsStartingEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DragItemsStartingEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.DragItemsStartingEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ItemClickEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ItemClickEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ItemClickEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class SelectionChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = SelectionChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.SelectionChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class SemanticZoomViewChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = SemanticZoomViewChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.SemanticZoomViewChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class TextChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = TextChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.TextChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class TextControlPasteEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = TextControlPasteEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.TextControlPasteEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+ABI.swift new file mode 100644 index 0000000..6cf1b12 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+ABI.swift @@ -0,0 +1,4191 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0xFE60E73F, Data2: 0x9A52, Data3: 0x5E0A, Data4: ( 0xB7,0x38,0x42,0x6F,0x97,0xD0,0x97,0x68 ))// FE60E73F-9A52-5E0A-B738-426F97D09768 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase: WindowsFoundation.IID { + .init(Data1: 0x65714269, Data2: 0x2473, Data3: 0x5327, Data4: ( 0xA6,0x52,0x0E,0xA6,0xBC,0xE7,0xF4,0x03 ))// 65714269-2473-5327-A652-0EA6BCE7F403 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x21251AA9, Data2: 0x6FD1, Data3: 0x5E51, Data4: ( 0xAB,0x3B,0xE6,0xFC,0xAF,0x33,0x95,0xED ))// 21251AA9-6FD1-5E51-AB3B-E6FCAF3395ED +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics: WindowsFoundation.IID { + .init(Data1: 0xDBE812F6, Data2: 0xADF8, Data3: 0x51D3, Data4: ( 0x81,0x37,0xA8,0xFB,0xF6,0x44,0x5B,0x3C ))// DBE812F6-ADF8-51D3-8137-A8FBF6445B3C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0xF2DC5E7F, Data2: 0x8D3F, Data3: 0x5C20, Data4: ( 0xB3,0x56,0xAF,0x6F,0x1F,0xF8,0x24,0x2A ))// F2DC5E7F-8D3F-5C20-B356-AF6F1FF8242A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase: WindowsFoundation.IID { + .init(Data1: 0xBB6603BF, Data2: 0x744D, Data3: 0x5C31, Data4: ( 0xA8,0x7D,0x74,0x43,0x94,0x63,0x4D,0x77 ))// BB6603BF-744D-5C31-A87D-744394634D77 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase2: WindowsFoundation.IID { + .init(Data1: 0x54592F97, Data2: 0xE40E, Data3: 0x5CAD, Data4: ( 0x86,0x4B,0x32,0x30,0x7D,0x04,0x70,0x20 ))// 54592F97-E40E-5CAD-864B-32307D047020 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x7CB280B4, Data2: 0x1CCA, Data3: 0x5A5A, Data4: ( 0x8E,0xA4,0x19,0x1A,0x2B,0xBC,0x8B,0x32 ))// 7CB280B4-1CCA-5A5A-8EA4-191A2BBC8B32 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x006D738F, Data2: 0x7C91, Data3: 0x5EF3, Data4: ( 0x8A,0x80,0xA5,0x48,0x10,0x8D,0xAB,0x8B ))// 006D738F-7C91-5EF3-8A80-A548108DAB8B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides: WindowsFoundation.IID { + .init(Data1: 0x5BB19ED8, Data2: 0x08DE, Data3: 0x5EEC, Data4: ( 0x91,0xCB,0x5F,0xC5,0x99,0x74,0xE8,0x94 ))// 5BB19ED8-08DE-5EEC-91CB-5FC59974E894 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics: WindowsFoundation.IID { + .init(Data1: 0x63EE628E, Data2: 0xD2E3, Data3: 0x5515, Data4: ( 0xAE,0xA4,0xE4,0x61,0x08,0x8C,0x0C,0x4E ))// 63EE628E-D2E3-5515-AEA4-E461088C0C4E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics2: WindowsFoundation.IID { + .init(Data1: 0x2403CD2C, Data2: 0xA6B8, Data3: 0x5DC2, Data4: ( 0xBE,0x3B,0x2A,0x4B,0xDD,0x07,0x2E,0xF1 ))// 2403CD2C-A6B8-5DC2-BE3B-2A4BDD072EF1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions: WindowsFoundation.IID { + .init(Data1: 0x30774A93, Data2: 0x2803, Data3: 0x50D3, Data4: ( 0xB4,0x06,0x90,0x4A,0xEC,0x3E,0x17,0x5D ))// 30774A93-2803-50D3-B406-904AEC3E175D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptionsFactory: WindowsFoundation.IID { + .init(Data1: 0x17426D30, Data2: 0x70D9, Data3: 0x54D7, Data4: ( 0xBD,0x39,0xE7,0xC4,0xC9,0x40,0xC0,0xF4 ))// 17426D30-70D9-54D7-BD39-E7C4C940C0F4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB2BA1610, Data2: 0x0E96, Data3: 0x538A, Data4: ( 0x97,0x8F,0xEC,0x0B,0x37,0x19,0x32,0x28 ))// B2BA1610-0E96-538A-978F-EC0B37193228 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIListViewItemTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x6E302714, Data2: 0x2955, Data3: 0x5961, Data4: ( 0x94,0xED,0x5D,0x0C,0x0C,0x1D,0x0B,0x07 ))// 6E302714-2955-5961-94ED-5D0C0C1D0B07 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIMenuFlyoutItemTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0xFA7B8B1F, Data2: 0x020D, Data3: 0x58EC, Data4: ( 0x86,0x58,0xF2,0xCE,0x97,0x31,0x00,0x51 ))// FA7B8B1F-020D-58EC-8658-F2CE97310051 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup: WindowsFoundation.IID { + .init(Data1: 0x4E3AB19D, Data2: 0x2F95, Data3: 0x579C, Data4: ( 0x95,0x35,0x90,0x6C,0x58,0x62,0x94,0x37 ))// 4E3AB19D-2F95-579C-9535-906C58629437 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2: WindowsFoundation.IID { + .init(Data1: 0xEA9C4F43, Data2: 0xA937, Data3: 0x53D5, Data4: ( 0xB6,0x65,0x66,0x40,0xAD,0x7E,0xC2,0xF4 ))// EA9C4F43-A937-53D5-B665-6640AD7EC2F4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup3: WindowsFoundation.IID { + .init(Data1: 0x03736C25, Data2: 0xDD36, Data3: 0x5344, Data4: ( 0x9A,0x8D,0x3F,0x4E,0x8E,0x61,0x6C,0xBA ))// 03736C25-DD36-5344-9A8D-3F4E8E616CBA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics: WindowsFoundation.IID { + .init(Data1: 0xC1ACFAA4, Data2: 0x209A, Data3: 0x5FB8, Data4: ( 0x89,0x34,0x88,0x25,0x97,0x67,0x69,0xB8 ))// C1ACFAA4-209A-5FB8-8934-8825976769B8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics2: WindowsFoundation.IID { + .init(Data1: 0x79B3285A, Data2: 0x1330, Data3: 0x5CFD, Data4: ( 0xAF,0x2F,0x88,0xEF,0xA0,0x07,0x70,0xA9 ))// 79B3285A-1330-5CFD-AF2F-88EFA00770A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics3: WindowsFoundation.IID { + .init(Data1: 0x2409656D, Data2: 0x84F9, Data3: 0x5979, Data4: ( 0x8A,0xDF,0xF3,0xDB,0x71,0x53,0x0B,0x22 ))// 2409656D-84F9-5979-8ADF-F3DB71530B22 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase: WindowsFoundation.IID { + .init(Data1: 0x540D6D61, Data2: 0x8FAC, Data3: 0x5D5C, Data4: ( 0xB5,0xB0,0xE1,0x72,0xA7,0xDD,0xE1,0x03 ))// 540D6D61-8FAC-5D5C-B5B0-E172A7DDE103 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x41C205E2, Data2: 0x4422, Data3: 0x5DCA, Data4: ( 0x9B,0x49,0xE3,0x12,0x10,0xEA,0x39,0x6C ))// 41C205E2-4422-5DCA-9B49-E31210EA396C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides: WindowsFoundation.IID { + .init(Data1: 0xB3DEB76F, Data2: 0x68A6, Data3: 0x5C14, Data4: ( 0xA8,0x24,0xAB,0x58,0xE8,0x77,0x47,0x45 ))// B3DEB76F-68A6-5C14-A824-AB58E8774745 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics: WindowsFoundation.IID { + .init(Data1: 0x4AED5E49, Data2: 0x64EC, Data3: 0x56F1, Data4: ( 0x87,0x4D,0xB8,0xC0,0xF8,0x3F,0x9A,0xC8 ))// 4AED5E49-64EC-56F1-874D-B8C0F83F9AC8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB0181692, Data2: 0x9578, Data3: 0x51C7, Data4: ( 0x9D,0x1C,0xAD,0xFC,0xF8,0x94,0x5A,0xA9 ))// B0181692-9578-51C7-9D1C-ADFCF8945AA9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController: WindowsFoundation.IID { + .init(Data1: 0x54396786, Data2: 0x1726, Data3: 0x53D6, Data4: ( 0x97,0xA3,0x40,0xAF,0x08,0x38,0x31,0x4C ))// 54396786-1726-53D6-97A3-40AF0838314C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x317BBC1A, Data2: 0x0CF7, Data3: 0x5815, Data4: ( 0xA8,0xA7,0xBD,0x7E,0x6E,0xEF,0x96,0x6A ))// 317BBC1A-0CF7-5815-A8A7-BD7E6EEF966A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x9221D193, Data2: 0x6F82, Data3: 0x5E21, Data4: ( 0xAA,0xCC,0x0B,0x14,0x60,0x81,0x8A,0xB5 ))// 9221D193-6F82-5E21-AACC-0B1460818AB5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBEEE064E, Data2: 0x1D4D, Data3: 0x5A1A, Data4: ( 0x87,0x81,0xAC,0xF1,0x58,0x7A,0x5D,0x6A ))// BEEE064E-1D4D-5A1A-8781-ACF1587A5D6A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0xC3B0A6C1, Data2: 0x6732, Data3: 0x5832, Data4: ( 0xBE,0x50,0x4E,0xCA,0xDE,0x58,0x5C,0xBC ))// C3B0A6C1-6732-5832-BE50-4ECADE585CBC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo: WindowsFoundation.IID { + .init(Data1: 0x53D5B301, Data2: 0x9AAB, Data3: 0x59BC, Data4: ( 0x92,0xCD,0x42,0xCF,0x21,0xAB,0xD5,0x90 ))// 53D5B301-9AAB-59BC-92CD-42CF21ABD590 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE7F305FA, Data2: 0x4073, Data3: 0x5D88, Data4: ( 0x8B,0xF1,0xAE,0x4E,0xCB,0x92,0x08,0xBF ))// E7F305FA-4073-5D88-8BF1-AE4ECB9208BF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x7ECF01A7, Data2: 0xEF3F, Data3: 0x5AF9, Data4: ( 0x93,0xB4,0x38,0xBC,0x1B,0xAF,0xD3,0x35 ))// 7ECF01A7-EF3F-5AF9-93B4-38BC1BAFD335 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x73F16B99, Data2: 0x7310, Data3: 0x5C73, Data4: ( 0x87,0x2B,0x27,0x6E,0x5A,0x9D,0x49,0x13 ))// 73F16B99-7310-5C73-872B-276E5A9D4913 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x01675DC4, Data2: 0x1074, Data3: 0x54E8, Data4: ( 0xBE,0xBB,0x66,0xB0,0x3A,0x33,0xDA,0x0D ))// 01675DC4-1074-54E8-BEBB-66B03A33DA0D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter: WindowsFoundation.IID { + .init(Data1: 0x424B8AFD, Data2: 0xF7AA, Data3: 0x5E5B, Data4: ( 0x9D,0x0B,0x5F,0x0E,0xA4,0xE1,0xA5,0x6E ))// 424B8AFD-F7AA-5E5B-9D0B-5F0EA4E1A56E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterFactory: WindowsFoundation.IID { + .init(Data1: 0x9F5CDC57, Data2: 0xD229, Data3: 0x52B2, Data4: ( 0xAE,0xE4,0x37,0xC4,0x96,0x76,0x4E,0xA3 ))// 9F5CDC57-D229-52B2-AEE4-37C496764EA3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics: WindowsFoundation.IID { + .init(Data1: 0xE27BA947, Data2: 0xF8A5, Data3: 0x5869, Data4: ( 0x9A,0x71,0xCD,0x51,0x4D,0x41,0xC6,0x23 ))// E27BA947-F8A5-5869-9A71-CD514D41C623 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x45D7319D, Data2: 0xC9EB, Data3: 0x5109, Data4: ( 0x96,0x68,0xFF,0x3F,0xC6,0xCC,0xDF,0x11 ))// 45D7319D-C9EB-5109-9668-FF3FC6CCDF11 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x3FA2E552, Data2: 0x1A45, Data3: 0x5691, Data4: ( 0x99,0xDC,0x64,0x00,0x08,0x7C,0xBB,0x38 ))// 3FA2E552-1A45-5691-99DC-6400087CBB38 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo: WindowsFoundation.IID { + .init(Data1: 0xD3EA6E09, Data2: 0xECF7, Data3: 0x51A8, Data4: ( 0xBD,0x54,0xFC,0x84,0xB9,0x65,0x37,0x66 ))// D3EA6E09-ECF7-51A8-BD54-FC84B9653766 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector: WindowsFoundation.IID { + .init(Data1: 0x8F7E2159, Data2: 0xE61D, Data3: 0x576F, Data4: ( 0x84,0x76,0xF8,0x3F,0xDE,0x3D,0x68,0x9E ))// 8F7E2159-E61D-576F-8476-F83FDE3D689E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorFactory: WindowsFoundation.IID { + .init(Data1: 0x21A42024, Data2: 0xAF07, Data3: 0x58F9, Data4: ( 0x87,0x89,0x84,0x8D,0x33,0x24,0xD9,0x01 ))// 21A42024-AF07-58F9-8789-848D3324D901 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem: WindowsFoundation.IID { + .init(Data1: 0x5772C4DE, Data2: 0x60EA, Data3: 0x5492, Data4: ( 0x8C,0x5E,0xB3,0x32,0x3D,0x5A,0x3C,0xA6 ))// 5772C4DE-60EA-5492-8C5E-B3323D5A3CA6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemFactory: WindowsFoundation.IID { + .init(Data1: 0x078039F5, Data2: 0x76ED, Data3: 0x5299, Data4: ( 0x97,0x15,0xFC,0x8C,0x58,0x17,0x35,0x60 ))// 078039F5-76ED-5299-9715-FC8C58173560 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemStatics: WindowsFoundation.IID { + .init(Data1: 0x4B201A54, Data2: 0xA414, Data3: 0x5E79, Data4: ( 0x9B,0x6B,0x3D,0xA9,0xDE,0x44,0x2A,0x35 ))// 4B201A54-A414-5E79-9B6B-3DA9DE442A35 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics: WindowsFoundation.IID { + .init(Data1: 0x569B2234, Data2: 0x1CEB, Data3: 0x516E, Data4: ( 0xB6,0x4E,0x0D,0x47,0x94,0x52,0xE2,0x79 ))// 569B2234-1CEB-516E-B64E-0D479452E279 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x14ED1089, Data2: 0xFB97, Data3: 0x5211, Data4: ( 0x8C,0x45,0xC3,0x52,0xCD,0x8B,0x96,0xA1 ))// 14ED1089-FB97-5211-8C45-C352CD8B96A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x50266508, Data2: 0x15F8, Data3: 0x530A, Data4: ( 0xA2,0x13,0xE9,0x76,0xE0,0x4E,0x67,0x0B ))// 50266508-15F8-530A-A213-E976E04E670B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x44D6F6F7, Data2: 0x0058, Data3: 0x5EAC, Data4: ( 0x88,0x37,0xF7,0xF1,0x6D,0x96,0x1F,0x7C ))// 44D6F6F7-0058-5EAC-8837-F7F16D961F7C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton: WindowsFoundation.IID { + .init(Data1: 0x686FBAA4, Data2: 0xC866, Data3: 0x568B, Data4: ( 0x8F,0x75,0x48,0x1D,0x8D,0x54,0x52,0x91 ))// 686FBAA4-C866-568B-8F75-481D8D545291 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonFactory: WindowsFoundation.IID { + .init(Data1: 0x519511BB, Data2: 0xD35B, Data3: 0x5E2D, Data4: ( 0x96,0x6C,0x83,0x69,0x40,0x5A,0x44,0x08 ))// 519511BB-D35B-5E2D-966C-8369405A4408 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides: WindowsFoundation.IID { + .init(Data1: 0xEE55F85D, Data2: 0x9061, Data3: 0x5D18, Data4: ( 0xB3,0x1A,0x90,0xBC,0x56,0x25,0xCF,0xE9 ))// EE55F85D-9061-5D18-B31A-90BC5625CFE9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonStatics: WindowsFoundation.IID { + .init(Data1: 0x4B8397E3, Data2: 0x76FD, Data3: 0x59DF, Data4: ( 0x82,0x4F,0x40,0xAE,0x33,0x9F,0xB0,0x0B ))// 4B8397E3-76FD-59DF-824F-40AE339FB00B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x8F9640A3, Data2: 0xAA4E, Data3: 0x52DA, Data4: ( 0xA2,0xC6,0x91,0x67,0xC8,0x00,0xBA,0xBA ))// 8F9640A3-AA4E-52DA-A2C6-9167C800BABA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings: WindowsFoundation.IID { + .init(Data1: 0x4F725950, Data2: 0xFF64, Data3: 0x5CF1, Data4: ( 0x9E,0x86,0x90,0x11,0xFB,0x10,0xE8,0x8E ))// 4F725950-FF64-5CF1-9E86-9011FB10E88E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0xC6D08756, Data2: 0x0860, Data3: 0x5C2D, Data4: ( 0xAB,0xEC,0x6E,0xB4,0xAA,0x4B,0x53,0xD7 ))// C6D08756-0860-5C2D-ABEC-6EB4AA4B53D7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x2C689EEA, Data2: 0xB6CF, Data3: 0x5024, Data4: ( 0x84,0x7B,0x58,0x93,0x55,0xD5,0xA2,0xFA ))// 2C689EEA-B6CF-5024-847B-589355D5A2FA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x8E15E39E, Data2: 0x23F7, Data3: 0x5FCF, Data4: ( 0xB0,0x4B,0xD1,0xB7,0x89,0x1D,0xCC,0xC4 ))// 8E15E39E-23F7-5FCF-B04B-D1B7891DCCC4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x23F0E209, Data2: 0x9455, Data3: 0x54CB, Data4: ( 0xB8,0xBC,0x0B,0x49,0x55,0x3C,0x7D,0xCC ))// 23F0E209-9455-54CB-B8BC-0B49553C7DCC +} + +public enum __ABI_Microsoft_UI_Xaml_Controls_Primitives { + public class IAppBarTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings } + + internal func get_ClipRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClipRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CompactVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompactVerticalDelta(pThis, &value)) + } + return value + } + + internal func get_CompactRootMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompactRootMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_MinimalVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinimalVerticalDelta(pThis, &value)) + } + return value + } + + internal func get_MinimalRootMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinimalRootMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HiddenVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HiddenVerticalDelta(pThis, &value)) + } + return value + } + + internal func get_HiddenRootMarginImpl() throws -> WinUI.Thickness { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CThickness = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HiddenRootMargin(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NegativeCompactVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeCompactVerticalDelta(pThis, &value)) + } + return value + } + + internal func get_NegativeMinimalVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeMinimalVerticalDelta(pThis, &value)) + } + return value + } + + internal func get_NegativeHiddenVerticalDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeHiddenVerticalDelta(pThis, &value)) + } + return value + } + + } + + public class IButtonBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase } + + internal func get_ClickModeImpl() throws -> WinUI.ClickMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CClickMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClickMode(pThis, &value)) + } + return value + } + + internal func put_ClickModeImpl(_ value: WinUI.ClickMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClickMode(pThis, value)) + } + } + + internal func get_IsPointerOverImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPointerOver(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsPressedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPressed(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CommandImpl() throws -> WinUI.AnyICommand? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Command(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.unwrapFrom(abi: value) + } + + internal func put_CommandImpl(_ value: WinUI.AnyICommand?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Command(pThis, _value)) + } + } + + internal func get_CommandParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_CommandParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CommandParameter(pThis, _value)) + } + } + + internal func add_ClickImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Click(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Click(pThis, token)) + } + } + + } + + public class IButtonBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IButtonBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IButtonBase(value!) + } + + } + + public class IButtonBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics } + + internal func get_ClickModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClickModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPointerOverPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPointerOverProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPressedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPressedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CommandPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CommandParameterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CommandParameterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IComboBoxTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings } + + internal func get_DropDownOpenedHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropDownOpenedHeight(pThis, &value)) + } + return value + } + + internal func get_DropDownClosedHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropDownClosedHeight(pThis, &value)) + } + return value + } + + internal func get_DropDownOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropDownOffset(pThis, &value)) + } + return value + } + + internal func get_SelectedItemDirectionImpl() throws -> WinUI.AnimationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItemDirection(pThis, &value)) + } + return value + } + + internal func get_DropDownContentMinWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DropDownContentMinWidth(pThis, &value)) + } + return value + } + + } + + public class IFlyoutBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase } + + internal func get_PlacementImpl() throws -> WinUI.FlyoutPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Placement(pThis, &value)) + } + return value + } + + internal func put_PlacementImpl(_ value: WinUI.FlyoutPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Placement(pThis, value)) + } + } + + internal func get_TargetImpl() throws -> WinUI.FrameworkElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Target(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusOnInteractionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteraction(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowFocusOnInteractionImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusOnInteraction(pThis, .init(from: value))) + } + } + + internal func get_LightDismissOverlayModeImpl() throws -> WinUI.LightDismissOverlayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayMode(pThis, &value)) + } + return value + } + + internal func put_LightDismissOverlayModeImpl(_ value: WinUI.LightDismissOverlayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightDismissOverlayMode(pThis, value)) + } + } + + internal func get_AllowFocusWhenDisabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowFocusWhenDisabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusWhenDisabled(pThis, .init(from: value))) + } + } + + internal func get_ShowModeImpl() throws -> WinUI.FlyoutShowMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowMode(pThis, &value)) + } + return value + } + + internal func put_ShowModeImpl(_ value: WinUI.FlyoutShowMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowMode(pThis, value)) + } + } + + internal func get_InputDevicePrefersPrimaryCommandsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputDevicePrefersPrimaryCommands(pThis, &value)) + } + return .init(from: value) + } + + internal func get_AreOpenCloseAnimationsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreOpenCloseAnimationsEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AreOpenCloseAnimationsEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AreOpenCloseAnimationsEnabled(pThis, .init(from: value))) + } + } + + internal func get_ShouldConstrainToRootBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShouldConstrainToRootBoundsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShouldConstrainToRootBounds(pThis, .init(from: value))) + } + } + + internal func get_IsConstrainedToRootBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConstrainedToRootBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func get_ElementSoundModeImpl() throws -> WinUI.ElementSoundMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundMode(pThis, &value)) + } + return value + } + + internal func put_ElementSoundModeImpl(_ value: WinUI.ElementSoundMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ElementSoundMode(pThis, value)) + } + } + + internal func get_OverlayInputPassThroughElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverlayInputPassThroughElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OverlayInputPassThroughElementImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OverlayInputPassThroughElement(pThis, RawPointer(value))) + } + } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func get_XamlRootImpl() throws -> WinUI.XamlRoot? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XamlRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XamlRootImpl(_ value: WinUI.XamlRoot?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XamlRoot(pThis, RawPointer(value))) + } + } + + internal func add_OpenedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + internal func add_OpeningImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opening(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpeningImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opening(pThis, token)) + } + } + + internal func add_ClosingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.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_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closing(pThis, token)) + } + } + + internal func ShowAtImpl(_ placementTarget: WinUI.FrameworkElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAt(pThis, RawPointer(placementTarget))) + } + } + + internal func ShowAtWithOptionsImpl(_ placementTarget: WinUI.DependencyObject?, _ showOptions: WinUI.FlyoutShowOptions?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAtWithOptions(pThis, RawPointer(placementTarget), RawPointer(showOptions))) + } + } + + internal func HideImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Hide(pThis)) + } + } + + internal func TryInvokeKeyboardAcceleratorImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryInvokeKeyboardAccelerator(pThis, RawPointer(args))) + } + } + + } + + public class IFlyoutBase2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase2 } + + internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SystemBackdropImpl(_ value: WinUI.SystemBackdrop?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value))) + } + } + + } + + public class IFlyoutBaseClosingEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs.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_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + } + + public class IFlyoutBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlyoutBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlyoutBase(value!) + } + + } + + public class IFlyoutBaseOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides } + + internal func CreatePresenterImpl() throws -> WinUI.Control? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreatePresenter(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func OnProcessKeyboardAcceleratorsImpl(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnProcessKeyboardAccelerators(pThis, RawPointer(args))) + } + } + + } + + public class IFlyoutBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics } + + internal func get_TargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusOnInteractionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteractionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusWhenDisabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusWhenDisabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShowModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_InputDevicePrefersPrimaryCommandsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputDevicePrefersPrimaryCommandsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AreOpenCloseAnimationsEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreOpenCloseAnimationsEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShouldConstrainToRootBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementSoundModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OverlayInputPassThroughElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OverlayInputPassThroughElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AttachedFlyoutPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AttachedFlyoutProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAttachedFlyoutImpl(_ element: WinUI.FrameworkElement?) throws -> WinUI.FlyoutBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAttachedFlyout(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetAttachedFlyoutImpl(_ element: WinUI.FrameworkElement?, _ value: WinUI.FlyoutBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAttachedFlyout(pThis, RawPointer(element), RawPointer(value))) + } + } + + internal func ShowAttachedFlyoutImpl(_ flyoutOwner: WinUI.FrameworkElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ShowAttachedFlyout(pThis, RawPointer(flyoutOwner))) + } + } + + } + + public class IFlyoutBaseStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics2 } + + internal func get_SystemBackdropPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdropProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFlyoutShowOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: value) + } + + internal func put_PositionImpl(_ value: WindowsFoundation.Point?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Position(pThis, _value)) + } + } + + internal func get_ExclusionRectImpl() throws -> WindowsFoundation.Rect? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExclusionRect(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper.unwrapFrom(abi: value) + } + + internal func put_ExclusionRectImpl(_ value: WindowsFoundation.Rect?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CRectWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExclusionRect(pThis, _value)) + } + } + + internal func get_ShowModeImpl() throws -> WinUI.FlyoutShowMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShowMode(pThis, &value)) + } + return value + } + + internal func put_ShowModeImpl(_ value: WinUI.FlyoutShowMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShowMode(pThis, value)) + } + } + + internal func get_PlacementImpl() throws -> WinUI.FlyoutPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Placement(pThis, &value)) + } + return value + } + + internal func put_PlacementImpl(_ value: WinUI.FlyoutPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Placement(pThis, value)) + } + } + + } + + public class IFlyoutShowOptionsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptionsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFlyoutShowOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFlyoutShowOptions(value!) + } + + } + + public class IItemsChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs } + + internal func get_ActionImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Action(pThis, &value)) + } + return value + } + + internal func get_PositionImpl() throws -> WinUI.GeneratorPosition { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_OldPositionImpl() throws -> WinUI.GeneratorPosition { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldPosition(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ItemCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemCount(pThis, &value)) + } + return value + } + + internal func get_ItemUICountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemUICount(pThis, &value)) + } + return value + } + + } + + public class IListViewItemTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIListViewItemTemplateSettings } + + internal func get_DragItemsCountImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIListViewItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DragItemsCount(pThis, &value)) + } + return value + } + + } + + public class IMenuFlyoutItemTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIMenuFlyoutItemTemplateSettings } + + internal func get_KeyboardAcceleratorTextMinWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIMenuFlyoutItemTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAcceleratorTextMinWidth(pThis, &value)) + } + return value + } + + } + + public class IPopup: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup } + + internal func get_ChildImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Child(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ChildImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Child(pThis, RawPointer(value))) + } + } + + internal func get_IsOpenImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpen(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsOpenImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsOpen(pThis, .init(from: value))) + } + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_HorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value)) + } + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func put_VerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value)) + } + } + + internal func get_ChildTransitionsImpl() throws -> WinUI.TransitionCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildTransitions(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ChildTransitionsImpl(_ value: WinUI.TransitionCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ChildTransitions(pThis, RawPointer(value))) + } + } + + internal func get_IsLightDismissEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLightDismissEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsLightDismissEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsLightDismissEnabled(pThis, .init(from: value))) + } + } + + internal func get_LightDismissOverlayModeImpl() throws -> WinUI.LightDismissOverlayMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayMode(pThis, &value)) + } + return value + } + + internal func put_LightDismissOverlayModeImpl(_ value: WinUI.LightDismissOverlayMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LightDismissOverlayMode(pThis, value)) + } + } + + internal func get_ShouldConstrainToRootBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ShouldConstrainToRootBoundsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ShouldConstrainToRootBounds(pThis, .init(from: value))) + } + } + + internal func get_IsConstrainedToRootBoundsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConstrainedToRootBounds(pThis, &value)) + } + return .init(from: value) + } + + internal func add_OpenedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + internal func add_ClosedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Closed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClosedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Closed(pThis, token)) + } + } + + } + + public class IPopup2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2 } + + internal func get_PlacementTargetImpl() throws -> WinUI.FrameworkElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PlacementTargetImpl(_ value: WinUI.FrameworkElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_PlacementTarget(pThis, RawPointer(value))) + } + } + + internal func get_DesiredPlacementImpl() throws -> WinUI.PopupPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredPlacement(pThis, &value)) + } + return value + } + + internal func put_DesiredPlacementImpl(_ value: WinUI.PopupPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredPlacement(pThis, value)) + } + } + + internal func get_ActualPlacementImpl() throws -> WinUI.PopupPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ActualPlacement(pThis, &value)) + } + return value + } + + internal func add_ActualPlacementChangedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ActualPlacementChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ActualPlacementChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ActualPlacementChanged(pThis, token)) + } + } + + } + + public class IPopup3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup3 } + + internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SystemBackdropImpl(_ value: WinUI.SystemBackdrop?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value))) + } + } + + } + + public class IPopupStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics } + + internal func get_ChildPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsOpenPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsOpenProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ChildTransitionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ChildTransitionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsLightDismissEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsLightDismissEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LightDismissOverlayModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LightDismissOverlayModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ShouldConstrainToRootBoundsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ShouldConstrainToRootBoundsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPopupStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics2 } + + internal func get_PlacementTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PlacementTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DesiredPlacementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredPlacementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPopupStatics3: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics3 } + + internal func get_SystemBackdropPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopupStatics3.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdropProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRangeBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase } + + internal func get_MinimumImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Minimum(pThis, &value)) + } + return value + } + + internal func put_MinimumImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Minimum(pThis, value)) + } + } + + internal func get_MaximumImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Maximum(pThis, &value)) + } + return value + } + + internal func put_MaximumImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Maximum(pThis, value)) + } + } + + internal func get_SmallChangeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SmallChange(pThis, &value)) + } + return value + } + + internal func put_SmallChangeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SmallChange(pThis, value)) + } + } + + internal func get_LargeChangeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LargeChange(pThis, &value)) + } + return value + } + + internal func put_LargeChangeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_LargeChange(pThis, value)) + } + } + + internal func get_ValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) + } + return value + } + + internal func put_ValueImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, value)) + } + } + + internal func add_ValueChangedImpl(_ handler: WinUI.RangeBaseValueChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.RangeBaseValueChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ValueChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ValueChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ValueChanged(pThis, token)) + } + } + + } + + public class IRangeBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRangeBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRangeBase(value!) + } + + } + + public class IRangeBaseOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides } + + internal func OnMinimumChangedImpl(_ oldMinimum: Double, _ newMinimum: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnMinimumChanged(pThis, oldMinimum, newMinimum)) + } + } + + internal func OnMaximumChangedImpl(_ oldMaximum: Double, _ newMaximum: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnMaximumChanged(pThis, oldMaximum, newMaximum)) + } + } + + internal func OnValueChangedImpl(_ oldValue: Double, _ newValue: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnValueChanged(pThis, oldValue, newValue)) + } + } + + } + + public class IRangeBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics } + + internal func get_MinimumPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinimumProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaximumPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaximumProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SmallChangePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SmallChangeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LargeChangePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LargeChangeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRangeBaseValueChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs } + + internal func get_OldValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldValue(pThis, &value)) + } + return value + } + + internal func get_NewValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewValue(pThis, &value)) + } + return value + } + + } + + public class IScrollController: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController } + + open func get_PanningInfoImpl() throws -> WinUI.AnyIScrollControllerPanningInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PanningInfo(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper.unwrapFrom(abi: value) + } + + open func get_CanScrollImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CanScroll(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsScrollingWithMouseImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsScrollingWithMouse(pThis, &value)) + } + return .init(from: value) + } + + open func SetIsScrollableImpl(_ isScrollable: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsScrollable(pThis, .init(from: isScrollable))) + } + } + + open func SetValuesImpl(_ minOffset: Double, _ maxOffset: Double, _ offset: Double, _ viewportLength: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetValues(pThis, minOffset, maxOffset, offset, viewportLength)) + } + } + + open func GetScrollAnimationImpl(_ correlationId: Int32, _ startPosition: WindowsFoundation.Vector2, _ endPosition: WindowsFoundation.Vector2, _ defaultAnimation: WinAppSDK.CompositionAnimation?) throws -> WinAppSDK.CompositionAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetScrollAnimation(pThis, correlationId, .from(swift: startPosition), .from(swift: endPosition), RawPointer(defaultAnimation), &resultAbi)) + } + } + return .from(abi: result) + } + + open func NotifyRequestedScrollCompletedImpl(_ correlationId: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NotifyRequestedScrollCompleted(pThis, correlationId)) + } + } + + open func add_CanScrollChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CanScrollChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_CanScrollChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CanScrollChanged(pThis, token)) + } + } + + open func add_IsScrollingWithMouseChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_IsScrollingWithMouseChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_IsScrollingWithMouseChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_IsScrollingWithMouseChanged(pThis, token)) + } + } + + open func add_ScrollToRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollToRequested(pThis, _handler, &token)) + } + return token + } + + open func remove_ScrollToRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollToRequested(pThis, token)) + } + } + + open func add_ScrollByRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollByRequested(pThis, _handler, &token)) + } + return token + } + + open func remove_ScrollByRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollByRequested(pThis, token)) + } + } + + open func add_AddScrollVelocityRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AddScrollVelocityRequested(pThis, _handler, &token)) + } + return token + } + + open func remove_AddScrollVelocityRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AddScrollVelocityRequested(pThis, token)) + } + } + + } + + internal static var IScrollControllerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerVtbl = .init( + QueryInterface: { IScrollControllerWrapper.queryInterface($0, $1, $2) }, + AddRef: { IScrollControllerWrapper.addRef($0) }, + Release: { IScrollControllerWrapper.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_Xaml_Controls_Primitives.IScrollControllerWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.Primitives.IScrollController").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_PanningInfo: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.panningInfo + let valueWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_CanScroll: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.canScroll + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsScrollingWithMouse: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isScrollingWithMouse + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + SetIsScrollable: { + do { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let isScrollable: Bool = .init(from: $1) + try __unwrapped__instance.setIsScrollable(isScrollable) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetValues: { + do { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let minOffset: Double = $1 + let maxOffset: Double = $2 + let offset: Double = $3 + let viewportLength: Double = $4 + try __unwrapped__instance.setValues(minOffset, maxOffset, offset, viewportLength) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetScrollAnimation: { + do { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let correlationId: Int32 = $1 + let startPosition: WindowsFoundation.Vector2 = .from(abi: $2) + let endPosition: WindowsFoundation.Vector2 = .from(abi: $3) + let defaultAnimation: WinAppSDK.CompositionAnimation? = .from(abi: ComPtr($4)) + let result = try __unwrapped__instance.getScrollAnimation(correlationId, startPosition, endPosition, defaultAnimation) + result?.copyTo($5) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + NotifyRequestedScrollCompleted: { + do { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let correlationId: Int32 = $1 + try __unwrapped__instance.notifyRequestedScrollCompleted(correlationId) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + add_CanScrollChanged: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.canScrollChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_CanScrollChanged: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.canScrollChanged.removeHandler(token) + return S_OK + }, + + add_IsScrollingWithMouseChanged: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.isScrollingWithMouseChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_IsScrollingWithMouseChanged: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.isScrollingWithMouseChanged.removeHandler(token) + return S_OK + }, + + add_ScrollToRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.scrollToRequested.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_ScrollToRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.scrollToRequested.removeHandler(token) + return S_OK + }, + + add_ScrollByRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.scrollByRequested.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_ScrollByRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.scrollByRequested.removeHandler(token) + return S_OK + }, + + add_AddScrollVelocityRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.addScrollVelocityRequested.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_AddScrollVelocityRequested: { + guard let __unwrapped__instance = IScrollControllerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.addScrollVelocityRequested.removeHandler(token) + return S_OK + } + ) + + public typealias IScrollControllerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerBridge> + public class IScrollControllerAddScrollVelocityRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs } + + internal func get_OffsetVelocityImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetVelocity(pThis, &value)) + } + return value + } + + internal func get_InertiaDecayRateImpl() throws -> Float? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InertiaDecayRate(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_floatWrapper.unwrapFrom(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + internal func put_CorrelationIdImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CorrelationId(pThis, value)) + } + } + + } + + public class IScrollControllerAddScrollVelocityRequestedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgsFactory } + + internal func CreateInstanceImpl(_ offsetVelocity: Float, _ inertiaDecayRate: Float?) throws -> IScrollControllerAddScrollVelocityRequestedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let inertiaDecayRateWrapper = WinUI.__x_ABI_C__FIReference_1_floatWrapper(inertiaDecayRate) + let _inertiaDecayRate = try! inertiaDecayRateWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, offsetVelocity, _inertiaDecayRate, &valueAbi)) + } + } + return IScrollControllerAddScrollVelocityRequestedEventArgs(value!) + } + + } + + public class IScrollControllerPanRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs } + + internal func get_PointerPointImpl() throws -> WinAppSDK.PointerPoint? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerPoint(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs.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_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IScrollControllerPanRequestedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgsFactory } + + internal func CreateInstanceImpl(_ pointerPoint: WinAppSDK.PointerPoint?) throws -> IScrollControllerPanRequestedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, RawPointer(pointerPoint), &valueAbi)) + } + } + return IScrollControllerPanRequestedEventArgs(value!) + } + + } + + public class IScrollControllerPanningInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo } + + open func get_IsRailEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsRailEnabled(pThis, &value)) + } + return .init(from: value) + } + + open func get_PanOrientationImpl() throws -> WinUI.Orientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PanOrientation(pThis, &value)) + } + return value + } + + open func get_PanningElementAncestorImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PanningElementAncestor(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + open func SetPanningElementExpressionAnimationSourcesImpl(_ propertySet: WinAppSDK.CompositionPropertySet?, _ minOffsetPropertyName: String, _ maxOffsetPropertyName: String, _ offsetPropertyName: String, _ multiplierPropertyName: String) throws { + let _minOffsetPropertyName = try! HString(minOffsetPropertyName) + let _maxOffsetPropertyName = try! HString(maxOffsetPropertyName) + let _offsetPropertyName = try! HString(offsetPropertyName) + let _multiplierPropertyName = try! HString(multiplierPropertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPanningElementExpressionAnimationSources(pThis, RawPointer(propertySet), _minOffsetPropertyName.get(), _maxOffsetPropertyName.get(), _offsetPropertyName.get(), _multiplierPropertyName.get())) + } + } + + open func add_ChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Changed(pThis, _handler, &token)) + } + return token + } + + open func remove_ChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Changed(pThis, token)) + } + } + + open func add_PanRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PanRequested(pThis, _handler, &token)) + } + return token + } + + open func remove_PanRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PanRequested(pThis, token)) + } + } + + } + + internal static var IScrollControllerPanningInfoVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfoVtbl = .init( + QueryInterface: { IScrollControllerPanningInfoWrapper.queryInterface($0, $1, $2) }, + AddRef: { IScrollControllerPanningInfoWrapper.addRef($0) }, + Release: { IScrollControllerPanningInfoWrapper.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_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.Primitives.IScrollControllerPanningInfo").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_IsRailEnabled: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isRailEnabled + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_PanOrientation: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.panOrientation + $1?.initialize(to: value) + return S_OK + }, + + get_PanningElementAncestor: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.panningElementAncestor + value?.copyTo($1) + return S_OK + }, + + SetPanningElementExpressionAnimationSources: { + do { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let propertySet: WinAppSDK.CompositionPropertySet? = .from(abi: ComPtr($1)) + let minOffsetPropertyName: String = .init(from: $2) + let maxOffsetPropertyName: String = .init(from: $3) + let offsetPropertyName: String = .init(from: $4) + let multiplierPropertyName: String = .init(from: $5) + try __unwrapped__instance.setPanningElementExpressionAnimationSources(propertySet, minOffsetPropertyName, maxOffsetPropertyName, offsetPropertyName, multiplierPropertyName) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + add_Changed: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.changed.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_Changed: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.changed.removeHandler(token) + return S_OK + }, + + add_PanRequested: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.panRequested.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_PanRequested: { + guard let __unwrapped__instance = IScrollControllerPanningInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.panRequested.removeHandler(token) + return S_OK + } + ) + + public typealias IScrollControllerPanningInfoWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoBridge> + public class IScrollControllerScrollByRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs } + + internal func get_OffsetDeltaImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetDelta(pThis, &value)) + } + return value + } + + internal func get_OptionsImpl() throws -> WinUI.ScrollingScrollOptions? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Options(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + internal func put_CorrelationIdImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CorrelationId(pThis, value)) + } + } + + } + + public class IScrollControllerScrollByRequestedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgsFactory } + + internal func CreateInstanceImpl(_ offsetDelta: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> IScrollControllerScrollByRequestedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, offsetDelta, RawPointer(options), &valueAbi)) + } + } + return IScrollControllerScrollByRequestedEventArgs(value!) + } + + } + + public class IScrollControllerScrollToRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs } + + internal func get_OffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return value + } + + internal func get_OptionsImpl() throws -> WinUI.ScrollingScrollOptions? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Options(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return value + } + + internal func put_CorrelationIdImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CorrelationId(pThis, value)) + } + } + + } + + public class IScrollControllerScrollToRequestedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgsFactory } + + internal func CreateInstanceImpl(_ offset: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> IScrollControllerScrollToRequestedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, offset, RawPointer(options), &valueAbi)) + } + } + return IScrollControllerScrollToRequestedEventArgs(value!) + } + + } + + public class IScrollPresenter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_ExpressionAnimationSourcesImpl() throws -> WinAppSDK.CompositionPropertySet? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpressionAnimationSources(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func get_ZoomFactorImpl() throws -> Float { + var value: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomFactor(pThis, &value)) + } + return value + } + + internal func get_ExtentWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentWidth(pThis, &value)) + } + return value + } + + internal func get_ExtentHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExtentHeight(pThis, &value)) + } + return value + } + + internal func get_ViewportWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportWidth(pThis, &value)) + } + return value + } + + internal func get_ViewportHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ViewportHeight(pThis, &value)) + } + return value + } + + internal func get_ScrollableWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableWidth(pThis, &value)) + } + return value + } + + internal func get_ScrollableHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScrollableHeight(pThis, &value)) + } + return value + } + + internal func get_ContentOrientationImpl() throws -> WinUI.ScrollingContentOrientation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentOrientation(pThis, &value)) + } + return value + } + + internal func put_ContentOrientationImpl(_ value: WinUI.ScrollingContentOrientation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentOrientation(pThis, value)) + } + } + + internal func get_HorizontalScrollChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollChainMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollChainMode(pThis, value)) + } + } + + internal func get_VerticalScrollChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollChainMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollChainMode(pThis, value)) + } + } + + internal func get_HorizontalScrollRailModeImpl() throws -> WinUI.ScrollingRailMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollRailMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollRailModeImpl(_ value: WinUI.ScrollingRailMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollRailMode(pThis, value)) + } + } + + internal func get_VerticalScrollRailModeImpl() throws -> WinUI.ScrollingRailMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollRailMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollRailModeImpl(_ value: WinUI.ScrollingRailMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollRailMode(pThis, value)) + } + } + + internal func get_HorizontalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollMode(pThis, &value)) + } + return value + } + + internal func put_HorizontalScrollModeImpl(_ value: WinUI.ScrollingScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollMode(pThis, value)) + } + } + + internal func get_VerticalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollMode(pThis, &value)) + } + return value + } + + internal func put_VerticalScrollModeImpl(_ value: WinUI.ScrollingScrollMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollMode(pThis, value)) + } + } + + internal func get_ComputedHorizontalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollMode(pThis, &value)) + } + return value + } + + internal func get_ComputedVerticalScrollModeImpl() throws -> WinUI.ScrollingScrollMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollMode(pThis, &value)) + } + return value + } + + internal func get_ZoomChainModeImpl() throws -> WinUI.ScrollingChainMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomChainMode(pThis, &value)) + } + return value + } + + internal func put_ZoomChainModeImpl(_ value: WinUI.ScrollingChainMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomChainMode(pThis, value)) + } + } + + internal func get_ZoomModeImpl() throws -> WinUI.ScrollingZoomMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingZoomMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomMode(pThis, &value)) + } + return value + } + + internal func put_ZoomModeImpl(_ value: WinUI.ScrollingZoomMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ZoomMode(pThis, value)) + } + } + + internal func get_IgnoredInputKindsImpl() throws -> WinUI.ScrollingInputKinds { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IgnoredInputKinds(pThis, &value)) + } + return value + } + + internal func put_IgnoredInputKindsImpl(_ value: WinUI.ScrollingInputKinds) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IgnoredInputKinds(pThis, value)) + } + } + + internal func get_MinZoomFactorImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MinZoomFactorImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MinZoomFactor(pThis, value)) + } + } + + internal func get_MaxZoomFactorImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactor(pThis, &value)) + } + return value + } + + internal func put_MaxZoomFactorImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MaxZoomFactor(pThis, value)) + } + } + + internal func get_StateImpl() throws -> WinUI.ScrollingInteractionState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_State(pThis, &value)) + } + return value + } + + internal func get_HorizontalScrollControllerImpl() throws -> WinUI.AnyIScrollController? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollController(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.unwrapFrom(abi: value) + } + + internal func put_HorizontalScrollControllerImpl(_ value: WinUI.AnyIScrollController?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalScrollController(pThis, _value)) + } + } + + internal func get_VerticalScrollControllerImpl() throws -> WinUI.AnyIScrollController? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollController(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.unwrapFrom(abi: value) + } + + internal func put_VerticalScrollControllerImpl(_ value: WinUI.AnyIScrollController?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalScrollController(pThis, _value)) + } + } + + internal func get_HorizontalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_HorizontalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalAnchorRatio(pThis, value)) + } + } + + internal func get_VerticalAnchorRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatio(pThis, &value)) + } + return value + } + + internal func put_VerticalAnchorRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalAnchorRatio(pThis, value)) + } + } + + internal func get_HorizontalSnapPointsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalSnapPoints(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.unwrapFrom(abi: value) + } + + internal func get_VerticalSnapPointsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalSnapPoints(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.unwrapFrom(abi: value) + } + + internal func get_ZoomSnapPointsImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomSnapPoints(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.unwrapFrom(abi: value) + } + + internal func ScrollToImpl(_ horizontalOffset: Double, _ verticalOffset: Double) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollTo(pThis, horizontalOffset, verticalOffset, &result)) + } + return result + } + + internal func ScrollToWithOptionsImpl(_ horizontalOffset: Double, _ verticalOffset: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollToWithOptions(pThis, horizontalOffset, verticalOffset, RawPointer(options), &result)) + } + return result + } + + internal func ScrollByImpl(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollBy(pThis, horizontalOffsetDelta, verticalOffsetDelta, &result)) + } + return result + } + + internal func ScrollByWithOptionsImpl(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double, _ options: WinUI.ScrollingScrollOptions?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ScrollByWithOptions(pThis, horizontalOffsetDelta, verticalOffsetDelta, RawPointer(options), &result)) + } + return result + } + + internal func AddScrollVelocityImpl(_ offsetsVelocity: WindowsFoundation.Vector2, _ inertiaDecayRate: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let inertiaDecayRateWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(inertiaDecayRate) + let _inertiaDecayRate = try! inertiaDecayRateWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddScrollVelocity(pThis, .from(swift: offsetsVelocity), _inertiaDecayRate, &result)) + } + return result + } + + internal func ZoomToImpl(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomTo(pThis, zoomFactor, _centerPoint, &result)) + } + return result + } + + internal func ZoomToWithOptionsImpl(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomToWithOptions(pThis, zoomFactor, _centerPoint, RawPointer(options), &result)) + } + return result + } + + internal func ZoomByImpl(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomBy(pThis, zoomFactorDelta, _centerPoint, &result)) + } + return result + } + + internal func ZoomByWithOptionsImpl(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ZoomByWithOptions(pThis, zoomFactorDelta, _centerPoint, RawPointer(options), &result)) + } + return result + } + + internal func AddZoomVelocityImpl(_ zoomFactorVelocity: Float, _ centerPoint: WindowsFoundation.Vector2?, _ inertiaDecayRate: Float?) throws -> Int32 { + var result: INT32 = 0 + let centerPointWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CNumerics__CVector2Wrapper(centerPoint) + let _centerPoint = try! centerPointWrapper?.toABI { $0 } + let inertiaDecayRateWrapper = WinUI.__x_ABI_C__FIReference_1_floatWrapper(inertiaDecayRate) + let _inertiaDecayRate = try! inertiaDecayRateWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddZoomVelocity(pThis, zoomFactorVelocity, _centerPoint, _inertiaDecayRate, &result)) + } + return result + } + + internal func add_ExtentChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ExtentChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ExtentChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ExtentChanged(pThis, token)) + } + } + + internal func add_StateChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.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_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_StateChanged(pThis, token)) + } + } + + internal func add_ViewChangedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ViewChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_ViewChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ViewChanged(pThis, token)) + } + } + + internal func add_ScrollAnimationStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollAnimationStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ScrollAnimationStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollAnimationStarting(pThis, token)) + } + } + + internal func add_ZoomAnimationStartingImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ZoomAnimationStarting(pThis, _handler, &token)) + } + return token + } + + internal func remove_ZoomAnimationStartingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ZoomAnimationStarting(pThis, token)) + } + } + + internal func add_ScrollCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ScrollCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ScrollCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ScrollCompleted(pThis, token)) + } + } + + internal func add_ZoomCompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ZoomCompleted(pThis, _handler, &token)) + } + return token + } + + internal func remove_ZoomCompletedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ZoomCompleted(pThis, token)) + } + } + + internal func add_BringingIntoViewImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_BringingIntoView(pThis, _handler, &token)) + } + return token + } + + internal func remove_BringingIntoViewImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_BringingIntoView(pThis, token)) + } + } + + internal func add_AnchorRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AnchorRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AnchorRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AnchorRequested(pThis, token)) + } + } + + } + + public class IScrollPresenterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IScrollPresenter { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IScrollPresenter(value!) + } + + } + + public class IScrollPresenterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentOrientationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentOrientationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollRailModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollRailModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollRailModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollRailModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedHorizontalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedHorizontalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ComputedVerticalScrollModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ComputedVerticalScrollModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomChainModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomChainModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ZoomModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ZoomModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IgnoredInputKindsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IgnoredInputKindsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MinZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MinZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MaxZoomFactorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MaxZoomFactorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_HorizontalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalAnchorRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalAnchorRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IScrollSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBase } + + internal func get_AlignmentImpl() throws -> WinUI.ScrollSnapPointsAlignment { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CScrollSnapPointsAlignment = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Alignment(pThis, &value)) + } + return value + } + + } + + public class IScrollSnapPointBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBaseFactory } + + } + + public class IScrollSnapPointsInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo } + + open func get_AreHorizontalSnapPointsRegularImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreHorizontalSnapPointsRegular(pThis, &value)) + } + return .init(from: value) + } + + open func get_AreVerticalSnapPointsRegularImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AreVerticalSnapPointsRegular(pThis, &value)) + } + return .init(from: value) + } + + open func add_HorizontalSnapPointsChangedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_HorizontalSnapPointsChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_HorizontalSnapPointsChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_HorizontalSnapPointsChanged(pThis, token)) + } + } + + open func add_VerticalSnapPointsChangedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_VerticalSnapPointsChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_VerticalSnapPointsChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_VerticalSnapPointsChanged(pThis, token)) + } + } + + open func GetIrregularSnapPointsImpl(_ orientation: WinUI.Orientation, _ alignment: WinUI.SnapPointsAlignment) throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIrregularSnapPoints(pThis, orientation, alignment, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_floatWrapper.unwrapFrom(abi: result) + } + + open func GetRegularSnapPointsImpl(_ orientation: WinUI.Orientation, _ alignment: WinUI.SnapPointsAlignment, _ offset: inout Float) throws -> Float { + var returnValue: FLOAT = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetRegularSnapPoints(pThis, orientation, alignment, &offset, &returnValue)) + } + return returnValue + } + + } + + internal static var IScrollSnapPointsInfoVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfoVtbl = .init( + QueryInterface: { IScrollSnapPointsInfoWrapper.queryInterface($0, $1, $2) }, + AddRef: { IScrollSnapPointsInfoWrapper.addRef($0) }, + Release: { IScrollSnapPointsInfoWrapper.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_Xaml_Controls_Primitives.IScrollSnapPointsInfoWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_AreHorizontalSnapPointsRegular: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.areHorizontalSnapPointsRegular + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_AreVerticalSnapPointsRegular: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.areVerticalSnapPointsRegular + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + add_HorizontalSnapPointsChanged: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.horizontalSnapPointsChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_HorizontalSnapPointsChanged: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.horizontalSnapPointsChanged.removeHandler(token) + return S_OK + }, + + add_VerticalSnapPointsChanged: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.verticalSnapPointsChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_VerticalSnapPointsChanged: { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.verticalSnapPointsChanged.removeHandler(token) + return S_OK + }, + + GetIrregularSnapPoints: { + do { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let orientation: WinUI.Orientation = $1 + let alignment: WinUI.SnapPointsAlignment = $2 + let result = try __unwrapped__instance.getIrregularSnapPoints(orientation, alignment) + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1_floatWrapper(result) + resultWrapper?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetRegularSnapPoints: { + do { + guard let __unwrapped__instance = IScrollSnapPointsInfoWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let orientation: WinUI.Orientation = $1 + let alignment: WinUI.SnapPointsAlignment = $2 + var offset: Float = 0.0 + let returnValue = try __unwrapped__instance.getRegularSnapPoints(orientation, alignment, &offset) + $3?.initialize(to: offset) + $4?.initialize(to: returnValue) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IScrollSnapPointsInfoWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfoBridge> + public class ISelector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector } + + internal func get_SelectedIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedIndex(pThis, &value)) + } + return value + } + + internal func put_SelectedIndexImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedIndex(pThis, value)) + } + } + + internal func get_SelectedItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SelectedItemImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedItem(pThis, _value)) + } + } + + internal func get_SelectedValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SelectedValueImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedValue(pThis, _value)) + } + } + + internal func get_SelectedValuePathImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedValuePath(pThis, &value)) + } + return .init(from: value) + } + + internal func put_SelectedValuePathImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SelectedValuePath(pThis, _value.get())) + } + } + + internal func get_IsSynchronizedWithCurrentItemImpl() throws -> Bool? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSynchronizedWithCurrentItem(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_booleanWrapper.unwrapFrom(abi: value) + } + + internal func put_IsSynchronizedWithCurrentItemImpl(_ value: Bool?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_booleanWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSynchronizedWithCurrentItem(pThis, _value)) + } + } + + internal func add_SelectionChangedImpl(_ handler: WinUI.SelectionChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Controls.SelectionChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SelectionChanged(pThis, _handler, &token)) + } + return token + } + + internal func remove_SelectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SelectionChanged(pThis, token)) + } + } + + } + + public class ISelectorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorFactory } + + } + + public class ISelectorItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem } + + internal func get_IsSelectedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSelected(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsSelectedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsSelected(pThis, .init(from: value))) + } + } + + } + + public class ISelectorItemFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISelectorItem { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISelectorItem(value!) + } + + } + + public class ISelectorItemStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemStatics } + + internal func get_IsSelectedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItemStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSelectedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISelectorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics } + + internal func get_SelectedIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedItemPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedItemProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SelectedValuePathPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SelectedValuePathProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsSynchronizedWithCurrentItemPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsSynchronizedWithCurrentItemProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsSelectionActiveImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsSelectionActive(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + } + + public class ISnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBase } + + } + + public class ISnapPointBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBaseFactory } + + } + + public class ISplitViewTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings } + + internal func get_OpenPaneLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenPaneLength(pThis, &value)) + } + return value + } + + internal func get_NegativeOpenPaneLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeOpenPaneLength(pThis, &value)) + } + return value + } + + internal func get_OpenPaneLengthMinusCompactLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenPaneLengthMinusCompactLength(pThis, &value)) + } + return value + } + + internal func get_NegativeOpenPaneLengthMinusCompactLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NegativeOpenPaneLengthMinusCompactLength(pThis, &value)) + } + return value + } + + internal func get_OpenPaneGridLengthImpl() throws -> WinUI.GridLength { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CGridLength = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenPaneGridLength(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CompactPaneGridLengthImpl() throws -> WinUI.GridLength { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CGridLength = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompactPaneGridLength(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IToggleButton: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton } + + internal func get_IsCheckedImpl() throws -> Bool? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsChecked(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_booleanWrapper.unwrapFrom(abi: value) + } + + internal func put_IsCheckedImpl(_ value: Bool?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_booleanWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsChecked(pThis, _value)) + } + } + + internal func get_IsThreeStateImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsThreeState(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsThreeStateImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsThreeState(pThis, .init(from: value))) + } + } + + internal func add_CheckedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Checked(pThis, _handler, &token)) + } + return token + } + + internal func remove_CheckedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Checked(pThis, token)) + } + } + + internal func add_UncheckedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Unchecked(pThis, _handler, &token)) + } + return token + } + + internal func remove_UncheckedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Unchecked(pThis, token)) + } + } + + internal func add_IndeterminateImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Indeterminate(pThis, _handler, &token)) + } + return token + } + + internal func remove_IndeterminateImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Indeterminate(pThis, token)) + } + } + + } + + public class IToggleButtonFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IToggleButton { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IToggleButton(value!) + } + + } + + public class IToggleButtonOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides } + + internal func OnToggleImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnToggle(pThis)) + } + } + + } + + public class IToggleButtonStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonStatics } + + internal func get_IsCheckedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCheckedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsThreeStatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsThreeStateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IToggleSwitchTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings } + + internal func get_KnobCurrentToOnOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KnobCurrentToOnOffset(pThis, &value)) + } + return value + } + + internal func get_KnobCurrentToOffOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KnobCurrentToOffOffset(pThis, &value)) + } + return value + } + + internal func get_KnobOnToOffOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KnobOnToOffOffset(pThis, &value)) + } + return value + } + + internal func get_KnobOffToOnOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KnobOffToOnOffset(pThis, &value)) + } + return value + } + + internal func get_CurtainCurrentToOnOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurtainCurrentToOnOffset(pThis, &value)) + } + return value + } + + internal func get_CurtainCurrentToOffOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurtainCurrentToOffOffset(pThis, &value)) + } + return value + } + + internal func get_CurtainOnToOffOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurtainOnToOffOffset(pThis, &value)) + } + return value + } + + internal func get_CurtainOffToOnOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CurtainOffToOnOffset(pThis, &value)) + } + return value + } + + } + + public class IToolTipTemplateSettings: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + } + + public class IZoomSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBase } + + } + + public class IZoomSnapPointBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBaseFactory } + + } + + internal typealias IFlyoutBaseOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IFlyoutBaseOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverridesVtbl = .init( + QueryInterface: { IFlyoutBaseOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IFlyoutBaseOverridesWrapper.addRef($0) }, + Release: { IFlyoutBaseOverridesWrapper.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_Xaml_Controls_Primitives.IFlyoutBaseOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IFlyoutBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + CreatePresenter: { + do { + guard let __unwrapped__instance = IFlyoutBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.createPresenter() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnProcessKeyboardAccelerators: { + do { + guard let __unwrapped__instance = IFlyoutBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let args: WinUI.ProcessKeyboardAcceleratorEventArgs? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onProcessKeyboardAccelerators(args) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IRangeBaseOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IRangeBaseOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverridesVtbl = .init( + QueryInterface: { IRangeBaseOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IRangeBaseOverridesWrapper.addRef($0) }, + Release: { IRangeBaseOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 6).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + $1!.pointee = 6 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IRangeBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnMinimumChanged: { + do { + guard let __unwrapped__instance = IRangeBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldMinimum: Double = $1 + let newMinimum: Double = $2 + try __unwrapped__instance.onMinimumChanged(oldMinimum, newMinimum) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnMaximumChanged: { + do { + guard let __unwrapped__instance = IRangeBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldMaximum: Double = $1 + let newMaximum: Double = $2 + try __unwrapped__instance.onMaximumChanged(oldMaximum, newMaximum) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnValueChanged: { + do { + guard let __unwrapped__instance = IRangeBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldValue: Double = $1 + let newValue: Double = $2 + try __unwrapped__instance.onValueChanged(oldValue, newValue) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IToggleButtonOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IToggleButtonOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverridesVtbl = .init( + QueryInterface: { IToggleButtonOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IToggleButtonOverridesWrapper.addRef($0) }, + Release: { IToggleButtonOverridesWrapper.release($0) }, + GetIids: { + let size = MemoryLayout.size + let iids = CoTaskMemAlloc(UInt64(size) * 7).assumingMemoryBound(to: WindowsFoundation.IID.self) + iids[0] = IUnknown.IID + iids[1] = IInspectable.IID + iids[2] = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID + iids[4] = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID + iids[5] = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID + iids[6] = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesWrapper.IID + $1!.pointee = 7 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IToggleButtonOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnToggle: { + do { + guard let __unwrapped__instance = IToggleButtonOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onToggle() + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition { + public static func from(swift: WinUI.GeneratorPosition) -> __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition { + .init(Index: swift.index, Offset: swift.offset) + } + } + extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +// MARK - ItemsChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls_Primitives { + public class ItemsChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ItemsChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ItemsChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls_Primitives.ItemsChangedEventHandlerBridge> + internal static var ItemsChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandlerVtbl = .init( + QueryInterface: { ItemsChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ItemsChangedEventHandlerWrapper.addRef($0) }, + Release: { ItemsChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ItemsChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ItemsChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.ItemsChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - RangeBaseValueChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Controls_Primitives { + public class RangeBaseValueChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.RangeBaseValueChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias RangeBaseValueChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Controls_Primitives.RangeBaseValueChangedEventHandlerBridge> + internal static var RangeBaseValueChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandlerVtbl = .init( + QueryInterface: { RangeBaseValueChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { RangeBaseValueChangedEventHandlerWrapper.addRef($0) }, + Release: { RangeBaseValueChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = RangeBaseValueChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.RangeBaseValueChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.RangeBaseValueChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+Impl.swift new file mode 100644 index 0000000..e30e391 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives+Impl.swift @@ -0,0 +1,304 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +public enum __IMPL_Microsoft_UI_Xaml_Controls_Primitives { + public enum IScrollControllerBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollController + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollController + public typealias SwiftProjection = AnyIScrollController + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IScrollControllerImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IScrollControllerImpl: IScrollController, WinRTAbiImpl { + fileprivate typealias Bridge = IScrollControllerBridge + 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.xaml.controls.primitives.iscrollcontroller.setisscrollable) + fileprivate func setIsScrollable(_ isScrollable: Bool) throws { + try _default.SetIsScrollableImpl(isScrollable) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.setvalues) + fileprivate func setValues(_ minOffset: Double, _ maxOffset: Double, _ offset: Double, _ viewportLength: Double) throws { + try _default.SetValuesImpl(minOffset, maxOffset, offset, viewportLength) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.getscrollanimation) + fileprivate func getScrollAnimation(_ correlationId: Int32, _ startPosition: WindowsFoundation.Vector2, _ endPosition: WindowsFoundation.Vector2, _ defaultAnimation: WinAppSDK.CompositionAnimation!) throws -> WinAppSDK.CompositionAnimation! { + try _default.GetScrollAnimationImpl(correlationId, startPosition, endPosition, defaultAnimation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.notifyrequestedscrollcompleted) + fileprivate func notifyRequestedScrollCompleted(_ correlationId: Int32) throws { + try _default.NotifyRequestedScrollCompletedImpl(correlationId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.canscroll) + fileprivate var canScroll : Bool { + get { try! _default.get_CanScrollImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.isscrollingwithmouse) + fileprivate var isScrollingWithMouse : Bool { + get { try! _default.get_IsScrollingWithMouseImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.panninginfo) + fileprivate var panningInfo : AnyIScrollControllerPanningInfo! { + get { try! _default.get_PanningInfoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.addscrollvelocityrequested) + fileprivate lazy var addScrollVelocityRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AddScrollVelocityRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AddScrollVelocityRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.canscrollchanged) + fileprivate lazy var canScrollChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CanScrollChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CanScrollChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.isscrollingwithmousechanged) + fileprivate lazy var isScrollingWithMouseChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_IsScrollingWithMouseChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_IsScrollingWithMouseChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.scrollbyrequested) + fileprivate lazy var scrollByRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollByRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollByRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.scrolltorequested) + fileprivate lazy var scrollToRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollToRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollToRequestedImpl($0) + } + ) + }() + + } + + public enum IScrollControllerPanningInfoBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanningInfo + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfo + public typealias SwiftProjection = AnyIScrollControllerPanningInfo + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IScrollControllerPanningInfoImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IScrollControllerPanningInfoImpl: IScrollControllerPanningInfo, WinRTAbiImpl { + fileprivate typealias Bridge = IScrollControllerPanningInfoBridge + 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.xaml.controls.primitives.iscrollcontrollerpanninginfo.setpanningelementexpressionanimationsources) + fileprivate func setPanningElementExpressionAnimationSources(_ propertySet: WinAppSDK.CompositionPropertySet!, _ minOffsetPropertyName: String, _ maxOffsetPropertyName: String, _ offsetPropertyName: String, _ multiplierPropertyName: String) throws { + try _default.SetPanningElementExpressionAnimationSourcesImpl(propertySet, minOffsetPropertyName, maxOffsetPropertyName, offsetPropertyName, multiplierPropertyName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.israilenabled) + fileprivate var isRailEnabled : Bool { + get { try! _default.get_IsRailEnabledImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.panorientation) + fileprivate var panOrientation : WinUI.Orientation { + get { try! _default.get_PanOrientationImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.panningelementancestor) + fileprivate var panningElementAncestor : WinUI.UIElement! { + get { try! _default.get_PanningElementAncestorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.changed) + fileprivate 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.xaml.controls.primitives.iscrollcontrollerpanninginfo.panrequested) + fileprivate lazy var panRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PanRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PanRequestedImpl($0) + } + ) + }() + + } + + public enum IScrollSnapPointsInfoBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointsInfo + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfo + public typealias SwiftProjection = AnyIScrollSnapPointsInfo + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IScrollSnapPointsInfoImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfoVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IScrollSnapPointsInfoImpl: IScrollSnapPointsInfo, WinRTAbiImpl { + fileprivate typealias Bridge = IScrollSnapPointsInfoBridge + 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.xaml.controls.primitives.iscrollsnappointsinfo.getirregularsnappoints) + fileprivate func getIrregularSnapPoints(_ orientation: WinUI.Orientation, _ alignment: SnapPointsAlignment) throws -> WindowsFoundation.AnyIVectorView! { + try _default.GetIrregularSnapPointsImpl(orientation, alignment) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.getregularsnappoints) + fileprivate func getRegularSnapPoints(_ orientation: WinUI.Orientation, _ alignment: SnapPointsAlignment, _ offset: inout Float) throws -> Float { + try _default.GetRegularSnapPointsImpl(orientation, alignment, &offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.arehorizontalsnappointsregular) + fileprivate var areHorizontalSnapPointsRegular : Bool { + get { try! _default.get_AreHorizontalSnapPointsRegularImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.areverticalsnappointsregular) + fileprivate var areVerticalSnapPointsRegular : Bool { + get { try! _default.get_AreVerticalSnapPointsRegularImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.horizontalsnappointschanged) + fileprivate lazy var horizontalSnapPointsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_HorizontalSnapPointsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_HorizontalSnapPointsChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.verticalsnappointschanged) + fileprivate lazy var verticalSnapPointsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_VerticalSnapPointsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_VerticalSnapPointsChangedImpl($0) + } + ) + }() + + } + + public class ItemsChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ItemsChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ItemsChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class RangeBaseValueChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = RangeBaseValueChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.RangeBaseValueChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives.swift new file mode 100644 index 0000000..ae781a6 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.Primitives.swift @@ -0,0 +1,2979 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.animationdirection) +public typealias AnimationDirection = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.componentresourcelocation) +public typealias ComponentResourceLocation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CComponentResourceLocation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.edgetransitionlocation) +public typealias EdgeTransitionLocation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutplacementmode) +public typealias FlyoutPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutshowmode) +public typealias FlyoutShowMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.generatordirection) +public typealias GeneratorDirection = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.placementmode) +public typealias PlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popupplacementmode) +public typealias PopupPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollsnappointsalignment) +public typealias ScrollSnapPointsAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CScrollSnapPointsAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.slidersnapsto) +public typealias SliderSnapsTo = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSliderSnapsTo +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.snappointsalignment) +public typealias SnapPointsAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.tickplacement) +public typealias TickPlacement = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings) +public final class AppBarTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IAppBarTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings + 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_CXaml_CControls_CPrimitives_CIAppBarTemplateSettings>?) -> AppBarTemplateSettings? { + 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.xaml.controls.primitives.appbartemplatesettings.cliprect) + public var clipRect : WindowsFoundation.Rect { + get { try! _default.get_ClipRectImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.compactrootmargin) + public var compactRootMargin : WinUI.Thickness { + get { try! _default.get_CompactRootMarginImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.compactverticaldelta) + public var compactVerticalDelta : Double { + get { try! _default.get_CompactVerticalDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.hiddenrootmargin) + public var hiddenRootMargin : WinUI.Thickness { + get { try! _default.get_HiddenRootMarginImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.hiddenverticaldelta) + public var hiddenVerticalDelta : Double { + get { try! _default.get_HiddenVerticalDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.minimalrootmargin) + public var minimalRootMargin : WinUI.Thickness { + get { try! _default.get_MinimalRootMarginImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.minimalverticaldelta) + public var minimalVerticalDelta : Double { + get { try! _default.get_MinimalVerticalDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.negativecompactverticaldelta) + public var negativeCompactVerticalDelta : Double { + get { try! _default.get_NegativeCompactVerticalDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.negativehiddenverticaldelta) + public var negativeHiddenVerticalDelta : Double { + get { try! _default.get_NegativeHiddenVerticalDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.appbartemplatesettings.negativeminimalverticaldelta) + public var negativeMinimalVerticalDelta : Double { + get { try! _default.get_NegativeMinimalVerticalDeltaImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase) +open class ButtonBase : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IButtonBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase + 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_CXaml_CControls_CPrimitives_CIButtonBase>?) -> ButtonBase? { + 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 _IButtonBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IButtonBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ButtonBase")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IButtonBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IButtonBaseStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IButtonBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ButtonBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.clickmodeproperty) + public class var clickModeProperty : WinUI.DependencyProperty! { + get { try! _IButtonBaseStatics.get_ClickModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.commandparameterproperty) + public class var commandParameterProperty : WinUI.DependencyProperty! { + get { try! _IButtonBaseStatics.get_CommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.commandproperty) + public class var commandProperty : WinUI.DependencyProperty! { + get { try! _IButtonBaseStatics.get_CommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.ispointeroverproperty) + public class var isPointerOverProperty : WinUI.DependencyProperty! { + get { try! _IButtonBaseStatics.get_IsPointerOverPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.ispressedproperty) + public class var isPressedProperty : WinUI.DependencyProperty! { + get { try! _IButtonBaseStatics.get_IsPressedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.clickmode) + public var clickMode : WinUI.ClickMode { + get { try! _default.get_ClickModeImpl() } + set { try! _default.put_ClickModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.command) + public var command : WinUI.AnyICommand! { + get { try! _default.get_CommandImpl() } + set { try! _default.put_CommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.commandparameter) + public var commandParameter : Any! { + get { try! _default.get_CommandParameterImpl() } + set { try! _default.put_CommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.ispointerover) + public var isPointerOver : Bool { + get { try! _default.get_IsPointerOverImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.ispressed) + public var isPressed : Bool { + get { try! _default.get_IsPressedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.buttonbase.click) + public lazy var click : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ClickImpl($0) + } + ) + }() + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ButtonBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIButtonBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IButtonBase + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.comboboxtemplatesettings) +public final class ComboBoxTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IComboBoxTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings + 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_CXaml_CControls_CPrimitives_CIComboBoxTemplateSettings>?) -> ComboBoxTemplateSettings? { + 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.xaml.controls.primitives.comboboxtemplatesettings.dropdownclosedheight) + public var dropDownClosedHeight : Double { + get { try! _default.get_DropDownClosedHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.comboboxtemplatesettings.dropdowncontentminwidth) + public var dropDownContentMinWidth : Double { + get { try! _default.get_DropDownContentMinWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.comboboxtemplatesettings.dropdownoffset) + public var dropDownOffset : Double { + get { try! _default.get_DropDownOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.comboboxtemplatesettings.dropdownopenedheight) + public var dropDownOpenedHeight : Double { + get { try! _default.get_DropDownOpenedHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.comboboxtemplatesettings.selecteditemdirection) + public var selectedItemDirection : AnimationDirection { + get { try! _default.get_SelectedItemDirectionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase) +open class FlyoutBase : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase + 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_CXaml_CControls_CPrimitives_CIFlyoutBase>?) -> FlyoutBase? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IFlyoutBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.FlyoutBase")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFlyoutBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFlyoutBaseStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.FlyoutBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.getattachedflyout) + public class func getAttachedFlyout(_ element: WinUI.FrameworkElement!) -> FlyoutBase! { + return try! _IFlyoutBaseStatics.GetAttachedFlyoutImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.setattachedflyout) + public class func setAttachedFlyout(_ element: WinUI.FrameworkElement!, _ value: FlyoutBase!) { + try! _IFlyoutBaseStatics.SetAttachedFlyoutImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.showattachedflyout) + public class func showAttachedFlyout(_ flyoutOwner: WinUI.FrameworkElement!) { + try! _IFlyoutBaseStatics.ShowAttachedFlyoutImpl(flyoutOwner) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.allowfocusoninteractionproperty) + public class var allowFocusOnInteractionProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_AllowFocusOnInteractionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.allowfocuswhendisabledproperty) + public class var allowFocusWhenDisabledProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_AllowFocusWhenDisabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.areopencloseanimationsenabledproperty) + public class var areOpenCloseAnimationsEnabledProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_AreOpenCloseAnimationsEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.attachedflyoutproperty) + public class var attachedFlyoutProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_AttachedFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.elementsoundmodeproperty) + public class var elementSoundModeProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_ElementSoundModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.inputdeviceprefersprimarycommandsproperty) + public class var inputDevicePrefersPrimaryCommandsProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_InputDevicePrefersPrimaryCommandsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.isopenproperty) + public class var isOpenProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.lightdismissoverlaymodeproperty) + public class var lightDismissOverlayModeProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_LightDismissOverlayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.overlayinputpassthroughelementproperty) + public class var overlayInputPassThroughElementProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_OverlayInputPassThroughElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.placementproperty) + public class var placementProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_PlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.shouldconstraintorootboundsproperty) + public class var shouldConstrainToRootBoundsProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_ShouldConstrainToRootBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.showmodeproperty) + public class var showModeProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_ShowModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.targetproperty) + public class var targetProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics.get_TargetPropertyImpl() } + } + + private static let _IFlyoutBaseStatics2: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.FlyoutBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.systembackdropproperty) + public class var systemBackdropProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutBaseStatics2.get_SystemBackdropPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.showat) + public func showAt(_ placementTarget: WinUI.FrameworkElement!) throws { + try _default.ShowAtImpl(placementTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.showat) + public func showAt(_ placementTarget: WinUI.DependencyObject!, _ showOptions: FlyoutShowOptions!) throws { + try _default.ShowAtWithOptionsImpl(placementTarget, showOptions) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.hide) + public func hide() throws { + try _default.HideImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.tryinvokekeyboardaccelerator) + public func tryInvokeKeyboardAccelerator(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs!) throws { + try _default.TryInvokeKeyboardAcceleratorImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.allowfocusoninteraction) + public var allowFocusOnInteraction : Bool { + get { try! _default.get_AllowFocusOnInteractionImpl() } + set { try! _default.put_AllowFocusOnInteractionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.allowfocuswhendisabled) + public var allowFocusWhenDisabled : Bool { + get { try! _default.get_AllowFocusWhenDisabledImpl() } + set { try! _default.put_AllowFocusWhenDisabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.areopencloseanimationsenabled) + public var areOpenCloseAnimationsEnabled : Bool { + get { try! _default.get_AreOpenCloseAnimationsEnabledImpl() } + set { try! _default.put_AreOpenCloseAnimationsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.elementsoundmode) + public var elementSoundMode : WinUI.ElementSoundMode { + get { try! _default.get_ElementSoundModeImpl() } + set { try! _default.put_ElementSoundModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.inputdeviceprefersprimarycommands) + public var inputDevicePrefersPrimaryCommands : Bool { + get { try! _default.get_InputDevicePrefersPrimaryCommandsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.isconstrainedtorootbounds) + public var isConstrainedToRootBounds : Bool { + get { try! _default.get_IsConstrainedToRootBoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.lightdismissoverlaymode) + public var lightDismissOverlayMode : WinUI.LightDismissOverlayMode { + get { try! _default.get_LightDismissOverlayModeImpl() } + set { try! _default.put_LightDismissOverlayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.overlayinputpassthroughelement) + public var overlayInputPassThroughElement : WinUI.DependencyObject! { + get { try! _default.get_OverlayInputPassThroughElementImpl() } + set { try! _default.put_OverlayInputPassThroughElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.placement) + public var placement : FlyoutPlacementMode { + get { try! _default.get_PlacementImpl() } + set { try! _default.put_PlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.shouldconstraintorootbounds) + public var shouldConstrainToRootBounds : Bool { + get { try! _default.get_ShouldConstrainToRootBoundsImpl() } + set { try! _default.put_ShouldConstrainToRootBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.showmode) + public var showMode : FlyoutShowMode { + get { try! _default.get_ShowModeImpl() } + set { try! _default.put_ShowModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.target) + public var target : WinUI.FrameworkElement! { + get { try! _default.get_TargetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.xamlroot) + public var xamlRoot : WinUI.XamlRoot! { + get { try! _default.get_XamlRootImpl() } + set { try! _default.put_XamlRootImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.closed) + public 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.xaml.controls.primitives.flyoutbase.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.xaml.controls.primitives.flyoutbase.opened) + public lazy var opened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.opening) + public lazy var opening : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpeningImpl($0) + } + ) + }() + + private lazy var _IFlyoutBase2: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBase2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.systembackdrop) + public var systemBackdrop : WinUI.SystemBackdrop! { + get { try! _IFlyoutBase2.get_SystemBackdropImpl() } + set { try! _IFlyoutBase2.put_SystemBackdropImpl(newValue) } + } + + private lazy var _IFlyoutBaseOverrides: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.createpresenter) + open func createPresenter() throws -> WinUI.Control! { + try _IFlyoutBaseOverrides.CreatePresenterImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbase.onprocesskeyboardaccelerators) + open func onProcessKeyboardAccelerators(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs!) throws { + try _IFlyoutBaseOverrides.OnProcessKeyboardAcceleratorsImpl(args) + } + + internal enum IFlyoutBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverrides + internal typealias Class = FlyoutBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBase + } + } + internal typealias Composable = IFlyoutBaseOverrides + deinit { + _default = nil + _IFlyoutBase2 = nil + _IFlyoutBaseOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutbaseclosingeventargs) +public final class FlyoutBaseClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs + 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_CXaml_CControls_CPrimitives_CIFlyoutBaseClosingEventArgs>?) -> FlyoutBaseClosingEventArgs? { + 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.xaml.controls.primitives.flyoutbaseclosingeventargs.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.xaml.controls.primitives.flyoutshowoptions) +open class FlyoutShowOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutShowOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions + 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_CXaml_CControls_CPrimitives_CIFlyoutShowOptions>?) -> FlyoutShowOptions? { + 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 _IFlyoutShowOptionsFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutShowOptionsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.FlyoutShowOptions")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IFlyoutShowOptionsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutshowoptions.exclusionrect) + public var exclusionRect : WindowsFoundation.Rect? { + get { try! _default.get_ExclusionRectImpl() } + set { try! _default.put_ExclusionRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutshowoptions.placement) + public var placement : FlyoutPlacementMode { + get { try! _default.get_PlacementImpl() } + set { try! _default.put_PlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutshowoptions.position) + public var position : WindowsFoundation.Point? { + get { try! _default.get_PositionImpl() } + set { try! _default.put_PositionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.flyoutshowoptions.showmode) + public var showMode : FlyoutShowMode { + get { try! _default.get_ShowModeImpl() } + set { try! _default.put_ShowModeImpl(newValue) } + } + + internal enum IFlyoutShowOptions : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = FlyoutShowOptions + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutShowOptions + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutShowOptions + } + } + internal typealias Composable = IFlyoutShowOptions + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.itemschangedeventargs) +public final class ItemsChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IItemsChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs + 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_CXaml_CControls_CPrimitives_CIItemsChangedEventArgs>?) -> ItemsChangedEventArgs? { + 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.xaml.controls.primitives.itemschangedeventargs.action) + public var action : Int32 { + get { try! _default.get_ActionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.itemschangedeventargs.itemcount) + public var itemCount : Int32 { + get { try! _default.get_ItemCountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.itemschangedeventargs.itemuicount) + public var itemUICount : Int32 { + get { try! _default.get_ItemUICountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.itemschangedeventargs.oldposition) + public var oldPosition : GeneratorPosition { + get { try! _default.get_OldPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.itemschangedeventargs.position) + public var position : GeneratorPosition { + get { try! _default.get_PositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.listviewitemtemplatesettings) +public final class ListViewItemTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IListViewItemTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIListViewItemTemplateSettings + 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_CXaml_CControls_CPrimitives_CIListViewItemTemplateSettings>?) -> ListViewItemTemplateSettings? { + 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.xaml.controls.primitives.listviewitemtemplatesettings.dragitemscount) + public var dragItemsCount : Int32 { + get { try! _default.get_DragItemsCountImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.menuflyoutitemtemplatesettings) +public final class MenuFlyoutItemTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IMenuFlyoutItemTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIMenuFlyoutItemTemplateSettings + 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_CXaml_CControls_CPrimitives_CIMenuFlyoutItemTemplateSettings>?) -> MenuFlyoutItemTemplateSettings? { + 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.xaml.controls.primitives.menuflyoutitemtemplatesettings.keyboardacceleratortextminwidth) + public var keyboardAcceleratorTextMinWidth : Double { + get { try! _default.get_KeyboardAcceleratorTextMinWidthImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup) +public final class Popup : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopup + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup + 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_CXaml_CControls_CPrimitives_CIPopup>?) -> Popup? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.Primitives.Popup"))) + } + + private static let _IPopupStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopupStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.Popup")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.childproperty) + public static var childProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_ChildPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.childtransitionsproperty) + public static var childTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_ChildTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.horizontaloffsetproperty) + public static var horizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_HorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.islightdismissenabledproperty) + public static var isLightDismissEnabledProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_IsLightDismissEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.isopenproperty) + public static var isOpenProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.lightdismissoverlaymodeproperty) + public static var lightDismissOverlayModeProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_LightDismissOverlayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.shouldconstraintorootboundsproperty) + public static var shouldConstrainToRootBoundsProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_ShouldConstrainToRootBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.verticaloffsetproperty) + public static var verticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics.get_VerticalOffsetPropertyImpl() } + } + + private static let _IPopupStatics2: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopupStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.Popup")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.desiredplacementproperty) + public static var desiredPlacementProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics2.get_DesiredPlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.placementtargetproperty) + public static var placementTargetProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics2.get_PlacementTargetPropertyImpl() } + } + + private static let _IPopupStatics3: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopupStatics3 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.Popup")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.systembackdropproperty) + public static var systemBackdropProperty : WinUI.DependencyProperty! { + get { try! _IPopupStatics3.get_SystemBackdropPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.child) + public var child : WinUI.UIElement! { + get { try! _default.get_ChildImpl() } + set { try! _default.put_ChildImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.childtransitions) + public var childTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ChildTransitionsImpl() } + set { try! _default.put_ChildTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + set { try! _default.put_HorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.isconstrainedtorootbounds) + public var isConstrainedToRootBounds : Bool { + get { try! _default.get_IsConstrainedToRootBoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.islightdismissenabled) + public var isLightDismissEnabled : Bool { + get { try! _default.get_IsLightDismissEnabledImpl() } + set { try! _default.put_IsLightDismissEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + set { try! _default.put_IsOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.lightdismissoverlaymode) + public var lightDismissOverlayMode : WinUI.LightDismissOverlayMode { + get { try! _default.get_LightDismissOverlayModeImpl() } + set { try! _default.put_LightDismissOverlayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.shouldconstraintorootbounds) + public var shouldConstrainToRootBounds : Bool { + get { try! _default.get_ShouldConstrainToRootBoundsImpl() } + set { try! _default.put_ShouldConstrainToRootBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + set { try! _default.put_VerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.closed) + public 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.xaml.controls.primitives.popup.opened) + public lazy var opened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + private lazy var _IPopup2: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopup2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.actualplacement) + public var actualPlacement : PopupPlacementMode { + get { try! _IPopup2.get_ActualPlacementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.desiredplacement) + public var desiredPlacement : PopupPlacementMode { + get { try! _IPopup2.get_DesiredPlacementImpl() } + set { try! _IPopup2.put_DesiredPlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.placementtarget) + public var placementTarget : WinUI.FrameworkElement! { + get { try! _IPopup2.get_PlacementTargetImpl() } + set { try! _IPopup2.put_PlacementTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.actualplacementchanged) + public lazy var actualPlacementChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IPopup2 else { return .init() } + return try! this.add_ActualPlacementChangedImpl($0) + }, + remove: { [weak self] in + try? self?._IPopup2.remove_ActualPlacementChangedImpl($0) + } + ) + }() + + private lazy var _IPopup3: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopup3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.popup.systembackdrop) + public var systemBackdrop : WinUI.SystemBackdrop! { + get { try! _IPopup3.get_SystemBackdropImpl() } + set { try! _IPopup3.put_SystemBackdropImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Popup + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIPopup + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IPopup + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + _IPopup2 = nil + _IPopup3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase) +open class RangeBase : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase + 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_CXaml_CControls_CPrimitives_CIRangeBase>?) -> RangeBase? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IRangeBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.RangeBase")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IRangeBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IRangeBaseStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.RangeBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.largechangeproperty) + public class var largeChangeProperty : WinUI.DependencyProperty! { + get { try! _IRangeBaseStatics.get_LargeChangePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.maximumproperty) + public class var maximumProperty : WinUI.DependencyProperty! { + get { try! _IRangeBaseStatics.get_MaximumPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.minimumproperty) + public class var minimumProperty : WinUI.DependencyProperty! { + get { try! _IRangeBaseStatics.get_MinimumPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.smallchangeproperty) + public class var smallChangeProperty : WinUI.DependencyProperty! { + get { try! _IRangeBaseStatics.get_SmallChangePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IRangeBaseStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.largechange) + public var largeChange : Double { + get { try! _default.get_LargeChangeImpl() } + set { try! _default.put_LargeChangeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.maximum) + public var maximum : Double { + get { try! _default.get_MaximumImpl() } + set { try! _default.put_MaximumImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.minimum) + public var minimum : Double { + get { try! _default.get_MinimumImpl() } + set { try! _default.put_MinimumImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.smallchange) + public var smallChange : Double { + get { try! _default.get_SmallChangeImpl() } + set { try! _default.put_SmallChangeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.value) + public var value : Double { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.valuechanged) + public lazy var valueChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ValueChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ValueChangedImpl($0) + } + ) + }() + + private lazy var _IRangeBaseOverrides: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.onminimumchanged) + open func onMinimumChanged(_ oldMinimum: Double, _ newMinimum: Double) throws { + try _IRangeBaseOverrides.OnMinimumChangedImpl(oldMinimum, newMinimum) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.onmaximumchanged) + open func onMaximumChanged(_ oldMaximum: Double, _ newMaximum: Double) throws { + try _IRangeBaseOverrides.OnMaximumChangedImpl(oldMaximum, newMaximum) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebase.onvaluechanged) + open func onValueChanged(_ oldValue: Double, _ newValue: Double) throws { + try _IRangeBaseOverrides.OnValueChangedImpl(oldValue, newValue) + } + + internal enum IRangeBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverrides + internal typealias Class = RangeBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBase + } + } + internal typealias Composable = IRangeBaseOverrides + deinit { + _default = nil + _IRangeBaseOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebasevaluechangedeventargs) +public final class RangeBaseValueChangedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseValueChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs + 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_CXaml_CControls_CPrimitives_CIRangeBaseValueChangedEventArgs>?) -> RangeBaseValueChangedEventArgs? { + 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.xaml.controls.primitives.rangebasevaluechangedeventargs.newvalue) + public var newValue : Double { + get { try! _default.get_NewValueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.rangebasevaluechangedeventargs.oldvalue) + public var oldValue : Double { + get { try! _default.get_OldValueImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrolleraddscrollvelocityrequestedeventargs) +public final class ScrollControllerAddScrollVelocityRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerAddScrollVelocityRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs + 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_CXaml_CControls_CPrimitives_CIScrollControllerAddScrollVelocityRequestedEventArgs>?) -> ScrollControllerAddScrollVelocityRequestedEventArgs? { + 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 _IScrollControllerAddScrollVelocityRequestedEventArgsFactory: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerAddScrollVelocityRequestedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollControllerAddScrollVelocityRequestedEventArgs")) + public init(_ offsetVelocity: Float, _ inertiaDecayRate: Float?) { + super.init(try! Self._IScrollControllerAddScrollVelocityRequestedEventArgsFactory.CreateInstanceImpl(offsetVelocity, inertiaDecayRate)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrolleraddscrollvelocityrequestedeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + set { try! _default.put_CorrelationIdImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrolleraddscrollvelocityrequestedeventargs.inertiadecayrate) + public var inertiaDecayRate : Float? { + get { try! _default.get_InertiaDecayRateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrolleraddscrollvelocityrequestedeventargs.offsetvelocity) + public var offsetVelocity : Float { + get { try! _default.get_OffsetVelocityImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerpanrequestedeventargs) +public final class ScrollControllerPanRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs + 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_CXaml_CControls_CPrimitives_CIScrollControllerPanRequestedEventArgs>?) -> ScrollControllerPanRequestedEventArgs? { + 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 _IScrollControllerPanRequestedEventArgsFactory: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanRequestedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollControllerPanRequestedEventArgs")) + public init(_ pointerPoint: WinAppSDK.PointerPoint!) { + super.init(try! Self._IScrollControllerPanRequestedEventArgsFactory.CreateInstanceImpl(pointerPoint)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerpanrequestedeventargs.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.xaml.controls.primitives.scrollcontrollerpanrequestedeventargs.pointerpoint) + public var pointerPoint : WinAppSDK.PointerPoint! { + get { try! _default.get_PointerPointImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrollbyrequestedeventargs) +public final class ScrollControllerScrollByRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerScrollByRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs + 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_CXaml_CControls_CPrimitives_CIScrollControllerScrollByRequestedEventArgs>?) -> ScrollControllerScrollByRequestedEventArgs? { + 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 _IScrollControllerScrollByRequestedEventArgsFactory: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerScrollByRequestedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollControllerScrollByRequestedEventArgs")) + public init(_ offsetDelta: Double, _ options: WinUI.ScrollingScrollOptions!) { + super.init(try! Self._IScrollControllerScrollByRequestedEventArgsFactory.CreateInstanceImpl(offsetDelta, options)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrollbyrequestedeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + set { try! _default.put_CorrelationIdImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrollbyrequestedeventargs.offsetdelta) + public var offsetDelta : Double { + get { try! _default.get_OffsetDeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrollbyrequestedeventargs.options) + public var options : WinUI.ScrollingScrollOptions! { + get { try! _default.get_OptionsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrolltorequestedeventargs) +public final class ScrollControllerScrollToRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerScrollToRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs + 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_CXaml_CControls_CPrimitives_CIScrollControllerScrollToRequestedEventArgs>?) -> ScrollControllerScrollToRequestedEventArgs? { + 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 _IScrollControllerScrollToRequestedEventArgsFactory: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerScrollToRequestedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollControllerScrollToRequestedEventArgs")) + public init(_ offset: Double, _ options: WinUI.ScrollingScrollOptions!) { + super.init(try! Self._IScrollControllerScrollToRequestedEventArgsFactory.CreateInstanceImpl(offset, options)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrolltorequestedeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + set { try! _default.put_CorrelationIdImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrolltorequestedeventargs.offset) + public var offset : Double { + get { try! _default.get_OffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollcontrollerscrolltorequestedeventargs.options) + public var options : WinUI.ScrollingScrollOptions! { + get { try! _default.get_OptionsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter) +open class ScrollPresenter : WinUI.FrameworkElement, WinUI.IScrollAnchorProvider { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter + 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_CXaml_CControls_CPrimitives_CIScrollPresenter>?) -> ScrollPresenter? { + 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 _IScrollPresenterFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollPresenterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollPresenter")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IScrollPresenterFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IScrollPresenterStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollPresenterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.computedhorizontalscrollmodeproperty) + public class var computedHorizontalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ComputedHorizontalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.computedverticalscrollmodeproperty) + public class var computedVerticalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ComputedVerticalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.contentorientationproperty) + public class var contentOrientationProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ContentOrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalanchorratioproperty) + public class var horizontalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_HorizontalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollchainmodeproperty) + public class var horizontalScrollChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_HorizontalScrollChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollmodeproperty) + public class var horizontalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_HorizontalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollrailmodeproperty) + public class var horizontalScrollRailModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_HorizontalScrollRailModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.ignoredinputkindsproperty) + public class var ignoredInputKindsProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_IgnoredInputKindsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.maxzoomfactorproperty) + public class var maxZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_MaxZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.minzoomfactorproperty) + public class var minZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_MinZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalanchorratioproperty) + public class var verticalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_VerticalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollchainmodeproperty) + public class var verticalScrollChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_VerticalScrollChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollmodeproperty) + public class var verticalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_VerticalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollrailmodeproperty) + public class var verticalScrollRailModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_VerticalScrollRailModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomchainmodeproperty) + public class var zoomChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ZoomChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoommodeproperty) + public class var zoomModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollPresenterStatics.get_ZoomModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollto) + public func scrollTo(_ horizontalOffset: Double, _ verticalOffset: Double) throws -> Int32 { + try _default.ScrollToImpl(horizontalOffset, verticalOffset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollto) + public func scrollTo(_ horizontalOffset: Double, _ verticalOffset: Double, _ options: WinUI.ScrollingScrollOptions!) throws -> Int32 { + try _default.ScrollToWithOptionsImpl(horizontalOffset, verticalOffset, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollby) + public func scrollBy(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double) throws -> Int32 { + try _default.ScrollByImpl(horizontalOffsetDelta, verticalOffsetDelta) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollby) + public func scrollBy(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double, _ options: WinUI.ScrollingScrollOptions!) throws -> Int32 { + try _default.ScrollByWithOptionsImpl(horizontalOffsetDelta, verticalOffsetDelta, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.addscrollvelocity) + public func addScrollVelocity(_ offsetsVelocity: WindowsFoundation.Vector2, _ inertiaDecayRate: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.AddScrollVelocityImpl(offsetsVelocity, inertiaDecayRate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomto) + public func zoomTo(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.ZoomToImpl(zoomFactor, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomto) + public func zoomTo(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions!) throws -> Int32 { + try _default.ZoomToWithOptionsImpl(zoomFactor, centerPoint, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomby) + public func zoomBy(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.ZoomByImpl(zoomFactorDelta, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomby) + public func zoomBy(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: WinUI.ScrollingZoomOptions!) throws -> Int32 { + try _default.ZoomByWithOptionsImpl(zoomFactorDelta, centerPoint, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.addzoomvelocity) + public func addZoomVelocity(_ zoomFactorVelocity: Float, _ centerPoint: WindowsFoundation.Vector2?, _ inertiaDecayRate: Float?) throws -> Int32 { + try _default.AddZoomVelocityImpl(zoomFactorVelocity, centerPoint, inertiaDecayRate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.computedhorizontalscrollmode) + public var computedHorizontalScrollMode : WinUI.ScrollingScrollMode { + get { try! _default.get_ComputedHorizontalScrollModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.computedverticalscrollmode) + public var computedVerticalScrollMode : WinUI.ScrollingScrollMode { + get { try! _default.get_ComputedVerticalScrollModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.contentorientation) + public var contentOrientation : WinUI.ScrollingContentOrientation { + get { try! _default.get_ContentOrientationImpl() } + set { try! _default.put_ContentOrientationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.expressionanimationsources) + public var expressionAnimationSources : WinAppSDK.CompositionPropertySet! { + get { try! _default.get_ExpressionAnimationSourcesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.extentheight) + public var extentHeight : Double { + get { try! _default.get_ExtentHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.extentwidth) + public var extentWidth : Double { + get { try! _default.get_ExtentWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalanchorratio) + public var horizontalAnchorRatio : Double { + get { try! _default.get_HorizontalAnchorRatioImpl() } + set { try! _default.put_HorizontalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollchainmode) + public var horizontalScrollChainMode : WinUI.ScrollingChainMode { + get { try! _default.get_HorizontalScrollChainModeImpl() } + set { try! _default.put_HorizontalScrollChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollcontroller) + public var horizontalScrollController : AnyIScrollController! { + get { try! _default.get_HorizontalScrollControllerImpl() } + set { try! _default.put_HorizontalScrollControllerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollmode) + public var horizontalScrollMode : WinUI.ScrollingScrollMode { + get { try! _default.get_HorizontalScrollModeImpl() } + set { try! _default.put_HorizontalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalscrollrailmode) + public var horizontalScrollRailMode : WinUI.ScrollingRailMode { + get { try! _default.get_HorizontalScrollRailModeImpl() } + set { try! _default.put_HorizontalScrollRailModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.horizontalsnappoints) + public var horizontalSnapPoints : WindowsFoundation.AnyIVector! { + get { try! _default.get_HorizontalSnapPointsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.ignoredinputkinds) + public var ignoredInputKinds : WinUI.ScrollingInputKinds { + get { try! _default.get_IgnoredInputKindsImpl() } + set { try! _default.put_IgnoredInputKindsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.maxzoomfactor) + public var maxZoomFactor : Double { + get { try! _default.get_MaxZoomFactorImpl() } + set { try! _default.put_MaxZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.minzoomfactor) + public var minZoomFactor : Double { + get { try! _default.get_MinZoomFactorImpl() } + set { try! _default.put_MinZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollableheight) + public var scrollableHeight : Double { + get { try! _default.get_ScrollableHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollablewidth) + public var scrollableWidth : Double { + get { try! _default.get_ScrollableWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.state) + public var state : WinUI.ScrollingInteractionState { + get { try! _default.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalanchorratio) + public var verticalAnchorRatio : Double { + get { try! _default.get_VerticalAnchorRatioImpl() } + set { try! _default.put_VerticalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollchainmode) + public var verticalScrollChainMode : WinUI.ScrollingChainMode { + get { try! _default.get_VerticalScrollChainModeImpl() } + set { try! _default.put_VerticalScrollChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollcontroller) + public var verticalScrollController : AnyIScrollController! { + get { try! _default.get_VerticalScrollControllerImpl() } + set { try! _default.put_VerticalScrollControllerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollmode) + public var verticalScrollMode : WinUI.ScrollingScrollMode { + get { try! _default.get_VerticalScrollModeImpl() } + set { try! _default.put_VerticalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalscrollrailmode) + public var verticalScrollRailMode : WinUI.ScrollingRailMode { + get { try! _default.get_VerticalScrollRailModeImpl() } + set { try! _default.put_VerticalScrollRailModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.verticalsnappoints) + public var verticalSnapPoints : WindowsFoundation.AnyIVector! { + get { try! _default.get_VerticalSnapPointsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.viewportheight) + public var viewportHeight : Double { + get { try! _default.get_ViewportHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.viewportwidth) + public var viewportWidth : Double { + get { try! _default.get_ViewportWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomchainmode) + public var zoomChainMode : WinUI.ScrollingChainMode { + get { try! _default.get_ZoomChainModeImpl() } + set { try! _default.put_ZoomChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomfactor) + public var zoomFactor : Float { + get { try! _default.get_ZoomFactorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoommode) + public var zoomMode : WinUI.ScrollingZoomMode { + get { try! _default.get_ZoomModeImpl() } + set { try! _default.put_ZoomModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomsnappoints) + public var zoomSnapPoints : WindowsFoundation.AnyIVector! { + get { try! _default.get_ZoomSnapPointsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.anchorrequested) + public lazy var anchorRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AnchorRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AnchorRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.bringingintoview) + public lazy var bringingIntoView : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_BringingIntoViewImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_BringingIntoViewImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.extentchanged) + public lazy var extentChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ExtentChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ExtentChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollanimationstarting) + public lazy var scrollAnimationStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollAnimationStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollAnimationStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.scrollcompleted) + public lazy var scrollCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.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) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.viewchanged) + public lazy var viewChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomanimationstarting) + public lazy var zoomAnimationStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ZoomAnimationStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ZoomAnimationStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.zoomcompleted) + public lazy var zoomCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ZoomCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ZoomCompletedImpl($0) + } + ) + }() + + private lazy var _IScrollAnchorProvider: __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProvider! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.registeranchorcandidate) + public func registerAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _IScrollAnchorProvider.RegisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.unregisteranchorcandidate) + public func unregisterAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _IScrollAnchorProvider.UnregisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollpresenter.currentanchor) + public var currentAnchor : WinUI.UIElement! { + get { try! _IScrollAnchorProvider.get_CurrentAnchorImpl() } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = ScrollPresenter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollPresenter + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollPresenter + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + _IScrollAnchorProvider = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollsnappointbase) +open class ScrollSnapPointBase : WinUI.SnapPointBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBase + 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_CXaml_CControls_CPrimitives_CIScrollSnapPointBase>?) -> ScrollSnapPointBase? { + 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 _IScrollSnapPointBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ScrollSnapPointBase")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.scrollsnappointbase.alignment) + public var alignment : ScrollSnapPointsAlignment { + get { try! _default.get_AlignmentImpl() } + } + + internal enum IScrollSnapPointBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ScrollSnapPointBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIScrollSnapPointBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointBase + } + } + internal typealias Composable = IScrollSnapPointBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector) +open class Selector : WinUI.ItemsControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelector + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector + 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_CXaml_CControls_CPrimitives_CISelector>?) -> Selector? { + 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 _ISelectorFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.Selector")) + + private static let _ISelectorStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.Selector")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.getisselectionactive) + public class func getIsSelectionActive(_ element: WinUI.DependencyObject!) -> Bool { + return try! _ISelectorStatics.GetIsSelectionActiveImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.issynchronizedwithcurrentitemproperty) + public class var isSynchronizedWithCurrentItemProperty : WinUI.DependencyProperty! { + get { try! _ISelectorStatics.get_IsSynchronizedWithCurrentItemPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedindexproperty) + public class var selectedIndexProperty : WinUI.DependencyProperty! { + get { try! _ISelectorStatics.get_SelectedIndexPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selecteditemproperty) + public class var selectedItemProperty : WinUI.DependencyProperty! { + get { try! _ISelectorStatics.get_SelectedItemPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedvaluepathproperty) + public class var selectedValuePathProperty : WinUI.DependencyProperty! { + get { try! _ISelectorStatics.get_SelectedValuePathPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedvalueproperty) + public class var selectedValueProperty : WinUI.DependencyProperty! { + get { try! _ISelectorStatics.get_SelectedValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.issynchronizedwithcurrentitem) + public var isSynchronizedWithCurrentItem : Bool? { + get { try! _default.get_IsSynchronizedWithCurrentItemImpl() } + set { try! _default.put_IsSynchronizedWithCurrentItemImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedindex) + public var selectedIndex : Int32 { + get { try! _default.get_SelectedIndexImpl() } + set { try! _default.put_SelectedIndexImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selecteditem) + public var selectedItem : Any! { + get { try! _default.get_SelectedItemImpl() } + set { try! _default.put_SelectedItemImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedvalue) + public var selectedValue : Any! { + get { try! _default.get_SelectedValueImpl() } + set { try! _default.put_SelectedValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectedvaluepath) + public var selectedValuePath : String { + get { try! _default.get_SelectedValuePathImpl() } + set { try! _default.put_SelectedValuePathImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selector.selectionchanged) + public lazy var selectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectionChangedImpl($0) + } + ) + }() + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = Selector + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelector + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelector + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selectoritem) +open class SelectorItem : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem + 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_CXaml_CControls_CPrimitives_CISelectorItem>?) -> SelectorItem? { + 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 _ISelectorItemFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.SelectorItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISelectorItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ISelectorItemStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.SelectorItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selectoritem.isselectedproperty) + public class var isSelectedProperty : WinUI.DependencyProperty! { + get { try! _ISelectorItemStatics.get_IsSelectedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.selectoritem.isselected) + public var isSelected : Bool { + get { try! _default.get_IsSelectedImpl() } + set { try! _default.put_IsSelectedImpl(newValue) } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = SelectorItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISelectorItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISelectorItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.snappointbase) +open class SnapPointBase : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISnapPointBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBase + 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_CXaml_CControls_CPrimitives_CISnapPointBase>?) -> SnapPointBase? { + 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 _ISnapPointBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISnapPointBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.SnapPointBase")) + + internal enum ISnapPointBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = SnapPointBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISnapPointBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISnapPointBase + } + } + internal typealias Composable = ISnapPointBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings) +public final class SplitViewTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.ISplitViewTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings + 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_CXaml_CControls_CPrimitives_CISplitViewTemplateSettings>?) -> SplitViewTemplateSettings? { + 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.xaml.controls.primitives.splitviewtemplatesettings.compactpanegridlength) + public var compactPaneGridLength : WinUI.GridLength { + get { try! _default.get_CompactPaneGridLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings.negativeopenpanelength) + public var negativeOpenPaneLength : Double { + get { try! _default.get_NegativeOpenPaneLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings.negativeopenpanelengthminuscompactlength) + public var negativeOpenPaneLengthMinusCompactLength : Double { + get { try! _default.get_NegativeOpenPaneLengthMinusCompactLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings.openpanegridlength) + public var openPaneGridLength : WinUI.GridLength { + get { try! _default.get_OpenPaneGridLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings.openpanelength) + public var openPaneLength : Double { + get { try! _default.get_OpenPaneLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.splitviewtemplatesettings.openpanelengthminuscompactlength) + public var openPaneLengthMinusCompactLength : Double { + get { try! _default.get_OpenPaneLengthMinusCompactLengthImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton) +open class ToggleButton : WinUI.ButtonBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButton + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton + 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_CXaml_CControls_CPrimitives_CIToggleButton>?) -> ToggleButton? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IToggleButtonFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ToggleButton")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IToggleButtonFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IToggleButtonStatics: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ToggleButton")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.ischeckedproperty) + public class var isCheckedProperty : WinUI.DependencyProperty! { + get { try! _IToggleButtonStatics.get_IsCheckedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.isthreestateproperty) + public class var isThreeStateProperty : WinUI.DependencyProperty! { + get { try! _IToggleButtonStatics.get_IsThreeStatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.ischecked) + public var isChecked : Bool? { + get { try! _default.get_IsCheckedImpl() } + set { try! _default.put_IsCheckedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.isthreestate) + public var isThreeState : Bool { + get { try! _default.get_IsThreeStateImpl() } + set { try! _default.put_IsThreeStateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.checked) + public lazy var checked : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CheckedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CheckedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.indeterminate) + public lazy var indeterminate : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_IndeterminateImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_IndeterminateImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.unchecked) + public lazy var unchecked : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_UncheckedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_UncheckedImpl($0) + } + ) + }() + + private lazy var _IToggleButtonOverrides: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.togglebutton.ontoggle) + open func onToggle() throws { + try _IToggleButtonOverrides.OnToggleImpl() + } + + internal enum IToggleButtonOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverrides + internal typealias Class = ToggleButton + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButton + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButton + } + } + internal typealias Composable = IToggleButtonOverrides + deinit { + _default = nil + _IToggleButtonOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings) +public final class ToggleSwitchTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleSwitchTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings + 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_CXaml_CControls_CPrimitives_CIToggleSwitchTemplateSettings>?) -> ToggleSwitchTemplateSettings? { + 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.xaml.controls.primitives.toggleswitchtemplatesettings.curtaincurrenttooffoffset) + public var curtainCurrentToOffOffset : Double { + get { try! _default.get_CurtainCurrentToOffOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.curtaincurrenttoonoffset) + public var curtainCurrentToOnOffset : Double { + get { try! _default.get_CurtainCurrentToOnOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.curtainofftoonoffset) + public var curtainOffToOnOffset : Double { + get { try! _default.get_CurtainOffToOnOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.curtainontooffoffset) + public var curtainOnToOffOffset : Double { + get { try! _default.get_CurtainOnToOffOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.knobcurrenttooffoffset) + public var knobCurrentToOffOffset : Double { + get { try! _default.get_KnobCurrentToOffOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.knobcurrenttoonoffset) + public var knobCurrentToOnOffset : Double { + get { try! _default.get_KnobCurrentToOnOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.knobofftoonoffset) + public var knobOffToOnOffset : Double { + get { try! _default.get_KnobOffToOnOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.toggleswitchtemplatesettings.knobontooffoffset) + public var knobOnToOffOffset : Double { + get { try! _default.get_KnobOnToOffOffsetImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.tooltiptemplatesettings) +public final class ToolTipTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToolTipTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings + 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_CXaml_CControls_CPrimitives_CIToolTipTemplateSettings>?) -> ToolTipTemplateSettings? { + 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.xaml.controls.primitives.tooltiptemplatesettings.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.tooltiptemplatesettings.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.zoomsnappointbase) +open class ZoomSnapPointBase : WinUI.SnapPointBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IZoomSnapPointBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBase + 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_CXaml_CControls_CPrimitives_CIZoomSnapPointBase>?) -> ZoomSnapPointBase? { + 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 _IZoomSnapPointBaseFactory : __ABI_Microsoft_UI_Xaml_Controls_Primitives.IZoomSnapPointBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Primitives.ZoomSnapPointBase")) + + internal enum IZoomSnapPointBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ZoomSnapPointBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIZoomSnapPointBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IZoomSnapPointBase + } + } + internal typealias Composable = IZoomSnapPointBase + deinit { + _default = nil + } +} + +public typealias ItemsChangedEventHandler = (Any?, ItemsChangedEventArgs?) -> () +public typealias RangeBaseValueChangedEventHandler = (Any?, RangeBaseValueChangedEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.generatorposition) +public struct GeneratorPosition: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.generatorposition.index) + public var index: Int32 = 0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.generatorposition.offset) + public var offset: Int32 = 0 + public init() {} + public init(index: Int32, offset: Int32) { + self.index = index + self.offset = offset + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorPosition) -> GeneratorPosition { + .init(index: abi.Index, offset: abi.Offset) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller) +public protocol IScrollController : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.setisscrollable) + func setIsScrollable(_ isScrollable: Bool) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.setvalues) + func setValues(_ minOffset: Double, _ maxOffset: Double, _ offset: Double, _ viewportLength: Double) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.getscrollanimation) + func getScrollAnimation(_ correlationId: Int32, _ startPosition: WindowsFoundation.Vector2, _ endPosition: WindowsFoundation.Vector2, _ defaultAnimation: WinAppSDK.CompositionAnimation!) throws -> WinAppSDK.CompositionAnimation! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.notifyrequestedscrollcompleted) + func notifyRequestedScrollCompleted(_ correlationId: Int32) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.canscroll) + var canScroll: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.isscrollingwithmouse) + var isScrollingWithMouse: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.panninginfo) + var panningInfo: WinUI.AnyIScrollControllerPanningInfo! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.addscrollvelocityrequested) + var addScrollVelocityRequested: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.canscrollchanged) + var canScrollChanged: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.isscrollingwithmousechanged) + var isScrollingWithMouseChanged: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.scrollbyrequested) + var scrollByRequested: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontroller.scrolltorequested) + var scrollToRequested: Event> { get } +} + +extension IScrollController { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIScrollController = any IScrollController + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo) +public protocol IScrollControllerPanningInfo : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.setpanningelementexpressionanimationsources) + func setPanningElementExpressionAnimationSources(_ propertySet: WinAppSDK.CompositionPropertySet!, _ minOffsetPropertyName: String, _ maxOffsetPropertyName: String, _ offsetPropertyName: String, _ multiplierPropertyName: String) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.israilenabled) + var isRailEnabled: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.panorientation) + var panOrientation: WinUI.Orientation { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.panningelementancestor) + var panningElementAncestor: WinUI.UIElement! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.changed) + var changed: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollcontrollerpanninginfo.panrequested) + var panRequested: Event> { get } +} + +extension IScrollControllerPanningInfo { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIScrollControllerPanningInfo = any IScrollControllerPanningInfo + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo) +public protocol IScrollSnapPointsInfo : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.getirregularsnappoints) + func getIrregularSnapPoints(_ orientation: WinUI.Orientation, _ alignment: WinUI.SnapPointsAlignment) throws -> WindowsFoundation.AnyIVectorView! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.getregularsnappoints) + func getRegularSnapPoints(_ orientation: WinUI.Orientation, _ alignment: WinUI.SnapPointsAlignment, _ offset: inout Float) throws -> Float + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.arehorizontalsnappointsregular) + var areHorizontalSnapPointsRegular: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.areverticalsnappointsregular) + var areVerticalSnapPointsRegular: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.horizontalsnappointschanged) + var horizontalSnapPointsChanged: Event> { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.iscrollsnappointsinfo.verticalsnappointschanged) + var verticalSnapPointsChanged: Event> { get } +} + +extension IScrollSnapPointsInfo { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfoWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfoWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIScrollSnapPointsInfo = any IScrollSnapPointsInfo + +extension WinUI.AnimationDirection { + public static var left : WinUI.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection_Left + } + public static var top : WinUI.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection_Top + } + public static var right : WinUI.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection_Right + } + public static var bottom : WinUI.AnimationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection_Bottom + } +} +extension WinUI.AnimationDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ComponentResourceLocation { + public static var application : WinUI.ComponentResourceLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CComponentResourceLocation_Application + } + public static var nested : WinUI.ComponentResourceLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CComponentResourceLocation_Nested + } +} +extension WinUI.ComponentResourceLocation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.EdgeTransitionLocation { + public static var left : WinUI.EdgeTransitionLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation_Left + } + public static var top : WinUI.EdgeTransitionLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation_Top + } + public static var right : WinUI.EdgeTransitionLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation_Right + } + public static var bottom : WinUI.EdgeTransitionLocation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation_Bottom + } +} +extension WinUI.EdgeTransitionLocation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FlyoutPlacementMode { + public static var top : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Top + } + public static var bottom : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Bottom + } + public static var left : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Left + } + public static var right : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Right + } + public static var full : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Full + } + public static var topEdgeAlignedLeft : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_TopEdgeAlignedLeft + } + public static var topEdgeAlignedRight : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_TopEdgeAlignedRight + } + public static var bottomEdgeAlignedLeft : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_BottomEdgeAlignedLeft + } + public static var bottomEdgeAlignedRight : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_BottomEdgeAlignedRight + } + public static var leftEdgeAlignedTop : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_LeftEdgeAlignedTop + } + public static var leftEdgeAlignedBottom : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_LeftEdgeAlignedBottom + } + public static var rightEdgeAlignedTop : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_RightEdgeAlignedTop + } + public static var rightEdgeAlignedBottom : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_RightEdgeAlignedBottom + } + public static var auto : WinUI.FlyoutPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutPlacementMode_Auto + } +} +extension WinUI.FlyoutPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FlyoutShowMode { + public static var auto : WinUI.FlyoutShowMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode_Auto + } + public static var standard : WinUI.FlyoutShowMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode_Standard + } + public static var transient : WinUI.FlyoutShowMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode_Transient + } + public static var transientWithDismissOnPointerMoveAway : WinUI.FlyoutShowMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CFlyoutShowMode_TransientWithDismissOnPointerMoveAway + } +} +extension WinUI.FlyoutShowMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.GeneratorDirection { + public static var forward : WinUI.GeneratorDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorDirection_Forward + } + public static var backward : WinUI.GeneratorDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CGeneratorDirection_Backward + } +} +extension WinUI.GeneratorDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PlacementMode { + public static var bottom : WinUI.PlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode_Bottom + } + public static var left : WinUI.PlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode_Left + } + public static var mouse : WinUI.PlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode_Mouse + } + public static var right : WinUI.PlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode_Right + } + public static var top : WinUI.PlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPlacementMode_Top + } +} +extension WinUI.PlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PopupPlacementMode { + public static var auto : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_Auto + } + public static var top : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_Top + } + public static var bottom : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_Bottom + } + public static var left : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_Left + } + public static var right : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_Right + } + public static var topEdgeAlignedLeft : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_TopEdgeAlignedLeft + } + public static var topEdgeAlignedRight : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_TopEdgeAlignedRight + } + public static var bottomEdgeAlignedLeft : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_BottomEdgeAlignedLeft + } + public static var bottomEdgeAlignedRight : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_BottomEdgeAlignedRight + } + public static var leftEdgeAlignedTop : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_LeftEdgeAlignedTop + } + public static var leftEdgeAlignedBottom : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_LeftEdgeAlignedBottom + } + public static var rightEdgeAlignedTop : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_RightEdgeAlignedTop + } + public static var rightEdgeAlignedBottom : WinUI.PopupPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CPopupPlacementMode_RightEdgeAlignedBottom + } +} +extension WinUI.PopupPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollSnapPointsAlignment { + public static var near : WinUI.ScrollSnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CScrollSnapPointsAlignment_Near + } + public static var center : WinUI.ScrollSnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CScrollSnapPointsAlignment_Center + } + public static var far : WinUI.ScrollSnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CScrollSnapPointsAlignment_Far + } +} +extension WinUI.ScrollSnapPointsAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SliderSnapsTo { + public static var stepValues : WinUI.SliderSnapsTo { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSliderSnapsTo_StepValues + } + public static var ticks : WinUI.SliderSnapsTo { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSliderSnapsTo_Ticks + } +} +extension WinUI.SliderSnapsTo: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SnapPointsAlignment { + public static var near : WinUI.SnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment_Near + } + public static var center : WinUI.SnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment_Center + } + public static var far : WinUI.SnapPointsAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CSnapPointsAlignment_Far + } +} +extension WinUI.SnapPointsAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TickPlacement { + public static var none : WinUI.TickPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement_None + } + public static var topLeft : WinUI.TickPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement_TopLeft + } + public static var bottomRight : WinUI.TickPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement_BottomRight + } + public static var outside : WinUI.TickPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement_Outside + } + public static var inline : WinUI.TickPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CTickPlacement_Inline + } +} +extension WinUI.TickPlacement: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.swift new file mode 100644 index 0000000..0e6bb2f --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Controls.swift @@ -0,0 +1,18711 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbarcloseddisplaymode) +public typealias AppBarClosedDisplayMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CAppBarClosedDisplayMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.backgroundsizing) +public typealias BackgroundSizing = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.candidatewindowalignment) +public typealias CandidateWindowAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCandidateWindowAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.charactercasing) +public typealias CharacterCasing = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCharacterCasing +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.clickmode) +public typealias ClickMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CClickMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.comboboxselectionchangedtrigger) +public typealias ComboBoxSelectionChangedTrigger = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CComboBoxSelectionChangedTrigger +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogbutton) +public typealias ContentDialogButton = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogplacement) +public typealias ContentDialogPlacement = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogPlacement +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogresult) +public typealias ContentDialogResult = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.elementrealizationoptions) +public typealias ElementRealizationOptions = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CElementRealizationOptions +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.incrementalloadingtrigger) +public typealias IncrementalLoadingTrigger = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIncrementalLoadingTrigger +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.indexbasedlayoutorientation) +public typealias IndexBasedLayoutOrientation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIndexBasedLayoutOrientation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosereason) +public typealias InfoBarCloseReason = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarCloseReason +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarseverity) +public typealias InfoBarSeverity = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionoperation) +public typealias ItemCollectionTransitionOperation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionOperation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitiontriggers) +public typealias ItemCollectionTransitionTriggers = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.lightdismissoverlaymode) +public typealias LightDismissOverlayMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewreordermode) +public typealias ListViewReorderMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewReorderMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewselectionmode) +public typealias ListViewSelectionMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.orientation) +public typealias Orientation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordrevealmode) +public typealias PasswordRevealMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPasswordRevealMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspagerbuttonvisibility) +public typealias PipsPagerButtonVisibility = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.requirespointer) +public typealias RequiresPointer = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CRequiresPointer +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollbarvisibility) +public typealias ScrollBarVisibility = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollintoviewalignment) +public typealias ScrollIntoViewAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollIntoViewAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollmode) +public typealias ScrollMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollinganimationmode) +public typealias ScrollingAnimationMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingchainmode) +public typealias ScrollingChainMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingcontentorientation) +public typealias ScrollingContentOrientation = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollinginputkinds) +public typealias ScrollingInputKinds = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollinginteractionstate) +public typealias ScrollingInteractionState = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingrailmode) +public typealias ScrollingRailMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollbarvisibility) +public typealias ScrollingScrollBarVisibility = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollmode) +public typealias ScrollingScrollMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingsnappointsmode) +public typealias ScrollingSnapPointsMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoommode) +public typealias ScrollingZoomMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingZoomMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.selectionmode) +public typealias SelectionMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSelectionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.snappointstype) +public typealias SnapPointsType = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitviewdisplaymode) +public typealias SplitViewDisplayMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitviewpaneplacement) +public typealias SplitViewPanePlacement = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewPanePlacement +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipclosereason) +public typealias TeachingTipCloseReason = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipherocontentplacementmode) +public typealias TeachingTipHeroContentPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipHeroContentPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipplacementmode) +public typealias TeachingTipPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptailvisibility) +public typealias TeachingTipTailVisibility = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipTailVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewselectionmode) +public typealias TreeViewSelectionMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTreeViewSelectionMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayoutitemsjustification) +public typealias UniformGridLayoutItemsJustification = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayoutitemsstretch) +public typealias UniformGridLayoutItemsStretch = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsStretch +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.zoommode) +public typealias ZoomMode = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CZoomMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.anchorrequestedeventargs) +public final class AnchorRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IAnchorRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAnchorRequestedEventArgs + 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_CXaml_CControls_CIAnchorRequestedEventArgs>?) -> AnchorRequestedEventArgs? { + 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.xaml.controls.anchorrequestedeventargs.anchor) + public var anchor : WinUI.UIElement! { + get { try! _default.get_AnchorImpl() } + set { try! _default.put_AnchorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.anchorrequestedeventargs.anchorcandidates) + public var anchorCandidates : WindowsFoundation.AnyIVector! { + get { try! _default.get_AnchorCandidatesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar) +open class AppBar : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IAppBar + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar + 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_CXaml_CControls_CIAppBar>?) -> AppBar? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IAppBarOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IAppBarOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IAppBarFactory : __ABI_Microsoft_UI_Xaml_Controls.IAppBarFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.AppBar")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IAppBarFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IAppBarStatics: __ABI_Microsoft_UI_Xaml_Controls.IAppBarStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.AppBar")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.closeddisplaymodeproperty) + public class var closedDisplayModeProperty : WinUI.DependencyProperty! { + get { try! _IAppBarStatics.get_ClosedDisplayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.isopenproperty) + public class var isOpenProperty : WinUI.DependencyProperty! { + get { try! _IAppBarStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.isstickyproperty) + public class var isStickyProperty : WinUI.DependencyProperty! { + get { try! _IAppBarStatics.get_IsStickyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.lightdismissoverlaymodeproperty) + public class var lightDismissOverlayModeProperty : WinUI.DependencyProperty! { + get { try! _IAppBarStatics.get_LightDismissOverlayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.closeddisplaymode) + public var closedDisplayMode : AppBarClosedDisplayMode { + get { try! _default.get_ClosedDisplayModeImpl() } + set { try! _default.put_ClosedDisplayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + set { try! _default.put_IsOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.issticky) + public var isSticky : Bool { + get { try! _default.get_IsStickyImpl() } + set { try! _default.put_IsStickyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.lightdismissoverlaymode) + public var lightDismissOverlayMode : LightDismissOverlayMode { + get { try! _default.get_LightDismissOverlayModeImpl() } + set { try! _default.put_LightDismissOverlayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.templatesettings) + public var templateSettings : WinUI.AppBarTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.closed) + public 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.xaml.controls.appbar.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.xaml.controls.appbar.opened) + public lazy var opened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.opening) + public lazy var opening : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpeningImpl($0) + } + ) + }() + + private lazy var _IAppBarOverrides: __ABI_Microsoft_UI_Xaml_Controls.IAppBarOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.onclosed) + open func onClosed(_ e: Any!) throws { + try _IAppBarOverrides.OnClosedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.onopened) + open func onOpened(_ e: Any!) throws { + try _IAppBarOverrides.OnOpenedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.onclosing) + open func onClosing(_ e: Any!) throws { + try _IAppBarOverrides.OnClosingImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.appbar.onopening) + open func onOpening(_ e: Any!) throws { + try _IAppBarOverrides.OnOpeningImpl(e) + } + + internal enum IAppBarOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBarOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IAppBarOverrides + internal typealias Class = AppBar + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIAppBar + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IAppBar + } + } + internal typealias Composable = IAppBarOverrides + deinit { + _default = nil + _IAppBarOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.bitmapicon) +open class BitmapIcon : WinUI.IconElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IBitmapIcon + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon + 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_CXaml_CControls_CIBitmapIcon>?) -> BitmapIcon? { + 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 _IBitmapIconFactory : __ABI_Microsoft_UI_Xaml_Controls.IBitmapIconFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.BitmapIcon")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBitmapIconFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IBitmapIconStatics: __ABI_Microsoft_UI_Xaml_Controls.IBitmapIconStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.BitmapIcon")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.bitmapicon.showasmonochromeproperty) + public class var showAsMonochromeProperty : WinUI.DependencyProperty! { + get { try! _IBitmapIconStatics.get_ShowAsMonochromePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.bitmapicon.urisourceproperty) + public class var uriSourceProperty : WinUI.DependencyProperty! { + get { try! _IBitmapIconStatics.get_UriSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.bitmapicon.showasmonochrome) + public var showAsMonochrome : Bool { + get { try! _default.get_ShowAsMonochromeImpl() } + set { try! _default.put_ShowAsMonochromeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.bitmapicon.urisource) + public var uriSource : WindowsFoundation.Uri! { + get { try! _default.get_UriSourceImpl() } + set { try! _default.put_UriSourceImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = BitmapIcon + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBitmapIcon + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IBitmapIcon + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border) +public final class Border : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IBorder + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder + 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_CXaml_CControls_CIBorder>?) -> Border? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.Border"))) + } + + private static let _IBorderStatics: __ABI_Microsoft_UI_Xaml_Controls.IBorderStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Border")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.backgroundproperty) + public static var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.backgroundsizingproperty) + public static var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.borderbrushproperty) + public static var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.borderthicknessproperty) + public static var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.childtransitionsproperty) + public static var childTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_ChildTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.cornerradiusproperty) + public static var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.paddingproperty) + public static var paddingProperty : WinUI.DependencyProperty! { + get { try! _IBorderStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.backgroundtransition) + public var backgroundTransition : WinUI.BrushTransition! { + get { try! _default.get_BackgroundTransitionImpl() } + set { try! _default.put_BackgroundTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.child) + public var child : WinUI.UIElement! { + get { try! _default.get_ChildImpl() } + set { try! _default.put_ChildImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.childtransitions) + public var childTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ChildTransitionsImpl() } + set { try! _default.put_ChildTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.border.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.border.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Border + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIBorder + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IBorder + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.button) +open class Button : WinUI.ButtonBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IButton + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton + 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_CXaml_CControls_CIButton>?) -> Button? { + 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 _IButtonFactory : __ABI_Microsoft_UI_Xaml_Controls.IButtonFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Button")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IButtonFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IButtonStatics: __ABI_Microsoft_UI_Xaml_Controls.IButtonStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Button")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.button.flyoutproperty) + public class var flyoutProperty : WinUI.DependencyProperty! { + get { try! _IButtonStatics.get_FlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.button.flyout) + public var flyout : WinUI.FlyoutBase! { + get { try! _default.get_FlyoutImpl() } + set { try! _default.put_FlyoutImpl(newValue) } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = Button + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIButton + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IButton + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.candidatewindowboundschangedeventargs) +public final class CandidateWindowBoundsChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICandidateWindowBoundsChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICandidateWindowBoundsChangedEventArgs + 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_CXaml_CControls_CICandidateWindowBoundsChangedEventArgs>?) -> CandidateWindowBoundsChangedEventArgs? { + 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.xaml.controls.candidatewindowboundschangedeventargs.bounds) + public var bounds : WindowsFoundation.Rect { + get { try! _default.get_BoundsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas) +open class Canvas : WinUI.Panel { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICanvas + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvas + 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_CXaml_CControls_CICanvas>?) -> Canvas? { + 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 _ICanvasFactory : __ABI_Microsoft_UI_Xaml_Controls.ICanvasFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Canvas")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ICanvasFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ICanvasStatics: __ABI_Microsoft_UI_Xaml_Controls.ICanvasStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Canvas")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.getleft) + public class func getLeft(_ element: WinUI.UIElement!) -> Double { + return try! _ICanvasStatics.GetLeftImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.setleft) + public class func setLeft(_ element: WinUI.UIElement!, _ length: Double) { + try! _ICanvasStatics.SetLeftImpl(element, length) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.gettop) + public class func getTop(_ element: WinUI.UIElement!) -> Double { + return try! _ICanvasStatics.GetTopImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.settop) + public class func setTop(_ element: WinUI.UIElement!, _ length: Double) { + try! _ICanvasStatics.SetTopImpl(element, length) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.getzindex) + public class func getZIndex(_ element: WinUI.UIElement!) -> Int32 { + return try! _ICanvasStatics.GetZIndexImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.setzindex) + public class func setZIndex(_ element: WinUI.UIElement!, _ value: Int32) { + try! _ICanvasStatics.SetZIndexImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.leftproperty) + public class var leftProperty : WinUI.DependencyProperty! { + get { try! _ICanvasStatics.get_LeftPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.topproperty) + public class var topProperty : WinUI.DependencyProperty! { + get { try! _ICanvasStatics.get_TopPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.canvas.zindexproperty) + public class var zindexProperty : WinUI.DependencyProperty! { + get { try! _ICanvasStatics.get_ZIndexPropertyImpl() } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Canvas + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICanvas + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICanvas + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.checkbox) +open class CheckBox : WinUI.ToggleButton { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICheckBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBox + 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_CXaml_CControls_CICheckBox>?) -> CheckBox? { + 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 _ICheckBoxFactory : __ABI_Microsoft_UI_Xaml_Controls.ICheckBoxFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.CheckBox")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ICheckBoxFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IToggleButtonOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverrides + internal typealias Class = CheckBox + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CICheckBox + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ICheckBox + } + } + internal typealias Composable = IToggleButtonOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosinggroupheadercontainereventargs) +public final class ChoosingGroupHeaderContainerEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IChoosingGroupHeaderContainerEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs + 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_CXaml_CControls_CIChoosingGroupHeaderContainerEventArgs>?) -> ChoosingGroupHeaderContainerEventArgs? { + 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.Xaml.Controls.ChoosingGroupHeaderContainerEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosinggroupheadercontainereventargs.group) + public var group : Any! { + get { try! _default.get_GroupImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosinggroupheadercontainereventargs.groupheadercontainer) + public var groupHeaderContainer : ListViewBaseHeaderItem! { + get { try! _default.get_GroupHeaderContainerImpl() } + set { try! _default.put_GroupHeaderContainerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosinggroupheadercontainereventargs.groupindex) + public var groupIndex : Int32 { + get { try! _default.get_GroupIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosingitemcontainereventargs) +public final class ChoosingItemContainerEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IChoosingItemContainerEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIChoosingItemContainerEventArgs + 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_CXaml_CControls_CIChoosingItemContainerEventArgs>?) -> ChoosingItemContainerEventArgs? { + 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.Xaml.Controls.ChoosingItemContainerEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosingitemcontainereventargs.iscontainerprepared) + public var isContainerPrepared : Bool { + get { try! _default.get_IsContainerPreparedImpl() } + set { try! _default.put_IsContainerPreparedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosingitemcontainereventargs.item) + public var item : Any! { + get { try! _default.get_ItemImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosingitemcontainereventargs.itemcontainer) + public var itemContainer : WinUI.SelectorItem! { + get { try! _default.get_ItemContainerImpl() } + set { try! _default.put_ItemContainerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.choosingitemcontainereventargs.itemindex) + public var itemIndex : Int32 { + get { try! _default.get_ItemIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition) +public final class ColumnDefinition : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IColumnDefinition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIColumnDefinition + 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_CXaml_CControls_CIColumnDefinition>?) -> ColumnDefinition? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ColumnDefinition"))) + } + + private static let _IColumnDefinitionStatics: __ABI_Microsoft_UI_Xaml_Controls.IColumnDefinitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ColumnDefinition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.maxwidthproperty) + public static var maxWidthProperty : WinUI.DependencyProperty! { + get { try! _IColumnDefinitionStatics.get_MaxWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.minwidthproperty) + public static var minWidthProperty : WinUI.DependencyProperty! { + get { try! _IColumnDefinitionStatics.get_MinWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.widthproperty) + public static var widthProperty : WinUI.DependencyProperty! { + get { try! _IColumnDefinitionStatics.get_WidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.actualwidth) + public var actualWidth : Double { + get { try! _default.get_ActualWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.maxwidth) + public var maxWidth : Double { + get { try! _default.get_MaxWidthImpl() } + set { try! _default.put_MaxWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.minwidth) + public var minWidth : Double { + get { try! _default.get_MinWidthImpl() } + set { try! _default.put_MinWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinition.width) + public var width : WinUI.GridLength { + get { try! _default.get_WidthImpl() } + set { try! _default.put_WidthImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection) +public final class ColumnDefinitionCollection : WinRTClass, IVector, IIterable { + public typealias T = ColumnDefinition? + private typealias SwiftABI = WinUI.IVectorColumnDefinition + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition + 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__CXaml__CControls__CColumnDefinition>?) -> ColumnDefinitionCollection? { + 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) + } + // 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.xaml.controls.columndefinitioncollection.getat) + public func getAt(_ index: UInt32) -> ColumnDefinition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.indexof) + public func indexOf(_ value: ColumnDefinition?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.setat) + public func setAt(_ index: UInt32, _ value: ColumnDefinition?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.insertat) + public func insertAt(_ index: UInt32, _ value: ColumnDefinition?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.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.xaml.controls.columndefinitioncollection.append) + public func append(_ value: ColumnDefinition?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableColumnDefinition! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.columndefinitioncollection.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.xaml.controls.combobox) +open class ComboBox : WinUI.Selector { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IComboBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox + 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_CXaml_CControls_CIComboBox>?) -> ComboBox? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IComboBoxFactory : __ABI_Microsoft_UI_Xaml_Controls.IComboBoxFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ComboBox")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IComboBoxFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IComboBoxStatics: __ABI_Microsoft_UI_Xaml_Controls.IComboBoxStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ComboBox")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.descriptionproperty) + public class var descriptionProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_DescriptionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.headerproperty) + public class var headerProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.headertemplateproperty) + public class var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.isdropdownopenproperty) + public class var isDropDownOpenProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_IsDropDownOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.iseditableproperty) + public class var isEditableProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_IsEditablePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.istextsearchenabledproperty) + public class var isTextSearchEnabledProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_IsTextSearchEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.lightdismissoverlaymodeproperty) + public class var lightDismissOverlayModeProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_LightDismissOverlayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.maxdropdownheightproperty) + public class var maxDropDownHeightProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_MaxDropDownHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.placeholderforegroundproperty) + public class var placeholderForegroundProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_PlaceholderForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.placeholdertextproperty) + public class var placeholderTextProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_PlaceholderTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.selectionchangedtriggerproperty) + public class var selectionChangedTriggerProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_SelectionChangedTriggerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.textboxstyleproperty) + public class var textBoxStyleProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_TextBoxStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.textproperty) + public class var textProperty : WinUI.DependencyProperty! { + get { try! _IComboBoxStatics.get_TextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.description) + public var description : Any! { + get { try! _default.get_DescriptionImpl() } + set { try! _default.put_DescriptionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.isdropdownopen) + public var isDropDownOpen : Bool { + get { try! _default.get_IsDropDownOpenImpl() } + set { try! _default.put_IsDropDownOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.iseditable) + public var isEditable : Bool { + get { try! _default.get_IsEditableImpl() } + set { try! _default.put_IsEditableImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.isselectionboxhighlighted) + public var isSelectionBoxHighlighted : Bool { + get { try! _default.get_IsSelectionBoxHighlightedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.istextsearchenabled) + public var isTextSearchEnabled : Bool { + get { try! _default.get_IsTextSearchEnabledImpl() } + set { try! _default.put_IsTextSearchEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.lightdismissoverlaymode) + public var lightDismissOverlayMode : LightDismissOverlayMode { + get { try! _default.get_LightDismissOverlayModeImpl() } + set { try! _default.put_LightDismissOverlayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.maxdropdownheight) + public var maxDropDownHeight : Double { + get { try! _default.get_MaxDropDownHeightImpl() } + set { try! _default.put_MaxDropDownHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.placeholderforeground) + public var placeholderForeground : WinUI.Brush! { + get { try! _default.get_PlaceholderForegroundImpl() } + set { try! _default.put_PlaceholderForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.placeholdertext) + public var placeholderText : String { + get { try! _default.get_PlaceholderTextImpl() } + set { try! _default.put_PlaceholderTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.selectionboxitem) + public var selectionBoxItem : Any! { + get { try! _default.get_SelectionBoxItemImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.selectionboxitemtemplate) + public var selectionBoxItemTemplate : WinUI.DataTemplate! { + get { try! _default.get_SelectionBoxItemTemplateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.selectionchangedtrigger) + public var selectionChangedTrigger : ComboBoxSelectionChangedTrigger { + get { try! _default.get_SelectionChangedTriggerImpl() } + set { try! _default.put_SelectionChangedTriggerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.templatesettings) + public var templateSettings : WinUI.ComboBoxTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.textboxstyle) + public var textBoxStyle : WinUI.Style! { + get { try! _default.get_TextBoxStyleImpl() } + set { try! _default.put_TextBoxStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.dropdownclosed) + public lazy var dropDownClosed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DropDownClosedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DropDownClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.dropdownopened) + public lazy var dropDownOpened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DropDownOpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DropDownOpenedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.textsubmitted) + public lazy var textSubmitted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextSubmittedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextSubmittedImpl($0) + } + ) + }() + + private lazy var _IComboBoxOverrides: __ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.ondropdownclosed) + open func onDropDownClosed(_ e: Any!) throws { + try _IComboBoxOverrides.OnDropDownClosedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.combobox.ondropdownopened) + open func onDropDownOpened(_ e: Any!) throws { + try _IComboBoxOverrides.OnDropDownOpenedImpl(e) + } + + internal enum IComboBoxOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IComboBoxOverrides + internal typealias Class = ComboBox + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBox + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IComboBox + } + } + internal typealias Composable = IComboBoxOverrides + deinit { + _default = nil + _IComboBoxOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.comboboxtextsubmittedeventargs) +public final class ComboBoxTextSubmittedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IComboBoxTextSubmittedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIComboBoxTextSubmittedEventArgs + 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_CXaml_CControls_CIComboBoxTextSubmittedEventArgs>?) -> ComboBoxTextSubmittedEventArgs? { + 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.xaml.controls.comboboxtextsubmittedeventargs.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.xaml.controls.comboboxtextsubmittedeventargs.text) + public var text : String { + get { try! _default.get_TextImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs) +public final class ContainerContentChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContainerContentChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContainerContentChangingEventArgs + 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_CXaml_CControls_CIContainerContentChangingEventArgs>?) -> ContainerContentChangingEventArgs? { + 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.Xaml.Controls.ContainerContentChangingEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.registerupdatecallback) + public func registerUpdateCallback(_ callback: TypedEventHandler!) throws { + try _default.RegisterUpdateCallbackImpl(callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.registerupdatecallback) + public func registerUpdateCallback(_ callbackPhase: UInt32, _ callback: TypedEventHandler!) throws { + try _default.RegisterUpdateCallbackWithPhaseImpl(callbackPhase, callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.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.xaml.controls.containercontentchangingeventargs.inrecyclequeue) + public var inRecycleQueue : Bool { + get { try! _default.get_InRecycleQueueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.item) + public var item : Any! { + get { try! _default.get_ItemImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.itemcontainer) + public var itemContainer : WinUI.SelectorItem! { + get { try! _default.get_ItemContainerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.itemindex) + public var itemIndex : Int32 { + get { try! _default.get_ItemIndexImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.containercontentchangingeventargs.phase) + public var phase : UInt32 { + get { try! _default.get_PhaseImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol) +open class ContentControl : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControl + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl + 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_CXaml_CControls_CIContentControl>?) -> ContentControl? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IContentControlFactory : __ABI_Microsoft_UI_Xaml_Controls.IContentControlFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentControl")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IContentControlFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IContentControlStatics: __ABI_Microsoft_UI_Xaml_Controls.IContentControlStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentControl")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IContentControlStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttemplateproperty) + public class var contentTemplateProperty : WinUI.DependencyProperty! { + get { try! _IContentControlStatics.get_ContentTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttemplateselectorproperty) + public class var contentTemplateSelectorProperty : WinUI.DependencyProperty! { + get { try! _IContentControlStatics.get_ContentTemplateSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttransitionsproperty) + public class var contentTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IContentControlStatics.get_ContentTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.content) + public var content : Any! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttemplate) + public var contentTemplate : WinUI.DataTemplate! { + get { try! _default.get_ContentTemplateImpl() } + set { try! _default.put_ContentTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttemplateroot) + public var contentTemplateRoot : WinUI.UIElement! { + get { try! _default.get_ContentTemplateRootImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttemplateselector) + public var contentTemplateSelector : DataTemplateSelector! { + get { try! _default.get_ContentTemplateSelectorImpl() } + set { try! _default.put_ContentTemplateSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.contenttransitions) + public var contentTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ContentTransitionsImpl() } + set { try! _default.put_ContentTransitionsImpl(newValue) } + } + + private lazy var _IContentControlOverrides: __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.oncontentchanged) + open func onContentChanged(_ oldContent: Any!, _ newContent: Any!) throws { + try _IContentControlOverrides.OnContentChangedImpl(oldContent, newContent) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.oncontenttemplatechanged) + open func onContentTemplateChanged(_ oldContentTemplate: WinUI.DataTemplate!, _ newContentTemplate: WinUI.DataTemplate!) throws { + try _IContentControlOverrides.OnContentTemplateChangedImpl(oldContentTemplate, newContentTemplate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentcontrol.oncontenttemplateselectorchanged) + open func onContentTemplateSelectorChanged(_ oldContentTemplateSelector: DataTemplateSelector!, _ newContentTemplateSelector: DataTemplateSelector!) throws { + try _IContentControlOverrides.OnContentTemplateSelectorChangedImpl(oldContentTemplateSelector, newContentTemplateSelector) + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ContentControl + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControl + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControl + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + _IContentControlOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog) +open class ContentDialog : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialog + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog + 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_CXaml_CControls_CIContentDialog>?) -> ContentDialog? { + 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 _IContentDialogFactory : __ABI_Microsoft_UI_Xaml_Controls.IContentDialogFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentDialog")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IContentDialogFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IContentDialogStatics: __ABI_Microsoft_UI_Xaml_Controls.IContentDialogStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentDialog")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttoncommandparameterproperty) + public class var closeButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_CloseButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttoncommandproperty) + public class var closeButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_CloseButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttonstyleproperty) + public class var closeButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_CloseButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttontextproperty) + public class var closeButtonTextProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_CloseButtonTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.defaultbuttonproperty) + public class var defaultButtonProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_DefaultButtonPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.fullsizedesiredproperty) + public class var fullSizeDesiredProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_FullSizeDesiredPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.isprimarybuttonenabledproperty) + public class var isPrimaryButtonEnabledProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_IsPrimaryButtonEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.issecondarybuttonenabledproperty) + public class var isSecondaryButtonEnabledProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_IsSecondaryButtonEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttoncommandparameterproperty) + public class var primaryButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_PrimaryButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttoncommandproperty) + public class var primaryButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_PrimaryButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttonstyleproperty) + public class var primaryButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_PrimaryButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttontextproperty) + public class var primaryButtonTextProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_PrimaryButtonTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttoncommandparameterproperty) + public class var secondaryButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_SecondaryButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttoncommandproperty) + public class var secondaryButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_SecondaryButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttonstyleproperty) + public class var secondaryButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_SecondaryButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttontextproperty) + public class var secondaryButtonTextProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_SecondaryButtonTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.titleproperty) + public class var titleProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_TitlePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.titletemplateproperty) + public class var titleTemplateProperty : WinUI.DependencyProperty! { + get { try! _IContentDialogStatics.get_TitleTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.hide) + public func hide() throws { + try _default.HideImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.showasync) + public func showAsync() throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.ShowAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.showasync) + public func showAsync(_ placement: ContentDialogPlacement) throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.ShowAsyncWithPlacementImpl(placement) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttoncommand) + public var closeButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_CloseButtonCommandImpl() } + set { try! _default.put_CloseButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttoncommandparameter) + public var closeButtonCommandParameter : Any! { + get { try! _default.get_CloseButtonCommandParameterImpl() } + set { try! _default.put_CloseButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttonstyle) + public var closeButtonStyle : WinUI.Style! { + get { try! _default.get_CloseButtonStyleImpl() } + set { try! _default.put_CloseButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttontext) + public var closeButtonText : String { + get { try! _default.get_CloseButtonTextImpl() } + set { try! _default.put_CloseButtonTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.defaultbutton) + public var defaultButton : ContentDialogButton { + get { try! _default.get_DefaultButtonImpl() } + set { try! _default.put_DefaultButtonImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.fullsizedesired) + public var fullSizeDesired : Bool { + get { try! _default.get_FullSizeDesiredImpl() } + set { try! _default.put_FullSizeDesiredImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.isprimarybuttonenabled) + public var isPrimaryButtonEnabled : Bool { + get { try! _default.get_IsPrimaryButtonEnabledImpl() } + set { try! _default.put_IsPrimaryButtonEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.issecondarybuttonenabled) + public var isSecondaryButtonEnabled : Bool { + get { try! _default.get_IsSecondaryButtonEnabledImpl() } + set { try! _default.put_IsSecondaryButtonEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttoncommand) + public var primaryButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_PrimaryButtonCommandImpl() } + set { try! _default.put_PrimaryButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttoncommandparameter) + public var primaryButtonCommandParameter : Any! { + get { try! _default.get_PrimaryButtonCommandParameterImpl() } + set { try! _default.put_PrimaryButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttonstyle) + public var primaryButtonStyle : WinUI.Style! { + get { try! _default.get_PrimaryButtonStyleImpl() } + set { try! _default.put_PrimaryButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttontext) + public var primaryButtonText : String { + get { try! _default.get_PrimaryButtonTextImpl() } + set { try! _default.put_PrimaryButtonTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttoncommand) + public var secondaryButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_SecondaryButtonCommandImpl() } + set { try! _default.put_SecondaryButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttoncommandparameter) + public var secondaryButtonCommandParameter : Any! { + get { try! _default.get_SecondaryButtonCommandParameterImpl() } + set { try! _default.put_SecondaryButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttonstyle) + public var secondaryButtonStyle : WinUI.Style! { + get { try! _default.get_SecondaryButtonStyleImpl() } + set { try! _default.put_SecondaryButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttontext) + public var secondaryButtonText : String { + get { try! _default.get_SecondaryButtonTextImpl() } + set { try! _default.put_SecondaryButtonTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.title) + public var title : Any! { + 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.xaml.controls.contentdialog.titletemplate) + public var titleTemplate : WinUI.DataTemplate! { + get { try! _default.get_TitleTemplateImpl() } + set { try! _default.put_TitleTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closebuttonclick) + public lazy var closeButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CloseButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CloseButtonClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.closed) + public 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.xaml.controls.contentdialog.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.xaml.controls.contentdialog.opened) + public lazy var opened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.primarybuttonclick) + public lazy var primaryButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PrimaryButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PrimaryButtonClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog.secondarybuttonclick) + public lazy var secondaryButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SecondaryButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SecondaryButtonClickImpl($0) + } + ) + }() + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ContentDialog + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialog + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialog + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogbuttonclickdeferral) +public final class ContentDialogButtonClickDeferral : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogButtonClickDeferral + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickDeferral + 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_CXaml_CControls_CIContentDialogButtonClickDeferral>?) -> ContentDialogButtonClickDeferral? { + 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.xaml.controls.contentdialogbuttonclickdeferral.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.xaml.controls.contentdialogbuttonclickeventargs) +public final class ContentDialogButtonClickEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogButtonClickEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogButtonClickEventArgs + 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_CXaml_CControls_CIContentDialogButtonClickEventArgs>?) -> ContentDialogButtonClickEventArgs? { + 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.xaml.controls.contentdialogbuttonclickeventargs.getdeferral) + public func getDeferral() throws -> ContentDialogButtonClickDeferral! { + try _default.GetDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogbuttonclickeventargs.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.xaml.controls.contentdialogclosedeventargs) +public final class ContentDialogClosedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogClosedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosedEventArgs + 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_CXaml_CControls_CIContentDialogClosedEventArgs>?) -> ContentDialogClosedEventArgs? { + 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.xaml.controls.contentdialogclosedeventargs.result) + public var result : ContentDialogResult { + get { try! _default.get_ResultImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogclosingdeferral) +public final class ContentDialogClosingDeferral : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogClosingDeferral + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingDeferral + 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_CXaml_CControls_CIContentDialogClosingDeferral>?) -> ContentDialogClosingDeferral? { + 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.xaml.controls.contentdialogclosingdeferral.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.xaml.controls.contentdialogclosingeventargs) +public final class ContentDialogClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogClosingEventArgs + 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_CXaml_CControls_CIContentDialogClosingEventArgs>?) -> ContentDialogClosingEventArgs? { + 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.xaml.controls.contentdialogclosingeventargs.getdeferral) + public func getDeferral() throws -> ContentDialogClosingDeferral! { + try _default.GetDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogclosingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogclosingeventargs.result) + public var result : ContentDialogResult { + get { try! _default.get_ResultImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialogopenedeventargs) +public final class ContentDialogOpenedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentDialogOpenedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentDialogOpenedEventArgs + 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_CXaml_CControls_CIContentDialogOpenedEventArgs>?) -> ContentDialogOpenedEventArgs? { + 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.xaml.controls.contentpresenter) +open class ContentPresenter : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter + 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_CXaml_CControls_CIContentPresenter>?) -> ContentPresenter? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IContentPresenterFactory : __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentPresenter")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IContentPresenterFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IContentPresenterStatics: __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ContentPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.backgroundsizingproperty) + public class var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.borderbrushproperty) + public class var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.borderthicknessproperty) + public class var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.characterspacingproperty) + public class var characterSpacingProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_CharacterSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttemplateproperty) + public class var contentTemplateProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_ContentTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttemplateselectorproperty) + public class var contentTemplateSelectorProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_ContentTemplateSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttransitionsproperty) + public class var contentTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_ContentTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.cornerradiusproperty) + public class var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontfamilyproperty) + public class var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontsizeproperty) + public class var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontstretchproperty) + public class var fontStretchProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_FontStretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontstyleproperty) + public class var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontweightproperty) + public class var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.horizontalcontentalignmentproperty) + public class var horizontalContentAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_HorizontalContentAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.istextscalefactorenabledproperty) + public class var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.lineheightproperty) + public class var lineHeightProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_LineHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.linestackingstrategyproperty) + public class var lineStackingStrategyProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_LineStackingStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.maxlinesproperty) + public class var maxLinesProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_MaxLinesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.opticalmarginalignmentproperty) + public class var opticalMarginAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_OpticalMarginAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.paddingproperty) + public class var paddingProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.textlineboundsproperty) + public class var textLineBoundsProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_TextLineBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.textwrappingproperty) + public class var textWrappingProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_TextWrappingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.verticalcontentalignmentproperty) + public class var verticalContentAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IContentPresenterStatics.get_VerticalContentAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.backgroundtransition) + public var backgroundTransition : WinUI.BrushTransition! { + get { try! _default.get_BackgroundTransitionImpl() } + set { try! _default.put_BackgroundTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.characterspacing) + public var characterSpacing : Int32 { + get { try! _default.get_CharacterSpacingImpl() } + set { try! _default.put_CharacterSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.content) + public var content : Any! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttemplate) + public var contentTemplate : WinUI.DataTemplate! { + get { try! _default.get_ContentTemplateImpl() } + set { try! _default.put_ContentTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttemplateselector) + public var contentTemplateSelector : DataTemplateSelector! { + get { try! _default.get_ContentTemplateSelectorImpl() } + set { try! _default.put_ContentTemplateSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.contenttransitions) + public var contentTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ContentTransitionsImpl() } + set { try! _default.put_ContentTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.contentpresenter.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontstretch) + public var fontStretch : UWP.FontStretch { + get { try! _default.get_FontStretchImpl() } + set { try! _default.put_FontStretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.horizontalcontentalignment) + public var horizontalContentAlignment : WinUI.HorizontalAlignment { + get { try! _default.get_HorizontalContentAlignmentImpl() } + set { try! _default.put_HorizontalContentAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.lineheight) + public var lineHeight : Double { + get { try! _default.get_LineHeightImpl() } + set { try! _default.put_LineHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.linestackingstrategy) + public var lineStackingStrategy : WinUI.LineStackingStrategy { + get { try! _default.get_LineStackingStrategyImpl() } + set { try! _default.put_LineStackingStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.maxlines) + public var maxLines : Int32 { + get { try! _default.get_MaxLinesImpl() } + set { try! _default.put_MaxLinesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.opticalmarginalignment) + public var opticalMarginAlignment : WinUI.OpticalMarginAlignment { + get { try! _default.get_OpticalMarginAlignmentImpl() } + set { try! _default.put_OpticalMarginAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.textlinebounds) + public var textLineBounds : WinUI.TextLineBounds { + get { try! _default.get_TextLineBoundsImpl() } + set { try! _default.put_TextLineBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.textwrapping) + public var textWrapping : WinUI.TextWrapping { + get { try! _default.get_TextWrappingImpl() } + set { try! _default.put_TextWrappingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.verticalcontentalignment) + public var verticalContentAlignment : WinUI.VerticalAlignment { + get { try! _default.get_VerticalContentAlignmentImpl() } + set { try! _default.put_VerticalContentAlignmentImpl(newValue) } + } + + private lazy var _IContentPresenterOverrides: __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.oncontenttemplatechanged) + open func onContentTemplateChanged(_ oldContentTemplate: WinUI.DataTemplate!, _ newContentTemplate: WinUI.DataTemplate!) throws { + try _IContentPresenterOverrides.OnContentTemplateChangedImpl(oldContentTemplate, newContentTemplate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentpresenter.oncontenttemplateselectorchanged) + open func onContentTemplateSelectorChanged(_ oldContentTemplateSelector: DataTemplateSelector!, _ newContentTemplateSelector: DataTemplateSelector!) throws { + try _IContentPresenterOverrides.OnContentTemplateSelectorChangedImpl(oldContentTemplateSelector, newContentTemplateSelector) + } + + internal enum IContentPresenterOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenterOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentPresenterOverrides + internal typealias Class = ContentPresenter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentPresenter + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentPresenter + } + } + internal typealias Composable = IContentPresenterOverrides + deinit { + _default = nil + _IContentPresenterOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contextmenueventargs) +public final class ContextMenuEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContextMenuEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContextMenuEventArgs + 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_CXaml_CControls_CIContextMenuEventArgs>?) -> ContextMenuEventArgs? { + 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.xaml.controls.contextmenueventargs.cursorleft) + public var cursorLeft : Double { + get { try! _default.get_CursorLeftImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contextmenueventargs.cursortop) + public var cursorTop : Double { + get { try! _default.get_CursorTopImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contextmenueventargs.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.xaml.controls.control) +open class Control : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControl + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl + 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_CXaml_CControls_CIControl>?) -> Control? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IControlOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IControlFactory : __ABI_Microsoft_UI_Xaml_Controls.IControlFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Control")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IControlFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IControlStatics: __ABI_Microsoft_UI_Xaml_Controls.IControlStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Control")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.getistemplatefocustarget) + public class func getIsTemplateFocusTarget(_ element: WinUI.FrameworkElement!) -> Bool { + return try! _IControlStatics.GetIsTemplateFocusTargetImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.setistemplatefocustarget) + public class func setIsTemplateFocusTarget(_ element: WinUI.FrameworkElement!, _ value: Bool) { + try! _IControlStatics.SetIsTemplateFocusTargetImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.getistemplatekeytiptarget) + public class func getIsTemplateKeyTipTarget(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IControlStatics.GetIsTemplateKeyTipTargetImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.setistemplatekeytiptarget) + public class func setIsTemplateKeyTipTarget(_ element: WinUI.DependencyObject!, _ value: Bool) { + try! _IControlStatics.SetIsTemplateKeyTipTargetImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.backgroundsizingproperty) + public class var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.borderbrushproperty) + public class var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.borderthicknessproperty) + public class var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.characterspacingproperty) + public class var characterSpacingProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_CharacterSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.cornerradiusproperty) + public class var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.defaultstylekeyproperty) + public class var defaultStyleKeyProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_DefaultStyleKeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.defaultstyleresourceuriproperty) + public class var defaultStyleResourceUriProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_DefaultStyleResourceUriPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.elementsoundmodeproperty) + public class var elementSoundModeProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_ElementSoundModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontfamilyproperty) + public class var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontsizeproperty) + public class var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontstretchproperty) + public class var fontStretchProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_FontStretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontstyleproperty) + public class var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontweightproperty) + public class var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.horizontalcontentalignmentproperty) + public class var horizontalContentAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_HorizontalContentAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isenabledproperty) + public class var isEnabledProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isfocusengagedproperty) + public class var isFocusEngagedProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsFocusEngagedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isfocusengagementenabledproperty) + public class var isFocusEngagementEnabledProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsFocusEngagementEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.istemplatefocustargetproperty) + public class var isTemplateFocusTargetProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsTemplateFocusTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.istemplatekeytiptargetproperty) + public class var isTemplateKeyTipTargetProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsTemplateKeyTipTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.istextscalefactorenabledproperty) + public class var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.paddingproperty) + public class var paddingProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.requirespointerproperty) + public class var requiresPointerProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_RequiresPointerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.tabnavigationproperty) + public class var tabNavigationProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_TabNavigationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.templateproperty) + public class var templateProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_TemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.verticalcontentalignmentproperty) + public class var verticalContentAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IControlStatics.get_VerticalContentAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.removefocusengagement) + public func removeFocusEngagement() throws { + try _default.RemoveFocusEngagementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.applytemplate) + public func applyTemplate() throws -> Bool { + try _default.ApplyTemplateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.characterspacing) + public var characterSpacing : Int32 { + get { try! _default.get_CharacterSpacingImpl() } + set { try! _default.put_CharacterSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.control.defaultstyleresourceuri) + public var defaultStyleResourceUri : WindowsFoundation.Uri! { + get { try! _default.get_DefaultStyleResourceUriImpl() } + set { try! _default.put_DefaultStyleResourceUriImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.elementsoundmode) + public var elementSoundMode : WinUI.ElementSoundMode { + get { try! _default.get_ElementSoundModeImpl() } + set { try! _default.put_ElementSoundModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontstretch) + public var fontStretch : UWP.FontStretch { + get { try! _default.get_FontStretchImpl() } + set { try! _default.put_FontStretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.horizontalcontentalignment) + public var horizontalContentAlignment : WinUI.HorizontalAlignment { + get { try! _default.get_HorizontalContentAlignmentImpl() } + set { try! _default.put_HorizontalContentAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isenabled) + public var isEnabled : Bool { + get { try! _default.get_IsEnabledImpl() } + set { try! _default.put_IsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isfocusengaged) + public var isFocusEngaged : Bool { + get { try! _default.get_IsFocusEngagedImpl() } + set { try! _default.put_IsFocusEngagedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isfocusengagementenabled) + public var isFocusEngagementEnabled : Bool { + get { try! _default.get_IsFocusEngagementEnabledImpl() } + set { try! _default.put_IsFocusEngagementEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.requirespointer) + public var requiresPointer : RequiresPointer { + get { try! _default.get_RequiresPointerImpl() } + set { try! _default.put_RequiresPointerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.tabnavigation) + public var tabNavigation : WinUI.KeyboardNavigationMode { + get { try! _default.get_TabNavigationImpl() } + set { try! _default.put_TabNavigationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.template) + public var template : ControlTemplate! { + get { try! _default.get_TemplateImpl() } + set { try! _default.put_TemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.verticalcontentalignment) + public var verticalContentAlignment : WinUI.VerticalAlignment { + get { try! _default.get_VerticalContentAlignmentImpl() } + set { try! _default.put_VerticalContentAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.focusdisengaged) + public lazy var focusDisengaged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_FocusDisengagedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_FocusDisengagedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.focusengaged) + public lazy var focusEngaged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_FocusEngagedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_FocusEngagedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.isenabledchanged) + public lazy var isEnabledChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_IsEnabledChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_IsEnabledChangedImpl($0) + } + ) + }() + + private lazy var _IControlProtected: __ABI_Microsoft_UI_Xaml_Controls.IControlProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.gettemplatechild) + public func getTemplateChild(_ childName: String) throws -> WinUI.DependencyObject! { + try _IControlProtected.GetTemplateChildImpl(childName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.defaultstylekey) + public var defaultStyleKey : Any! { + get { try! _IControlProtected.get_DefaultStyleKeyImpl() } + set { try! _IControlProtected.put_DefaultStyleKeyImpl(newValue) } + } + + private lazy var _IControlOverrides: __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointerentered) + open func onPointerEntered(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerEnteredImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointerpressed) + open func onPointerPressed(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerPressedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointermoved) + open func onPointerMoved(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerMovedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointerreleased) + open func onPointerReleased(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerReleasedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointerexited) + open func onPointerExited(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerExitedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointercapturelost) + open func onPointerCaptureLost(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerCaptureLostImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointercanceled) + open func onPointerCanceled(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerCanceledImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpointerwheelchanged) + open func onPointerWheelChanged(_ e: WinUI.PointerRoutedEventArgs!) throws { + try _IControlOverrides.OnPointerWheelChangedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ontapped) + open func onTapped(_ e: WinUI.TappedRoutedEventArgs!) throws { + try _IControlOverrides.OnTappedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ondoubletapped) + open func onDoubleTapped(_ e: WinUI.DoubleTappedRoutedEventArgs!) throws { + try _IControlOverrides.OnDoubleTappedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onholding) + open func onHolding(_ e: WinUI.HoldingRoutedEventArgs!) throws { + try _IControlOverrides.OnHoldingImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onrighttapped) + open func onRightTapped(_ e: WinUI.RightTappedRoutedEventArgs!) throws { + try _IControlOverrides.OnRightTappedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onmanipulationstarting) + open func onManipulationStarting(_ e: WinUI.ManipulationStartingRoutedEventArgs!) throws { + try _IControlOverrides.OnManipulationStartingImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onmanipulationinertiastarting) + open func onManipulationInertiaStarting(_ e: WinUI.ManipulationInertiaStartingRoutedEventArgs!) throws { + try _IControlOverrides.OnManipulationInertiaStartingImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onmanipulationstarted) + open func onManipulationStarted(_ e: WinUI.ManipulationStartedRoutedEventArgs!) throws { + try _IControlOverrides.OnManipulationStartedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onmanipulationdelta) + open func onManipulationDelta(_ e: WinUI.ManipulationDeltaRoutedEventArgs!) throws { + try _IControlOverrides.OnManipulationDeltaImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onmanipulationcompleted) + open func onManipulationCompleted(_ e: WinUI.ManipulationCompletedRoutedEventArgs!) throws { + try _IControlOverrides.OnManipulationCompletedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onkeyup) + open func onKeyUp(_ e: WinUI.KeyRoutedEventArgs!) throws { + try _IControlOverrides.OnKeyUpImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onkeydown) + open func onKeyDown(_ e: WinUI.KeyRoutedEventArgs!) throws { + try _IControlOverrides.OnKeyDownImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpreviewkeydown) + open func onPreviewKeyDown(_ e: WinUI.KeyRoutedEventArgs!) throws { + try _IControlOverrides.OnPreviewKeyDownImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onpreviewkeyup) + open func onPreviewKeyUp(_ e: WinUI.KeyRoutedEventArgs!) throws { + try _IControlOverrides.OnPreviewKeyUpImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ongotfocus) + open func onGotFocus(_ e: WinUI.RoutedEventArgs!) throws { + try _IControlOverrides.OnGotFocusImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.onlostfocus) + open func onLostFocus(_ e: WinUI.RoutedEventArgs!) throws { + try _IControlOverrides.OnLostFocusImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.oncharacterreceived) + open func onCharacterReceived(_ e: WinUI.CharacterReceivedRoutedEventArgs!) throws { + try _IControlOverrides.OnCharacterReceivedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ondragenter) + open func onDragEnter(_ e: WinUI.DragEventArgs!) throws { + try _IControlOverrides.OnDragEnterImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ondragleave) + open func onDragLeave(_ e: WinUI.DragEventArgs!) throws { + try _IControlOverrides.OnDragLeaveImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ondragover) + open func onDragOver(_ e: WinUI.DragEventArgs!) throws { + try _IControlOverrides.OnDragOverImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.ondrop) + open func onDrop(_ e: WinUI.DragEventArgs!) throws { + try _IControlOverrides.OnDropImpl(e) + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = Control + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControl + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControl + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + _IControlProtected = nil + _IControlOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.controltemplate) +public final class ControlTemplate : WinUI.FrameworkTemplate { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlTemplate + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlTemplate + 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_CXaml_CControls_CIControlTemplate>?) -> ControlTemplate? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ControlTemplate"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.controltemplate.targettype) + public var targetType : WinUI.TypeName { + get { try! _default.get_TargetTypeImpl() } + set { try! _default.put_TargetTypeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector) +open class DataTemplateSelector : WinRTClass, WinUI.IElementFactory { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelector + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector + 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_CXaml_CControls_CIDataTemplateSelector>?) -> DataTemplateSelector? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IDataTemplateSelectorFactory : __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.DataTemplateSelector")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IDataTemplateSelectorFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.selecttemplate) + public func selectTemplate(_ item: Any!, _ container: WinUI.DependencyObject!) throws -> WinUI.DataTemplate! { + try _default.SelectTemplateImpl(item, container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.selecttemplate) + public func selectTemplate(_ item: Any!) throws -> WinUI.DataTemplate! { + try _default.SelectTemplateForItemImpl(item) + } + + private lazy var _IDataTemplateSelectorOverrides: __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.selecttemplatecore) + open func selectTemplateCore(_ item: Any!, _ container: WinUI.DependencyObject!) throws -> WinUI.DataTemplate! { + try _IDataTemplateSelectorOverrides.SelectTemplateCoreImpl(item, container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.selecttemplatecore) + open func selectTemplateCore(_ item: Any!) throws -> WinUI.DataTemplate! { + try _IDataTemplateSelectorOverrides.SelectTemplateForItemCoreImpl(item) + } + + internal enum IDataTemplateSelectorOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelectorOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelectorOverrides + internal typealias Class = DataTemplateSelector + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDataTemplateSelector + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IDataTemplateSelector + } + } + internal typealias Composable = IDataTemplateSelectorOverrides + private lazy var _IElementFactory: __ABI_Microsoft_UI_Xaml.IElementFactory! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.getelement) + public func getElement(_ args: WinUI.ElementFactoryGetArgs!) throws -> WinUI.UIElement! { + try _IElementFactory.GetElementImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.datatemplateselector.recycleelement) + public func recycleElement(_ args: WinUI.ElementFactoryRecycleArgs!) throws { + try _IElementFactory.RecycleElementImpl(args) + } + + deinit { + _default = nil + _IDataTemplateSelectorOverrides = nil + _IElementFactory = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemscompletedeventargs) +public final class DragItemsCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IDragItemsCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsCompletedEventArgs + 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_CXaml_CControls_CIDragItemsCompletedEventArgs>?) -> DragItemsCompletedEventArgs? { + 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.xaml.controls.dragitemscompletedeventargs.dropresult) + public var dropResult : UWP.DataPackageOperation { + get { try! _default.get_DropResultImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemscompletedeventargs.items) + public var items : WindowsFoundation.AnyIVectorView! { + get { try! _default.get_ItemsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemsstartingeventargs) +public final class DragItemsStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IDragItemsStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIDragItemsStartingEventArgs + 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_CXaml_CControls_CIDragItemsStartingEventArgs>?) -> DragItemsStartingEventArgs? { + 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.Xaml.Controls.DragItemsStartingEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemsstartingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemsstartingeventargs.data) + public var data : UWP.DataPackage! { + get { try! _default.get_DataImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.dragitemsstartingeventargs.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flipview) +open class FlipView : WinUI.Selector { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlipView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView + 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_CXaml_CControls_CIFlipView>?) -> FlipView? { + 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 _IFlipViewFactory : __ABI_Microsoft_UI_Xaml_Controls.IFlipViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FlipView")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFlipViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFlipViewStatics: __ABI_Microsoft_UI_Xaml_Controls.IFlipViewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FlipView")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flipview.usetouchanimationsforallnavigationproperty) + public class var useTouchAnimationsForAllNavigationProperty : WinUI.DependencyProperty! { + get { try! _IFlipViewStatics.get_UseTouchAnimationsForAllNavigationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flipview.usetouchanimationsforallnavigation) + public var useTouchAnimationsForAllNavigation : Bool { + get { try! _default.get_UseTouchAnimationsForAllNavigationImpl() } + set { try! _default.put_UseTouchAnimationsForAllNavigationImpl(newValue) } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = FlipView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlipView + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flipviewitem) +open class FlipViewItem : WinUI.SelectorItem { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlipViewItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItem + 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_CXaml_CControls_CIFlipViewItem>?) -> FlipViewItem? { + 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 _IFlipViewItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IFlipViewItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FlipViewItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFlipViewItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = FlipViewItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlipViewItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlipViewItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyout) +open class Flyout : WinUI.FlyoutBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlyout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout + 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_CXaml_CControls_CIFlyout>?) -> Flyout? { + 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 _IFlyoutFactory : __ABI_Microsoft_UI_Xaml_Controls.IFlyoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Flyout")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFlyoutFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFlyoutStatics: __ABI_Microsoft_UI_Xaml_Controls.IFlyoutStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Flyout")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyout.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyout.flyoutpresenterstyleproperty) + public class var flyoutPresenterStyleProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutStatics.get_FlyoutPresenterStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyout.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyout.flyoutpresenterstyle) + public var flyoutPresenterStyle : WinUI.Style! { + get { try! _default.get_FlyoutPresenterStyleImpl() } + set { try! _default.put_FlyoutPresenterStyleImpl(newValue) } + } + + internal enum IFlyoutBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverrides + internal typealias Class = Flyout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlyout + } + } + internal typealias Composable = IFlyoutBaseOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyoutpresenter) +open class FlyoutPresenter : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlyoutPresenter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter + 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_CXaml_CControls_CIFlyoutPresenter>?) -> FlyoutPresenter? { + 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 _IFlyoutPresenterFactory : __ABI_Microsoft_UI_Xaml_Controls.IFlyoutPresenterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FlyoutPresenter")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFlyoutPresenterFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFlyoutPresenterStatics: __ABI_Microsoft_UI_Xaml_Controls.IFlyoutPresenterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FlyoutPresenter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyoutpresenter.isdefaultshadowenabledproperty) + public class var isDefaultShadowEnabledProperty : WinUI.DependencyProperty! { + get { try! _IFlyoutPresenterStatics.get_IsDefaultShadowEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.flyoutpresenter.isdefaultshadowenabled) + public var isDefaultShadowEnabled : Bool { + get { try! _default.get_IsDefaultShadowEnabledImpl() } + set { try! _default.put_IsDefaultShadowEnabledImpl(newValue) } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = FlyoutPresenter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFlyoutPresenter + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFlyoutPresenter + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.focusdisengagedeventargs) +public final class FocusDisengagedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFocusDisengagedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusDisengagedEventArgs + 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_CXaml_CControls_CIFocusDisengagedEventArgs>?) -> FocusDisengagedEventArgs? { + 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.xaml.controls.focusengagedeventargs) +public final class FocusEngagedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFocusEngagedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFocusEngagedEventArgs + 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_CXaml_CControls_CIFocusEngagedEventArgs>?) -> FocusEngagedEventArgs? { + 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.xaml.controls.focusengagedeventargs.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.xaml.controls.fonticon) +open class FontIcon : WinUI.IconElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFontIcon + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon + 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_CXaml_CControls_CIFontIcon>?) -> FontIcon? { + 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 _IFontIconFactory : __ABI_Microsoft_UI_Xaml_Controls.IFontIconFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FontIcon")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFontIconFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFontIconStatics: __ABI_Microsoft_UI_Xaml_Controls.IFontIconStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FontIcon")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontfamilyproperty) + public class var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontsizeproperty) + public class var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontstyleproperty) + public class var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontweightproperty) + public class var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.glyphproperty) + public class var glyphProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_GlyphPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.istextscalefactorenabledproperty) + public class var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.mirroredwhenrighttoleftproperty) + public class var mirroredWhenRightToLeftProperty : WinUI.DependencyProperty! { + get { try! _IFontIconStatics.get_MirroredWhenRightToLeftPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.glyph) + public var glyph : String { + get { try! _default.get_GlyphImpl() } + set { try! _default.put_GlyphImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticon.mirroredwhenrighttoleft) + public var mirroredWhenRightToLeft : Bool { + get { try! _default.get_MirroredWhenRightToLeftImpl() } + set { try! _default.put_MirroredWhenRightToLeftImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = FontIcon + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIcon + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFontIcon + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource) +open class FontIconSource : WinUI.IconSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFontIconSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource + 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_CXaml_CControls_CIFontIconSource>?) -> FontIconSource? { + 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 _IFontIconSourceFactory : __ABI_Microsoft_UI_Xaml_Controls.IFontIconSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FontIconSource")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFontIconSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFontIconSourceStatics: __ABI_Microsoft_UI_Xaml_Controls.IFontIconSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.FontIconSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontfamilyproperty) + public class var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontsizeproperty) + public class var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontstyleproperty) + public class var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontweightproperty) + public class var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.glyphproperty) + public class var glyphProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_GlyphPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.istextscalefactorenabledproperty) + public class var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.mirroredwhenrighttoleftproperty) + public class var mirroredWhenRightToLeftProperty : WinUI.DependencyProperty! { + get { try! _IFontIconSourceStatics.get_MirroredWhenRightToLeftPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.glyph) + public var glyph : String { + get { try! _default.get_GlyphImpl() } + set { try! _default.put_GlyphImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.fonticonsource.mirroredwhenrighttoleft) + public var mirroredWhenRightToLeft : Bool { + get { try! _default.get_MirroredWhenRightToLeftImpl() } + set { try! _default.put_MirroredWhenRightToLeftImpl(newValue) } + } + + internal enum IIconSourceOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverrides + internal typealias Class = FontIconSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFontIconSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFontIconSource + } + } + internal typealias Composable = IIconSourceOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame) +open class Frame : WinUI.ContentControl, INavigate { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame + 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_CXaml_CControls_CIFrame>?) -> Frame? { + 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 _IFrameFactory : __ABI_Microsoft_UI_Xaml_Controls.IFrameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Frame")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFrameFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFrameStatics: __ABI_Microsoft_UI_Xaml_Controls.IFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Frame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.backstackdepthproperty) + public class var backStackDepthProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_BackStackDepthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.backstackproperty) + public class var backStackProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_BackStackPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cachesizeproperty) + public class var cacheSizeProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_CacheSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cangobackproperty) + public class var canGoBackProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_CanGoBackPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cangoforwardproperty) + public class var canGoForwardProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_CanGoForwardPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.currentsourcepagetypeproperty) + public class var currentSourcePageTypeProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_CurrentSourcePageTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.forwardstackproperty) + public class var forwardStackProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_ForwardStackPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.isnavigationstackenabledproperty) + public class var isNavigationStackEnabledProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_IsNavigationStackEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.sourcepagetypeproperty) + public class var sourcePageTypeProperty : WinUI.DependencyProperty! { + get { try! _IFrameStatics.get_SourcePageTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.goback) + public func goBack() throws { + try _default.GoBackImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.goback) + public func goBack(_ transitionInfoOverride: WinUI.NavigationTransitionInfo!) throws { + try _default.GoBackWithTransitionInfoImpl(transitionInfoOverride) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.goforward) + public func goForward() throws { + try _default.GoForwardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigate) + public func navigate(_ sourcePageType: WinUI.TypeName, _ parameter: Any!) throws -> Bool { + try _default.NavigateImpl(sourcePageType, parameter) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigate) + public func navigate(_ sourcePageType: WinUI.TypeName, _ parameter: Any!, _ infoOverride: WinUI.NavigationTransitionInfo!) throws -> Bool { + try _default.NavigateWithTransitionInfoImpl(sourcePageType, parameter, infoOverride) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigatetotype) + public func navigateToType(_ sourcePageType: WinUI.TypeName, _ parameter: Any!, _ navigationOptions: WinUI.FrameNavigationOptions!) throws -> Bool { + try _default.NavigateToTypeImpl(sourcePageType, parameter, navigationOptions) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.getnavigationstate) + public func getNavigationState() throws -> String { + try _default.GetNavigationStateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.setnavigationstate) + public func setNavigationState(_ navigationState: String) throws { + try _default.SetNavigationStateImpl(navigationState) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.setnavigationstate) + public func setNavigationState(_ navigationState: String, _ suppressNavigate: Bool) throws { + try _default.SetNavigationStateWithNavigationControlImpl(navigationState, suppressNavigate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.backstack) + public var backStack : WindowsFoundation.AnyIVector! { + get { try! _default.get_BackStackImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.backstackdepth) + public var backStackDepth : Int32 { + get { try! _default.get_BackStackDepthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cachesize) + public var cacheSize : Int32 { + get { try! _default.get_CacheSizeImpl() } + set { try! _default.put_CacheSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cangoback) + public var canGoBack : Bool { + get { try! _default.get_CanGoBackImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.cangoforward) + public var canGoForward : Bool { + get { try! _default.get_CanGoForwardImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.currentsourcepagetype) + public var currentSourcePageType : WinUI.TypeName { + get { try! _default.get_CurrentSourcePageTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.forwardstack) + public var forwardStack : WindowsFoundation.AnyIVector! { + get { try! _default.get_ForwardStackImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.isnavigationstackenabled) + public var isNavigationStackEnabled : Bool { + get { try! _default.get_IsNavigationStackEnabledImpl() } + set { try! _default.put_IsNavigationStackEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.sourcepagetype) + public var sourcePageType : WinUI.TypeName { + get { try! _default.get_SourcePageTypeImpl() } + set { try! _default.put_SourcePageTypeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigated) + public lazy var navigated : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_NavigatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_NavigatedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigating) + public lazy var navigating : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_NavigatingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_NavigatingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigationfailed) + public lazy var navigationFailed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_NavigationFailedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_NavigationFailedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigationstopped) + public lazy var navigationStopped : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_NavigationStoppedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_NavigationStoppedImpl($0) + } + ) + }() + + private lazy var _INavigate: __ABI_Microsoft_UI_Xaml_Controls.INavigate! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.frame.navigate) + public func navigate(_ sourcePageType: WinUI.TypeName) throws -> Bool { + try _INavigate.NavigateImpl(sourcePageType) + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = Frame + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIFrame + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IFrame + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + _INavigate = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid) +open class Grid : WinUI.Panel { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGrid + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid + 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_CXaml_CControls_CIGrid>?) -> Grid? { + 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 _IGridFactory : __ABI_Microsoft_UI_Xaml_Controls.IGridFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Grid")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IGridFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IGridStatics: __ABI_Microsoft_UI_Xaml_Controls.IGridStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Grid")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.getrow) + public class func getRow(_ element: WinUI.FrameworkElement!) -> Int32 { + return try! _IGridStatics.GetRowImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.setrow) + public class func setRow(_ element: WinUI.FrameworkElement!, _ value: Int32) { + try! _IGridStatics.SetRowImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.getcolumn) + public class func getColumn(_ element: WinUI.FrameworkElement!) -> Int32 { + return try! _IGridStatics.GetColumnImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.setcolumn) + public class func setColumn(_ element: WinUI.FrameworkElement!, _ value: Int32) { + try! _IGridStatics.SetColumnImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.getrowspan) + public class func getRowSpan(_ element: WinUI.FrameworkElement!) -> Int32 { + return try! _IGridStatics.GetRowSpanImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.setrowspan) + public class func setRowSpan(_ element: WinUI.FrameworkElement!, _ value: Int32) { + try! _IGridStatics.SetRowSpanImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.getcolumnspan) + public class func getColumnSpan(_ element: WinUI.FrameworkElement!) -> Int32 { + return try! _IGridStatics.GetColumnSpanImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.setcolumnspan) + public class func setColumnSpan(_ element: WinUI.FrameworkElement!, _ value: Int32) { + try! _IGridStatics.SetColumnSpanImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.backgroundsizingproperty) + public class var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.borderbrushproperty) + public class var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.borderthicknessproperty) + public class var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.columnproperty) + public class var columnProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_ColumnPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.columnspacingproperty) + public class var columnSpacingProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_ColumnSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.columnspanproperty) + public class var columnSpanProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_ColumnSpanPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.cornerradiusproperty) + public class var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.paddingproperty) + public class var paddingProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.rowproperty) + public class var rowProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_RowPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.rowspacingproperty) + public class var rowSpacingProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_RowSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.rowspanproperty) + public class var rowSpanProperty : WinUI.DependencyProperty! { + get { try! _IGridStatics.get_RowSpanPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.columndefinitions) + public var columnDefinitions : ColumnDefinitionCollection! { + get { try! _default.get_ColumnDefinitionsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.columnspacing) + public var columnSpacing : Double { + get { try! _default.get_ColumnSpacingImpl() } + set { try! _default.put_ColumnSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.grid.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.rowdefinitions) + public var rowDefinitions : RowDefinitionCollection! { + get { try! _default.get_RowDefinitionsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.rowspacing) + public var rowSpacing : Double { + get { try! _default.get_RowSpacingImpl() } + set { try! _default.put_RowSpacingImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Grid + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGrid + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGrid + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.gridview) +open class GridView : WinUI.ListViewBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGridView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridView + 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_CXaml_CControls_CIGridView>?) -> GridView? { + 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 _IGridViewFactory : __ABI_Microsoft_UI_Xaml_Controls.IGridViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.GridView")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IGridViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = GridView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGridView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGridView + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle) +open class GroupStyle : WinRTClass, WinUI.INotifyPropertyChanged { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyle + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle + 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_CXaml_CControls_CIGroupStyle>?) -> GroupStyle? { + 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 _IGroupStyleFactory : __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.GroupStyle")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IGroupStyleFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.containerstyle) + public var containerStyle : WinUI.Style! { + get { try! _default.get_ContainerStyleImpl() } + set { try! _default.put_ContainerStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.containerstyleselector) + public var containerStyleSelector : StyleSelector! { + get { try! _default.get_ContainerStyleSelectorImpl() } + set { try! _default.put_ContainerStyleSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.headercontainerstyle) + public var headerContainerStyle : WinUI.Style! { + get { try! _default.get_HeaderContainerStyleImpl() } + set { try! _default.put_HeaderContainerStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.headertemplateselector) + public var headerTemplateSelector : DataTemplateSelector! { + get { try! _default.get_HeaderTemplateSelectorImpl() } + set { try! _default.put_HeaderTemplateSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.hidesifempty) + public var hidesIfEmpty : Bool { + get { try! _default.get_HidesIfEmptyImpl() } + set { try! _default.put_HidesIfEmptyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.panel) + public var panel : ItemsPanelTemplate! { + get { try! _default.get_PanelImpl() } + set { try! _default.put_PanelImpl(newValue) } + } + + private lazy var _INotifyPropertyChanged: __ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChanged! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyle.propertychanged) + public lazy var propertyChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._INotifyPropertyChanged else { return .init() } + return try! this.add_PropertyChangedImpl($0) + }, + remove: { [weak self] in + try? self?._INotifyPropertyChanged.remove_PropertyChangedImpl($0) + } + ) + }() + + internal enum IGroupStyle : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = GroupStyle + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyle + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyle + } + } + internal typealias Composable = IGroupStyle + deinit { + _default = nil + _INotifyPropertyChanged = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyleselector) +open class GroupStyleSelector : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelector + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelector + 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_CXaml_CControls_CIGroupStyleSelector>?) -> GroupStyleSelector? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IGroupStyleSelectorFactory : __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.GroupStyleSelector")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IGroupStyleSelectorFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyleselector.selectgroupstyle) + public func selectGroupStyle(_ group: Any!, _ level: UInt32) throws -> GroupStyle! { + try _default.SelectGroupStyleImpl(group, level) + } + + private lazy var _IGroupStyleSelectorOverrides: __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.groupstyleselector.selectgroupstylecore) + open func selectGroupStyleCore(_ group: Any!, _ level: UInt32) throws -> GroupStyle! { + try _IGroupStyleSelectorOverrides.SelectGroupStyleCoreImpl(group, level) + } + + internal enum IGroupStyleSelectorOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelectorOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelectorOverrides + internal typealias Class = GroupStyleSelector + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIGroupStyleSelector + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IGroupStyleSelector + } + } + internal typealias Composable = IGroupStyleSelectorOverrides + deinit { + _default = nil + _IGroupStyleSelectorOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.hyperlinkbutton) +open class HyperlinkButton : WinUI.ButtonBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IHyperlinkButton + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton + 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_CXaml_CControls_CIHyperlinkButton>?) -> HyperlinkButton? { + 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 _IHyperlinkButtonFactory : __ABI_Microsoft_UI_Xaml_Controls.IHyperlinkButtonFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.HyperlinkButton")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IHyperlinkButtonFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IHyperlinkButtonStatics: __ABI_Microsoft_UI_Xaml_Controls.IHyperlinkButtonStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.HyperlinkButton")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.hyperlinkbutton.navigateuriproperty) + public class var navigateUriProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkButtonStatics.get_NavigateUriPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.hyperlinkbutton.navigateuri) + public var navigateUri : WindowsFoundation.Uri! { + get { try! _default.get_NavigateUriImpl() } + set { try! _default.put_NavigateUriImpl(newValue) } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = HyperlinkButton + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIHyperlinkButton + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IHyperlinkButton + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconelement) +open class IconElement : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement + 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_CXaml_CControls_CIIconElement>?) -> IconElement? { + 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 _IIconElementFactory : __ABI_Microsoft_UI_Xaml_Controls.IIconElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconElement")) + + private static let _IIconElementStatics: __ABI_Microsoft_UI_Xaml_Controls.IIconElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconelement.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _IIconElementStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconelement.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = IconElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconElement + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource) +open class IconSource : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource + 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_CXaml_CControls_CIIconSource>?) -> IconSource? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IIconSourceFactory : __ABI_Microsoft_UI_Xaml_Controls.IIconSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconSource")) + + private static let _IIconSourceStatics: __ABI_Microsoft_UI_Xaml_Controls.IIconSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _IIconSourceStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource.createiconelement) + public func createIconElement() throws -> IconElement! { + try _default.CreateIconElementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + private lazy var _IIconSourceOverrides: __ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource.createiconelementcore) + open func createIconElementCore() throws -> IconElement! { + try _IIconSourceOverrides.CreateIconElementCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsource.geticonelementpropertycore) + open func getIconElementPropertyCore(_ iconSourceProperty: WinUI.DependencyProperty!) throws -> WinUI.DependencyProperty! { + try _IIconSourceOverrides.GetIconElementPropertyCoreImpl(iconSourceProperty) + } + + internal enum IIconSourceOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSourceOverrides + internal typealias Class = IconSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSource + } + } + internal typealias Composable = IIconSourceOverrides + deinit { + _default = nil + _IIconSourceOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsourceelement) +open class IconSourceElement : WinUI.IconElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSourceElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement + 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_CXaml_CControls_CIIconSourceElement>?) -> IconSourceElement? { + 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 _IIconSourceElementFactory : __ABI_Microsoft_UI_Xaml_Controls.IIconSourceElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconSourceElement")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IIconSourceElementFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IIconSourceElementStatics: __ABI_Microsoft_UI_Xaml_Controls.IIconSourceElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.IconSourceElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsourceelement.iconsourceproperty) + public class var iconSourceProperty : WinUI.DependencyProperty! { + get { try! _IIconSourceElementStatics.get_IconSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconsourceelement.iconsource) + public var iconSource : IconSource! { + get { try! _default.get_IconSourceImpl() } + set { try! _default.put_IconSourceImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = IconSourceElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIconSourceElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIconSourceElement + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image) +public final class Image : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IImage + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage + 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_CXaml_CControls_CIImage>?) -> Image? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.Image"))) + } + + private static let _IImageStatics: __ABI_Microsoft_UI_Xaml_Controls.IImageStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Image")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.ninegridproperty) + public static var nineGridProperty : WinUI.DependencyProperty! { + get { try! _IImageStatics.get_NineGridPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.sourceproperty) + public static var sourceProperty : WinUI.DependencyProperty! { + get { try! _IImageStatics.get_SourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.stretchproperty) + public static var stretchProperty : WinUI.DependencyProperty! { + get { try! _IImageStatics.get_StretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.getascastingsource) + public func getAsCastingSource() throws -> UWP.CastingSource! { + try _default.GetAsCastingSourceImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.getalphamask) + public func getAlphaMask() throws -> WinAppSDK.CompositionBrush! { + try _default.GetAlphaMaskImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.ninegrid) + public var nineGrid : WinUI.Thickness { + get { try! _default.get_NineGridImpl() } + set { try! _default.put_NineGridImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.source) + public var source : WinUI.ImageSource! { + 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.xaml.controls.image.stretch) + public var stretch : WinUI.Stretch { + 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.xaml.controls.image.imagefailed) + public lazy var imageFailed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ImageFailedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ImageFailedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.imageopened) + public lazy var imageOpened : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ImageOpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ImageOpenedImpl($0) + } + ) + }() + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Image + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImage + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IImage + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.imageicon) +open class ImageIcon : WinUI.IconElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IImageIcon + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon + 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_CXaml_CControls_CIImageIcon>?) -> ImageIcon? { + 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 _IImageIconFactory : __ABI_Microsoft_UI_Xaml_Controls.IImageIconFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ImageIcon")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IImageIconFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IImageIconStatics: __ABI_Microsoft_UI_Xaml_Controls.IImageIconStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ImageIcon")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.imageicon.sourceproperty) + public class var sourceProperty : WinUI.DependencyProperty! { + get { try! _IImageIconStatics.get_SourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.imageicon.source) + public var source : WinUI.ImageSource! { + get { try! _default.get_SourceImpl() } + set { try! _default.put_SourceImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = ImageIcon + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIImageIcon + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IImageIcon + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar) +open class InfoBar : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBar + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar + 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_CXaml_CControls_CIInfoBar>?) -> InfoBar? { + 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 _IInfoBarFactory : __ABI_Microsoft_UI_Xaml_Controls.IInfoBarFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBar")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IInfoBarFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IInfoBarStatics: __ABI_Microsoft_UI_Xaml_Controls.IInfoBarStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBar")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.actionbuttonproperty) + public class var actionButtonProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_ActionButtonPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttoncommandparameterproperty) + public class var closeButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_CloseButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttoncommandproperty) + public class var closeButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_CloseButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttonstyleproperty) + public class var closeButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_CloseButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.contenttemplateproperty) + public class var contentTemplateProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_ContentTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.iconsourceproperty) + public class var iconSourceProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_IconSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isclosableproperty) + public class var isClosableProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_IsClosablePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isiconvisibleproperty) + public class var isIconVisibleProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_IsIconVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isopenproperty) + public class var isOpenProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.messageproperty) + public class var messageProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_MessagePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.severityproperty) + public class var severityProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_SeverityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.templatesettingsproperty) + public class var templateSettingsProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_TemplateSettingsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.titleproperty) + public class var titleProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarStatics.get_TitlePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.actionbutton) + public var actionButton : WinUI.ButtonBase! { + get { try! _default.get_ActionButtonImpl() } + set { try! _default.put_ActionButtonImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttoncommand) + public var closeButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_CloseButtonCommandImpl() } + set { try! _default.put_CloseButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttoncommandparameter) + public var closeButtonCommandParameter : Any! { + get { try! _default.get_CloseButtonCommandParameterImpl() } + set { try! _default.put_CloseButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closebuttonstyle) + public var closeButtonStyle : WinUI.Style! { + get { try! _default.get_CloseButtonStyleImpl() } + set { try! _default.put_CloseButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.content) + public var content : Any! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.contenttemplate) + public var contentTemplate : WinUI.DataTemplate! { + get { try! _default.get_ContentTemplateImpl() } + set { try! _default.put_ContentTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.iconsource) + public var iconSource : IconSource! { + get { try! _default.get_IconSourceImpl() } + set { try! _default.put_IconSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isclosable) + public var isClosable : Bool { + get { try! _default.get_IsClosableImpl() } + set { try! _default.put_IsClosableImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isiconvisible) + public var isIconVisible : Bool { + get { try! _default.get_IsIconVisibleImpl() } + set { try! _default.put_IsIconVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + set { try! _default.put_IsOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.message) + public var message : String { + get { try! _default.get_MessageImpl() } + set { try! _default.put_MessageImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.severity) + public var severity : InfoBarSeverity { + get { try! _default.get_SeverityImpl() } + set { try! _default.put_SeverityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.templatesettings) + public var templateSettings : InfoBarTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.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.xaml.controls.infobar.closebuttonclick) + public lazy var closeButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CloseButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CloseButtonClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobar.closed) + public 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.xaml.controls.infobar.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) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = InfoBar + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBar + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBar + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosedeventargs) +open class InfoBarClosedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgs + 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_CXaml_CControls_CIInfoBarClosedEventArgs>?) -> InfoBarClosedEventArgs? { + 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 _IInfoBarClosedEventArgsFactory : __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBarClosedEventArgs")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosedeventargs.reason) + public var reason : InfoBarCloseReason { + get { try! _default.get_ReasonImpl() } + } + + internal enum IInfoBarClosedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InfoBarClosedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosedEventArgs + } + } + internal typealias Composable = IInfoBarClosedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosingeventargs) +open class InfoBarClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs + 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_CXaml_CControls_CIInfoBarClosingEventArgs>?) -> InfoBarClosingEventArgs? { + 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 _IInfoBarClosingEventArgsFactory : __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosingEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBarClosingEventArgs")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobarclosingeventargs.reason) + public var reason : InfoBarCloseReason { + get { try! _default.get_ReasonImpl() } + } + + internal enum IInfoBarClosingEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InfoBarClosingEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarClosingEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarClosingEventArgs + } + } + internal typealias Composable = IInfoBarClosingEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobartemplatesettings) +open class InfoBarTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings + 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_CXaml_CControls_CIInfoBarTemplateSettings>?) -> InfoBarTemplateSettings? { + 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 _IInfoBarTemplateSettingsFactory : __ABI_Microsoft_UI_Xaml_Controls.IInfoBarTemplateSettingsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBarTemplateSettings")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IInfoBarTemplateSettingsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IInfoBarTemplateSettingsStatics: __ABI_Microsoft_UI_Xaml_Controls.IInfoBarTemplateSettingsStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.InfoBarTemplateSettings")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobartemplatesettings.iconelementproperty) + public class var iconElementProperty : WinUI.DependencyProperty! { + get { try! _IInfoBarTemplateSettingsStatics.get_IconElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.infobartemplatesettings.iconelement) + public var iconElement : IconElement! { + get { try! _default.get_IconElementImpl() } + set { try! _default.put_IconElementImpl(newValue) } + } + + internal enum IInfoBarTemplateSettings : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = InfoBarTemplateSettings + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIInfoBarTemplateSettings + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IInfoBarTemplateSettings + } + } + internal typealias Composable = IInfoBarTemplateSettings + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.istexttrimmedchangedeventargs) +public final class IsTextTrimmedChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IIsTextTrimmedChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIIsTextTrimmedChangedEventArgs + 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_CXaml_CControls_CIIsTextTrimmedChangedEventArgs>?) -> IsTextTrimmedChangedEventArgs? { + 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.xaml.controls.itemclickeventargs) +public final class ItemClickEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemClickEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemClickEventArgs + 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_CXaml_CControls_CIItemClickEventArgs>?) -> ItemClickEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ItemClickEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemclickeventargs.clickeditem) + public var clickedItem : Any! { + get { try! _default.get_ClickedItemImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection) +public final class ItemCollection : WinRTClass, IObservableVector, IVector, IIterable { + public typealias T = Any? + private typealias SwiftABI = WinUI.IObservableVectorAny + private typealias CABI = __x_ABI_C__FIObservableVector_1_IInspectable + 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__FIObservableVector_1_IInspectable>?) -> ItemCollection? { + 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) + } + // 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.xaml.controls.itemcollection.vectorchanged) + public lazy var vectorChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_VectorChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_VectorChangedImpl($0) + } + ) + }() + + private lazy var _IVector: IVectorAny! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.getat) + public func getAt(_ index: UInt32) -> Any? { + try! _IVector.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _IVector.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.indexof) + public func indexOf(_ value: Any?, _ index: inout UInt32) -> Bool { + try! _IVector.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.setat) + public func setAt(_ index: UInt32, _ value: Any?) { + try! _IVector.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.insertat) + public func insertAt(_ index: UInt32, _ value: Any?) { + try! _IVector.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.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.xaml.controls.itemcollection.append) + public func append(_ value: Any?) { + try! _IVector.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.removeatend) + public func removeAtEnd() { + try! _IVector.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.clear) + public func clear() { + try! _IVector.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.size) + public var size : UInt32 { + get { try! _IVector.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableAny! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IVector = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition) +public final class ItemCollectionTransition : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransition + 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_CXaml_CControls_CIItemCollectionTransition>?) -> ItemCollectionTransition? { + 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.xaml.controls.itemcollectiontransition.start) + public func start() throws -> ItemCollectionTransitionProgress! { + try _default.StartImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition.hasstarted) + public var hasStarted : Bool { + get { try! _default.get_HasStartedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition.newbounds) + public var newBounds : WindowsFoundation.Rect { + get { try! _default.get_NewBoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition.oldbounds) + public var oldBounds : WindowsFoundation.Rect { + get { try! _default.get_OldBoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition.operation) + public var operation : ItemCollectionTransitionOperation { + get { try! _default.get_OperationImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransition.triggers) + public var triggers : ItemCollectionTransitionTriggers { + get { try! _default.get_TriggersImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitioncompletedeventargs) +public final class ItemCollectionTransitionCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs + 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_CXaml_CControls_CIItemCollectionTransitionCompletedEventArgs>?) -> ItemCollectionTransitionCompletedEventArgs? { + 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.xaml.controls.itemcollectiontransitioncompletedeventargs.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitioncompletedeventargs.transition) + public var transition : ItemCollectionTransition! { + get { try! _default.get_TransitionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprogress) +public final class ItemCollectionTransitionProgress : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProgress + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProgress + 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_CXaml_CControls_CIItemCollectionTransitionProgress>?) -> ItemCollectionTransitionProgress? { + 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.xaml.controls.itemcollectiontransitionprogress.complete) + public func complete() throws { + try _default.CompleteImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprogress.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprogress.transition) + public var transition : ItemCollectionTransition! { + get { try! _default.get_TransitionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider) +open class ItemCollectionTransitionProvider : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProvider + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider + 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_CXaml_CControls_CIItemCollectionTransitionProvider>?) -> ItemCollectionTransitionProvider? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IItemCollectionTransitionProviderFactory : __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemCollectionTransitionProvider")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IItemCollectionTransitionProviderFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider.shouldanimate) + public func shouldAnimate(_ transition: ItemCollectionTransition!) throws -> Bool { + try _default.ShouldAnimateImpl(transition) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider.queuetransition) + public func queueTransition(_ transition: ItemCollectionTransition!) throws { + try _default.QueueTransitionImpl(transition) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider.transitioncompleted) + public lazy var transitionCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TransitionCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TransitionCompletedImpl($0) + } + ) + }() + + private lazy var _IItemCollectionTransitionProviderOverrides: __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider.shouldanimatecore) + open func shouldAnimateCore(_ transition: ItemCollectionTransition!) throws -> Bool { + try _IItemCollectionTransitionProviderOverrides.ShouldAnimateCoreImpl(transition) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcollectiontransitionprovider.starttransitions) + open func startTransitions(_ transitions: WindowsFoundation.AnyIVector!) throws { + try _IItemCollectionTransitionProviderOverrides.StartTransitionsImpl(transitions) + } + + internal enum IItemCollectionTransitionProviderOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProviderOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProviderOverrides + internal typealias Class = ItemCollectionTransitionProvider + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemCollectionTransitionProvider + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemCollectionTransitionProvider + } + } + internal typealias Composable = IItemCollectionTransitionProviderOverrides + deinit { + _default = nil + _IItemCollectionTransitionProviderOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator) +public final class ItemContainerGenerator : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemContainerGenerator + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemContainerGenerator + 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_CXaml_CControls_CIItemContainerGenerator>?) -> ItemContainerGenerator? { + 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.xaml.controls.itemcontainergenerator.itemfromcontainer) + public func itemFromContainer(_ container: WinUI.DependencyObject!) throws -> Any! { + try _default.ItemFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.containerfromitem) + public func containerFromItem(_ item: Any!) throws -> WinUI.DependencyObject! { + try _default.ContainerFromItemImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.indexfromcontainer) + public func indexFromContainer(_ container: WinUI.DependencyObject!) throws -> Int32 { + try _default.IndexFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.containerfromindex) + public func containerFromIndex(_ index: Int32) throws -> WinUI.DependencyObject! { + try _default.ContainerFromIndexImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.getitemcontainergeneratorforpanel) + public func getItemContainerGeneratorForPanel(_ panel: Panel!) throws -> ItemContainerGenerator! { + try _default.GetItemContainerGeneratorForPanelImpl(panel) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.startat) + public func startAt(_ position: WinUI.GeneratorPosition, _ direction: WinUI.GeneratorDirection, _ allowStartAtRealizedItem: Bool) throws { + try _default.StartAtImpl(position, direction, allowStartAtRealizedItem) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.stop) + public func stop() throws { + try _default.StopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.generatenext) + public func generateNext(_ isNewlyRealized: inout Bool) throws -> WinUI.DependencyObject! { + try _default.GenerateNextImpl(&isNewlyRealized) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.prepareitemcontainer) + public func prepareItemContainer(_ container: WinUI.DependencyObject!) throws { + try _default.PrepareItemContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.removeall) + public func removeAll() throws { + try _default.RemoveAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.remove) + public func remove(_ position: WinUI.GeneratorPosition, _ count: Int32) throws { + try _default.RemoveImpl(position, count) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.generatorpositionfromindex) + public func generatorPositionFromIndex(_ itemIndex: Int32) throws -> WinUI.GeneratorPosition { + try _default.GeneratorPositionFromIndexImpl(itemIndex) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.indexfromgeneratorposition) + public func indexFromGeneratorPosition(_ position: WinUI.GeneratorPosition) throws -> Int32 { + try _default.IndexFromGeneratorPositionImpl(position) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.recycle) + public func recycle(_ position: WinUI.GeneratorPosition, _ count: Int32) throws { + try _default.RecycleImpl(position, count) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemcontainergenerator.itemschanged) + public lazy var itemsChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ItemsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ItemsChangedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol) +open class ItemsControl : WinUI.Control, IItemContainerMapping { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControl + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl + 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_CXaml_CControls_CIItemsControl>?) -> ItemsControl? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IItemsControlFactory : __ABI_Microsoft_UI_Xaml_Controls.IItemsControlFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsControl")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IItemsControlFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IItemsControlStatics: __ABI_Microsoft_UI_Xaml_Controls.IItemsControlStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsControl")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.getitemsowner) + public class func getItemsOwner(_ element: WinUI.DependencyObject!) -> ItemsControl! { + return try! _IItemsControlStatics.GetItemsOwnerImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemscontrolfromitemcontainer) + public class func itemsControlFromItemContainer(_ container: WinUI.DependencyObject!) -> ItemsControl! { + return try! _IItemsControlStatics.ItemsControlFromItemContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.displaymemberpathproperty) + public class var displayMemberPathProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_DisplayMemberPathPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.groupstyleselectorproperty) + public class var groupStyleSelectorProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_GroupStyleSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.isgroupingproperty) + public class var isGroupingProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_IsGroupingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainerstyleproperty) + public class var itemContainerStyleProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemContainerStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainerstyleselectorproperty) + public class var itemContainerStyleSelectorProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemContainerStyleSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainertransitionsproperty) + public class var itemContainerTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemContainerTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemtemplateproperty) + public class var itemTemplateProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemtemplateselectorproperty) + public class var itemTemplateSelectorProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemTemplateSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemspanelproperty) + public class var itemsPanelProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemsPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemssourceproperty) + public class var itemsSourceProperty : WinUI.DependencyProperty! { + get { try! _IItemsControlStatics.get_ItemsSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.groupheadercontainerfromitemcontainer) + public func groupHeaderContainerFromItemContainer(_ itemContainer: WinUI.DependencyObject!) throws -> WinUI.DependencyObject! { + try _default.GroupHeaderContainerFromItemContainerImpl(itemContainer) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.displaymemberpath) + public var displayMemberPath : String { + get { try! _default.get_DisplayMemberPathImpl() } + set { try! _default.put_DisplayMemberPathImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.groupstyle) + public var groupStyle : WindowsFoundation.AnyIObservableVector! { + get { try! _default.get_GroupStyleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.groupstyleselector) + public var groupStyleSelector : GroupStyleSelector! { + get { try! _default.get_GroupStyleSelectorImpl() } + set { try! _default.put_GroupStyleSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.isgrouping) + public var isGrouping : Bool { + get { try! _default.get_IsGroupingImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainergenerator) + public var itemContainerGenerator : ItemContainerGenerator! { + get { try! _default.get_ItemContainerGeneratorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainerstyle) + public var itemContainerStyle : WinUI.Style! { + get { try! _default.get_ItemContainerStyleImpl() } + set { try! _default.put_ItemContainerStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainerstyleselector) + public var itemContainerStyleSelector : StyleSelector! { + get { try! _default.get_ItemContainerStyleSelectorImpl() } + set { try! _default.put_ItemContainerStyleSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemcontainertransitions) + public var itemContainerTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ItemContainerTransitionsImpl() } + set { try! _default.put_ItemContainerTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemtemplate) + public var itemTemplate : WinUI.DataTemplate! { + get { try! _default.get_ItemTemplateImpl() } + set { try! _default.put_ItemTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemtemplateselector) + public var itemTemplateSelector : DataTemplateSelector! { + get { try! _default.get_ItemTemplateSelectorImpl() } + set { try! _default.put_ItemTemplateSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.items) + public var items : ItemCollection! { + get { try! _default.get_ItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemspanel) + public var itemsPanel : ItemsPanelTemplate! { + get { try! _default.get_ItemsPanelImpl() } + set { try! _default.put_ItemsPanelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemspanelroot) + public var itemsPanelRoot : Panel! { + get { try! _default.get_ItemsPanelRootImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemssource) + public var itemsSource : Any! { + get { try! _default.get_ItemsSourceImpl() } + set { try! _default.put_ItemsSourceImpl(newValue) } + } + + private lazy var _IItemsControlOverrides: __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.isitemitsowncontaineroverride) + open func isItemItsOwnContainerOverride(_ item: Any!) throws -> Bool { + try _IItemsControlOverrides.IsItemItsOwnContainerOverrideImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.getcontainerforitemoverride) + open func getContainerForItemOverride() throws -> WinUI.DependencyObject! { + try _IItemsControlOverrides.GetContainerForItemOverrideImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.clearcontainerforitemoverride) + open func clearContainerForItemOverride(_ element: WinUI.DependencyObject!, _ item: Any!) throws { + try _IItemsControlOverrides.ClearContainerForItemOverrideImpl(element, item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.preparecontainerforitemoverride) + open func prepareContainerForItemOverride(_ element: WinUI.DependencyObject!, _ item: Any!) throws { + try _IItemsControlOverrides.PrepareContainerForItemOverrideImpl(element, item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.onitemschanged) + open func onItemsChanged(_ e: Any!) throws { + try _IItemsControlOverrides.OnItemsChangedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.onitemcontainerstylechanged) + open func onItemContainerStyleChanged(_ oldItemContainerStyle: WinUI.Style!, _ newItemContainerStyle: WinUI.Style!) throws { + try _IItemsControlOverrides.OnItemContainerStyleChangedImpl(oldItemContainerStyle, newItemContainerStyle) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.onitemcontainerstyleselectorchanged) + open func onItemContainerStyleSelectorChanged(_ oldItemContainerStyleSelector: StyleSelector!, _ newItemContainerStyleSelector: StyleSelector!) throws { + try _IItemsControlOverrides.OnItemContainerStyleSelectorChangedImpl(oldItemContainerStyleSelector, newItemContainerStyleSelector) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.onitemtemplatechanged) + open func onItemTemplateChanged(_ oldItemTemplate: WinUI.DataTemplate!, _ newItemTemplate: WinUI.DataTemplate!) throws { + try _IItemsControlOverrides.OnItemTemplateChangedImpl(oldItemTemplate, newItemTemplate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.onitemtemplateselectorchanged) + open func onItemTemplateSelectorChanged(_ oldItemTemplateSelector: DataTemplateSelector!, _ newItemTemplateSelector: DataTemplateSelector!) throws { + try _IItemsControlOverrides.OnItemTemplateSelectorChangedImpl(oldItemTemplateSelector, newItemTemplateSelector) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.ongroupstyleselectorchanged) + open func onGroupStyleSelectorChanged(_ oldGroupStyleSelector: GroupStyleSelector!, _ newGroupStyleSelector: GroupStyleSelector!) throws { + try _IItemsControlOverrides.OnGroupStyleSelectorChangedImpl(oldGroupStyleSelector, newGroupStyleSelector) + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = ItemsControl + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControl + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControl + } + } + internal typealias Composable = IItemsControlOverrides + private lazy var _IItemContainerMapping: __ABI_Microsoft_UI_Xaml_Controls.IItemContainerMapping! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.itemfromcontainer) + public func itemFromContainer(_ container: WinUI.DependencyObject!) throws -> Any! { + try _IItemContainerMapping.ItemFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.containerfromitem) + public func containerFromItem(_ item: Any!) throws -> WinUI.DependencyObject! { + try _IItemContainerMapping.ContainerFromItemImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.indexfromcontainer) + public func indexFromContainer(_ container: WinUI.DependencyObject!) throws -> Int32 { + try _IItemContainerMapping.IndexFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemscontrol.containerfromindex) + public func containerFromIndex(_ index: Int32) throws -> WinUI.DependencyObject! { + try _IItemContainerMapping.ContainerFromIndexImpl(index) + } + + deinit { + _default = nil + _IItemsControlOverrides = nil + _IItemContainerMapping = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemspaneltemplate) +public final class ItemsPanelTemplate : WinUI.FrameworkTemplate { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsPanelTemplate + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsPanelTemplate + 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_CXaml_CControls_CIItemsPanelTemplate>?) -> ItemsPanelTemplate? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ItemsPanelTemplate"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater) +open class ItemsRepeater : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeater + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater + 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_CXaml_CControls_CIItemsRepeater>?) -> ItemsRepeater? { + 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 _IItemsRepeaterFactory : __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsRepeater")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IItemsRepeaterFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IItemsRepeaterStatics: __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsRepeater")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.horizontalcachelengthproperty) + public class var horizontalCacheLengthProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_HorizontalCacheLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemtemplateproperty) + public class var itemTemplateProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_ItemTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemssourceproperty) + public class var itemsSourceProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_ItemsSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.layoutproperty) + public class var layoutProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_LayoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.verticalcachelengthproperty) + public class var verticalCacheLengthProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics.get_VerticalCacheLengthPropertyImpl() } + } + + private static let _IItemsRepeaterStatics2: __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsRepeater")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemtransitionproviderproperty) + public class var itemTransitionProviderProperty : WinUI.DependencyProperty! { + get { try! _IItemsRepeaterStatics2.get_ItemTransitionProviderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.getelementindex) + public func getElementIndex(_ element: WinUI.UIElement!) throws -> Int32 { + try _default.GetElementIndexImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.trygetelement) + public func tryGetElement(_ index: Int32) throws -> WinUI.UIElement! { + try _default.TryGetElementImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.getorcreateelement) + public func getOrCreateElement(_ index: Int32) throws -> WinUI.UIElement! { + try _default.GetOrCreateElementImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.horizontalcachelength) + public var horizontalCacheLength : Double { + get { try! _default.get_HorizontalCacheLengthImpl() } + set { try! _default.put_HorizontalCacheLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemtemplate) + public var itemTemplate : Any! { + get { try! _default.get_ItemTemplateImpl() } + set { try! _default.put_ItemTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemssource) + public var itemsSource : Any! { + get { try! _default.get_ItemsSourceImpl() } + set { try! _default.put_ItemsSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemssourceview) + public var itemsSourceView : ItemsSourceView! { + get { try! _default.get_ItemsSourceViewImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.layout) + public var layout : Layout! { + get { try! _default.get_LayoutImpl() } + set { try! _default.put_LayoutImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.verticalcachelength) + public var verticalCacheLength : Double { + get { try! _default.get_VerticalCacheLengthImpl() } + set { try! _default.put_VerticalCacheLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.elementclearing) + public lazy var elementClearing : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ElementClearingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ElementClearingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.elementindexchanged) + public lazy var elementIndexChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ElementIndexChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ElementIndexChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.elementprepared) + public lazy var elementPrepared : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ElementPreparedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ElementPreparedImpl($0) + } + ) + }() + + private lazy var _IItemsRepeater2: __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeater2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeater.itemtransitionprovider) + public var itemTransitionProvider : ItemCollectionTransitionProvider! { + get { try! _IItemsRepeater2.get_ItemTransitionProviderImpl() } + set { try! _IItemsRepeater2.put_ItemTransitionProviderImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = ItemsRepeater + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeater + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeater + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + _IItemsRepeater2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementclearingeventargs) +public final class ItemsRepeaterElementClearingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterElementClearingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementClearingEventArgs + 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_CXaml_CControls_CIItemsRepeaterElementClearingEventArgs>?) -> ItemsRepeaterElementClearingEventArgs? { + 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.xaml.controls.itemsrepeaterelementclearingeventargs.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementindexchangedeventargs) +public final class ItemsRepeaterElementIndexChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterElementIndexChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs + 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_CXaml_CControls_CIItemsRepeaterElementIndexChangedEventArgs>?) -> ItemsRepeaterElementIndexChangedEventArgs? { + 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.xaml.controls.itemsrepeaterelementindexchangedeventargs.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementindexchangedeventargs.newindex) + public var newIndex : Int32 { + get { try! _default.get_NewIndexImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementindexchangedeventargs.oldindex) + public var oldIndex : Int32 { + get { try! _default.get_OldIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementpreparedeventargs) +public final class ItemsRepeaterElementPreparedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsRepeaterElementPreparedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs + 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_CXaml_CControls_CIItemsRepeaterElementPreparedEventArgs>?) -> ItemsRepeaterElementPreparedEventArgs? { + 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.xaml.controls.itemsrepeaterelementpreparedeventargs.element) + public var element : WinUI.UIElement! { + get { try! _default.get_ElementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemsrepeaterelementpreparedeventargs.index) + public var index : Int32 { + get { try! _default.get_IndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview) +open class ItemsSourceView : WinRTClass, WinUI.INotifyCollectionChanged { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsSourceView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView + 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_CXaml_CControls_CIItemsSourceView>?) -> ItemsSourceView? { + 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 _IItemsSourceViewFactory : __ABI_Microsoft_UI_Xaml_Controls.IItemsSourceViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ItemsSourceView")) + + public init(_ source: Any!) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IItemsSourceViewFactory.CreateInstanceImpl(source, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.getat) + public func getAt(_ index: Int32) throws -> Any! { + try _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.keyfromindex) + public func keyFromIndex(_ index: Int32) throws -> String { + try _default.KeyFromIndexImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.indexfromkey) + public func indexFromKey(_ key: String) throws -> Int32 { + try _default.IndexFromKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.indexof) + public func indexOf(_ item: Any!) throws -> Int32 { + try _default.IndexOfImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.count) + public var count : Int32 { + get { try! _default.get_CountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.haskeyindexmapping) + public var hasKeyIndexMapping : Bool { + get { try! _default.get_HasKeyIndexMappingImpl() } + } + + private lazy var _INotifyCollectionChanged: __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChanged! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemssourceview.collectionchanged) + public lazy var collectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._INotifyCollectionChanged else { return .init() } + return try! this.add_CollectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._INotifyCollectionChanged.remove_CollectionChangedImpl($0) + } + ) + }() + + internal enum IItemsSourceView : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ItemsSourceView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsSourceView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsSourceView + } + } + internal typealias Composable = IItemsSourceView + deinit { + _default = nil + _INotifyCollectionChanged = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout) +open class Layout : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout + 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_CXaml_CControls_CILayout>?) -> Layout? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.ILayoutOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.ILayoutOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _ILayoutFactory : __ABI_Microsoft_UI_Xaml_Controls.ILayoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Layout")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.initializeforcontext) + public func initializeForContext(_ context: LayoutContext!) throws { + try _default.InitializeForContextImpl(context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.uninitializeforcontext) + public func uninitializeForContext(_ context: LayoutContext!) throws { + try _default.UninitializeForContextImpl(context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.measure) + public func measure(_ context: LayoutContext!, _ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _default.MeasureImpl(context, availableSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.arrange) + public func arrange(_ context: LayoutContext!, _ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _default.ArrangeImpl(context, finalSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.arrangeinvalidated) + public lazy var arrangeInvalidated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ArrangeInvalidatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ArrangeInvalidatedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.measureinvalidated) + public lazy var measureInvalidated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_MeasureInvalidatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_MeasureInvalidatedImpl($0) + } + ) + }() + + private lazy var _ILayout2: __ABI_Microsoft_UI_Xaml_Controls.ILayout2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.indexbasedlayoutorientation) + public var indexBasedLayoutOrientation : IndexBasedLayoutOrientation { + get { try! _ILayout2.get_IndexBasedLayoutOrientationImpl() } + } + + private lazy var _ILayoutProtected: __ABI_Microsoft_UI_Xaml_Controls.ILayoutProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.invalidatemeasure) + public func invalidateMeasure() throws { + try _ILayoutProtected.InvalidateMeasureImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.invalidatearrange) + public func invalidateArrange() throws { + try _ILayoutProtected.InvalidateArrangeImpl() + } + + private lazy var _ILayoutProtected2: __ABI_Microsoft_UI_Xaml_Controls.ILayoutProtected2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.setindexbasedlayoutorientation) + public func setIndexBasedLayoutOrientation(_ orientation: IndexBasedLayoutOrientation) throws { + try _ILayoutProtected2.SetIndexBasedLayoutOrientationImpl(orientation) + } + + private lazy var _ILayoutOverrides: __ABI_Microsoft_UI_Xaml_Controls.ILayoutOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layout.createdefaultitemtransitionprovider) + open func createDefaultItemTransitionProvider() throws -> ItemCollectionTransitionProvider! { + try _ILayoutOverrides.CreateDefaultItemTransitionProviderImpl() + } + + internal enum ILayoutOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayoutOverrides + internal typealias Class = Layout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayout + } + } + internal typealias Composable = ILayoutOverrides + deinit { + _default = nil + _ILayout2 = nil + _ILayoutProtected = nil + _ILayoutProtected2 = nil + _ILayoutOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layoutcontext) +open class LayoutContext : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContext + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext + 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_CXaml_CControls_CILayoutContext>?) -> LayoutContext? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _ILayoutContextFactory : __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.LayoutContext")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layoutcontext.layoutstate) + public var layoutState : Any! { + get { try! _default.get_LayoutStateImpl() } + set { try! _default.put_LayoutStateImpl(newValue) } + } + + private lazy var _ILayoutContextOverrides: __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.layoutcontext.layoutstatecore) + open var layoutStateCore : Any! { + get { try! _ILayoutContextOverrides.get_LayoutStateCoreImpl() } + set { try! _ILayoutContextOverrides.put_LayoutStateCoreImpl(newValue) } + } + + internal enum ILayoutContextOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContextOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContextOverrides + internal typealias Class = LayoutContext + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CILayoutContext + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ILayoutContext + } + } + internal typealias Composable = ILayoutContextOverrides + deinit { + _default = nil + _ILayoutContextOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox) +open class ListBox : WinUI.Selector { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox + 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_CXaml_CControls_CIListBox>?) -> ListBox? { + 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 _IListBoxFactory : __ABI_Microsoft_UI_Xaml_Controls.IListBoxFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListBox")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IListBoxFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IListBoxStatics: __ABI_Microsoft_UI_Xaml_Controls.IListBoxStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListBox")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.selectionmodeproperty) + public class var selectionModeProperty : WinUI.DependencyProperty! { + get { try! _IListBoxStatics.get_SelectionModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.singleselectionfollowsfocusproperty) + public class var singleSelectionFollowsFocusProperty : WinUI.DependencyProperty! { + get { try! _IListBoxStatics.get_SingleSelectionFollowsFocusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.scrollintoview) + public func scrollIntoView(_ item: Any!) throws { + try _default.ScrollIntoViewImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.selecteditems) + public var selectedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_SelectedItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.selectionmode) + public var selectionMode : SelectionMode { + get { try! _default.get_SelectionModeImpl() } + set { try! _default.put_SelectionModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listbox.singleselectionfollowsfocus) + public var singleSelectionFollowsFocus : Bool { + get { try! _default.get_SingleSelectionFollowsFocusImpl() } + set { try! _default.put_SingleSelectionFollowsFocusImpl(newValue) } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = ListBox + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBox + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListBox + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listboxitem) +open class ListBoxItem : WinUI.SelectorItem { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListBoxItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItem + 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_CXaml_CControls_CIListBoxItem>?) -> ListBoxItem? { + 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 _IListBoxItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IListBoxItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListBoxItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IListBoxItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ListBoxItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListBoxItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListBoxItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listview) +open class ListView : WinUI.ListViewBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListView + 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_CXaml_CControls_CIListView>?) -> ListView? { + 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 _IListViewFactory : __ABI_Microsoft_UI_Xaml_Controls.IListViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListView")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IListViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = ListView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListView + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase) +open class ListViewBase : WinUI.Selector, ISemanticZoomInformation { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase + 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_CXaml_CControls_CIListViewBase>?) -> ListViewBase? { + 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 _IListViewBaseFactory : __ABI_Microsoft_UI_Xaml_Controls.IListViewBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListViewBase")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IListViewBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IListViewBaseStatics: __ABI_Microsoft_UI_Xaml_Controls.IListViewBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListViewBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.candragitemsproperty) + public class var canDragItemsProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_CanDragItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.canreorderitemsproperty) + public class var canReorderItemsProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_CanReorderItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.datafetchsizeproperty) + public class var dataFetchSizeProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_DataFetchSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footerproperty) + public class var footerProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_FooterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footertemplateproperty) + public class var footerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_FooterTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footertransitionsproperty) + public class var footerTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_FooterTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.headerproperty) + public class var headerProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.headertemplateproperty) + public class var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.headertransitionsproperty) + public class var headerTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_HeaderTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.incrementalloadingthresholdproperty) + public class var incrementalLoadingThresholdProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IncrementalLoadingThresholdPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.incrementalloadingtriggerproperty) + public class var incrementalLoadingTriggerProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IncrementalLoadingTriggerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isactiveviewproperty) + public class var isActiveViewProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IsActiveViewPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isitemclickenabledproperty) + public class var isItemClickEnabledProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IsItemClickEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.ismultiselectcheckboxenabledproperty) + public class var isMultiSelectCheckBoxEnabledProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IsMultiSelectCheckBoxEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isswipeenabledproperty) + public class var isSwipeEnabledProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IsSwipeEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.iszoomedinviewproperty) + public class var isZoomedInViewProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_IsZoomedInViewPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.reordermodeproperty) + public class var reorderModeProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_ReorderModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selectionmodeproperty) + public class var selectionModeProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_SelectionModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.semanticzoomownerproperty) + public class var semanticZoomOwnerProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_SemanticZoomOwnerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.showsscrollingplaceholdersproperty) + public class var showsScrollingPlaceholdersProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_ShowsScrollingPlaceholdersPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.singleselectionfollowsfocusproperty) + public class var singleSelectionFollowsFocusProperty : WinUI.DependencyProperty! { + get { try! _IListViewBaseStatics.get_SingleSelectionFollowsFocusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.scrollintoview) + public func scrollIntoView(_ item: Any!) throws { + try _default.ScrollIntoViewImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.loadmoreitemsasync) + public func loadMoreItemsAsync() throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.LoadMoreItemsAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.scrollintoview) + public func scrollIntoView(_ item: Any!, _ alignment: ScrollIntoViewAlignment) throws { + try _default.ScrollIntoViewWithAlignmentImpl(item, alignment) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.setdesiredcontainerupdateduration) + public func setDesiredContainerUpdateDuration(_ duration: WindowsFoundation.TimeSpan) throws { + try _default.SetDesiredContainerUpdateDurationImpl(duration) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selectrange) + public func selectRange(_ itemIndexRange: WinUI.ItemIndexRange!) throws { + try _default.SelectRangeImpl(itemIndexRange) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.deselectrange) + public func deselectRange(_ itemIndexRange: WinUI.ItemIndexRange!) throws { + try _default.DeselectRangeImpl(itemIndexRange) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isdragsource) + public func isDragSource() throws -> Bool { + try _default.IsDragSourceImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.trystartconnectedanimationasync) + public func tryStartConnectedAnimationAsync(_ animation: WinUI.ConnectedAnimation!, _ item: Any!, _ elementName: String) throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.TryStartConnectedAnimationAsyncImpl(animation, item, elementName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.prepareconnectedanimation) + public func prepareConnectedAnimation(_ key: String, _ item: Any!, _ elementName: String) throws -> WinUI.ConnectedAnimation! { + try _default.PrepareConnectedAnimationImpl(key, item, elementName) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.candragitems) + public var canDragItems : Bool { + get { try! _default.get_CanDragItemsImpl() } + set { try! _default.put_CanDragItemsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.canreorderitems) + public var canReorderItems : Bool { + get { try! _default.get_CanReorderItemsImpl() } + set { try! _default.put_CanReorderItemsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.datafetchsize) + public var dataFetchSize : Double { + get { try! _default.get_DataFetchSizeImpl() } + set { try! _default.put_DataFetchSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footer) + public var footer : Any! { + get { try! _default.get_FooterImpl() } + set { try! _default.put_FooterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footertemplate) + public var footerTemplate : WinUI.DataTemplate! { + get { try! _default.get_FooterTemplateImpl() } + set { try! _default.put_FooterTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.footertransitions) + public var footerTransitions : WinUI.TransitionCollection! { + get { try! _default.get_FooterTransitionsImpl() } + set { try! _default.put_FooterTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.headertransitions) + public var headerTransitions : WinUI.TransitionCollection! { + get { try! _default.get_HeaderTransitionsImpl() } + set { try! _default.put_HeaderTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.incrementalloadingthreshold) + public var incrementalLoadingThreshold : Double { + get { try! _default.get_IncrementalLoadingThresholdImpl() } + set { try! _default.put_IncrementalLoadingThresholdImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.incrementalloadingtrigger) + public var incrementalLoadingTrigger : IncrementalLoadingTrigger { + get { try! _default.get_IncrementalLoadingTriggerImpl() } + set { try! _default.put_IncrementalLoadingTriggerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isitemclickenabled) + public var isItemClickEnabled : Bool { + get { try! _default.get_IsItemClickEnabledImpl() } + set { try! _default.put_IsItemClickEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.ismultiselectcheckboxenabled) + public var isMultiSelectCheckBoxEnabled : Bool { + get { try! _default.get_IsMultiSelectCheckBoxEnabledImpl() } + set { try! _default.put_IsMultiSelectCheckBoxEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isswipeenabled) + public var isSwipeEnabled : Bool { + get { try! _default.get_IsSwipeEnabledImpl() } + set { try! _default.put_IsSwipeEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.reordermode) + public var reorderMode : ListViewReorderMode { + get { try! _default.get_ReorderModeImpl() } + set { try! _default.put_ReorderModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selecteditems) + public var selectedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_SelectedItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selectedranges) + public var selectedRanges : WindowsFoundation.AnyIVectorView! { + get { try! _default.get_SelectedRangesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.selectionmode) + public var selectionMode : ListViewSelectionMode { + get { try! _default.get_SelectionModeImpl() } + set { try! _default.put_SelectionModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.showsscrollingplaceholders) + public var showsScrollingPlaceholders : Bool { + get { try! _default.get_ShowsScrollingPlaceholdersImpl() } + set { try! _default.put_ShowsScrollingPlaceholdersImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.singleselectionfollowsfocus) + public var singleSelectionFollowsFocus : Bool { + get { try! _default.get_SingleSelectionFollowsFocusImpl() } + set { try! _default.put_SingleSelectionFollowsFocusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.choosinggroupheadercontainer) + public lazy var choosingGroupHeaderContainer : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ChoosingGroupHeaderContainerImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ChoosingGroupHeaderContainerImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.choosingitemcontainer) + public lazy var choosingItemContainer : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ChoosingItemContainerImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ChoosingItemContainerImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.containercontentchanging) + public lazy var containerContentChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContainerContentChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContainerContentChangingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.dragitemscompleted) + public lazy var dragItemsCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragItemsCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragItemsCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.dragitemsstarting) + public lazy var dragItemsStarting : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragItemsStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragItemsStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.itemclick) + public lazy var itemClick : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ItemClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ItemClickImpl($0) + } + ) + }() + + private lazy var _ISemanticZoomInformation: __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformation! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.initializeviewchange) + public func initializeViewChange() throws { + try _ISemanticZoomInformation.InitializeViewChangeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.completeviewchange) + public func completeViewChange() throws { + try _ISemanticZoomInformation.CompleteViewChangeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.makevisible) + public func makeVisible(_ item: SemanticZoomLocation!) throws { + try _ISemanticZoomInformation.MakeVisibleImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.startviewchangefrom) + public func startViewChangeFrom(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _ISemanticZoomInformation.StartViewChangeFromImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.startviewchangeto) + public func startViewChangeTo(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _ISemanticZoomInformation.StartViewChangeToImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.completeviewchangefrom) + public func completeViewChangeFrom(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _ISemanticZoomInformation.CompleteViewChangeFromImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.completeviewchangeto) + public func completeViewChangeTo(_ source: SemanticZoomLocation!, _ destination: SemanticZoomLocation!) throws { + try _ISemanticZoomInformation.CompleteViewChangeToImpl(source, destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.isactiveview) + public var isActiveView : Bool { + get { try! _ISemanticZoomInformation.get_IsActiveViewImpl() } + set { try! _ISemanticZoomInformation.put_IsActiveViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.iszoomedinview) + public var isZoomedInView : Bool { + get { try! _ISemanticZoomInformation.get_IsZoomedInViewImpl() } + set { try! _ISemanticZoomInformation.put_IsZoomedInViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbase.semanticzoomowner) + public var semanticZoomOwner : SemanticZoom! { + get { try! _ISemanticZoomInformation.get_SemanticZoomOwnerImpl() } + set { try! _ISemanticZoomInformation.put_SemanticZoomOwnerImpl(newValue) } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = ListViewBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewBase + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + _ISemanticZoomInformation = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewbaseheaderitem) +open class ListViewBaseHeaderItem : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewBaseHeaderItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItem + 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_CXaml_CControls_CIListViewBaseHeaderItem>?) -> ListViewBaseHeaderItem? { + 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 _IListViewBaseHeaderItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IListViewBaseHeaderItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListViewBaseHeaderItem")) + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ListViewBaseHeaderItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewBaseHeaderItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewBaseHeaderItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewitem) +open class ListViewItem : WinUI.SelectorItem { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItem + 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_CXaml_CControls_CIListViewItem>?) -> ListViewItem? { + 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 _IListViewItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IListViewItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ListViewItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IListViewItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.listviewitem.templatesettings) + public var templateSettings : WinUI.ListViewItemTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ListViewItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIListViewItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IListViewItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement) +open class MediaPlayerElement : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMediaPlayerElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement + 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_CXaml_CControls_CIMediaPlayerElement>?) -> MediaPlayerElement? { + 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 _IMediaPlayerElementFactory : __ABI_Microsoft_UI_Xaml_Controls.IMediaPlayerElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MediaPlayerElement")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMediaPlayerElementFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMediaPlayerElementStatics: __ABI_Microsoft_UI_Xaml_Controls.IMediaPlayerElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MediaPlayerElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.aretransportcontrolsenabledproperty) + public class var areTransportControlsEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_AreTransportControlsEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.autoplayproperty) + public class var autoPlayProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_AutoPlayPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.isfullwindowproperty) + public class var isFullWindowProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_IsFullWindowPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.mediaplayerproperty) + public class var mediaPlayerProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_MediaPlayerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.postersourceproperty) + public class var posterSourceProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_PosterSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.sourceproperty) + public class var sourceProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_SourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.stretchproperty) + public class var stretchProperty : WinUI.DependencyProperty! { + get { try! _IMediaPlayerElementStatics.get_StretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.setmediaplayer) + public func setMediaPlayer(_ mediaPlayer: UWP.MediaPlayer!) throws { + try _default.SetMediaPlayerImpl(mediaPlayer) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.aretransportcontrolsenabled) + public var areTransportControlsEnabled : Bool { + get { try! _default.get_AreTransportControlsEnabledImpl() } + set { try! _default.put_AreTransportControlsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.autoplay) + public var autoPlay : Bool { + get { try! _default.get_AutoPlayImpl() } + set { try! _default.put_AutoPlayImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.isfullwindow) + public var isFullWindow : Bool { + get { try! _default.get_IsFullWindowImpl() } + set { try! _default.put_IsFullWindowImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.mediaplayer) + public var mediaPlayer : UWP.MediaPlayer! { + get { try! _default.get_MediaPlayerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.postersource) + public var posterSource : WinUI.ImageSource! { + get { try! _default.get_PosterSourceImpl() } + set { try! _default.put_PosterSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.source) + public var source : UWP.AnyIMediaPlaybackSource! { + 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.xaml.controls.mediaplayerelement.stretch) + public var stretch : WinUI.Stretch { + 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.xaml.controls.mediaplayerelement.transportcontrols) + public var transportControls : MediaTransportControls! { + get { try! _default.get_TransportControlsImpl() } + set { try! _default.put_TransportControlsImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MediaPlayerElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaPlayerElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMediaPlayerElement + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols) +open class MediaTransportControls : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMediaTransportControls + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls + 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_CXaml_CControls_CIMediaTransportControls>?) -> MediaTransportControls? { + 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 _IMediaTransportControlsFactory : __ABI_Microsoft_UI_Xaml_Controls.IMediaTransportControlsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MediaTransportControls")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMediaTransportControlsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMediaTransportControlsStatics: __ABI_Microsoft_UI_Xaml_Controls.IMediaTransportControlsStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MediaTransportControls")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.fastplayfallbackbehaviourproperty) + public class var fastPlayFallbackBehaviourProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_FastPlayFallbackBehaviourPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iscompactproperty) + public class var isCompactProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsCompactPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastforwardbuttonvisibleproperty) + public class var isFastForwardButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsFastForwardButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastforwardenabledproperty) + public class var isFastForwardEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsFastForwardEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastrewindbuttonvisibleproperty) + public class var isFastRewindButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsFastRewindButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastrewindenabledproperty) + public class var isFastRewindEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsFastRewindEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isnexttrackbuttonvisibleproperty) + public class var isNextTrackButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsNextTrackButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isplaybackratebuttonvisibleproperty) + public class var isPlaybackRateButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsPlaybackRateButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isplaybackrateenabledproperty) + public class var isPlaybackRateEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsPlaybackRateEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isprevioustrackbuttonvisibleproperty) + public class var isPreviousTrackButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsPreviousTrackButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isrepeatbuttonvisibleproperty) + public class var isRepeatButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsRepeatButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isrepeatenabledproperty) + public class var isRepeatEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsRepeatEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isseekbarvisibleproperty) + public class var isSeekBarVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSeekBarVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isseekenabledproperty) + public class var isSeekEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSeekEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipbackwardbuttonvisibleproperty) + public class var isSkipBackwardButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSkipBackwardButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipbackwardenabledproperty) + public class var isSkipBackwardEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSkipBackwardEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipforwardbuttonvisibleproperty) + public class var isSkipForwardButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSkipForwardButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipforwardenabledproperty) + public class var isSkipForwardEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsSkipForwardEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isstopbuttonvisibleproperty) + public class var isStopButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsStopButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isstopenabledproperty) + public class var isStopEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsStopEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isvolumebuttonvisibleproperty) + public class var isVolumeButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsVolumeButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isvolumeenabledproperty) + public class var isVolumeEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsVolumeEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iszoombuttonvisibleproperty) + public class var isZoomButtonVisibleProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsZoomButtonVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iszoomenabledproperty) + public class var isZoomEnabledProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_IsZoomEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.showandhideautomaticallyproperty) + public class var showAndHideAutomaticallyProperty : WinUI.DependencyProperty! { + get { try! _IMediaTransportControlsStatics.get_ShowAndHideAutomaticallyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.show) + public func show() throws { + try _default.ShowImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.hide) + public func hide() throws { + try _default.HideImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.fastplayfallbackbehaviour) + public var fastPlayFallbackBehaviour : WinUI.FastPlayFallbackBehaviour { + get { try! _default.get_FastPlayFallbackBehaviourImpl() } + set { try! _default.put_FastPlayFallbackBehaviourImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iscompact) + public var isCompact : Bool { + get { try! _default.get_IsCompactImpl() } + set { try! _default.put_IsCompactImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastforwardbuttonvisible) + public var isFastForwardButtonVisible : Bool { + get { try! _default.get_IsFastForwardButtonVisibleImpl() } + set { try! _default.put_IsFastForwardButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastforwardenabled) + public var isFastForwardEnabled : Bool { + get { try! _default.get_IsFastForwardEnabledImpl() } + set { try! _default.put_IsFastForwardEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastrewindbuttonvisible) + public var isFastRewindButtonVisible : Bool { + get { try! _default.get_IsFastRewindButtonVisibleImpl() } + set { try! _default.put_IsFastRewindButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isfastrewindenabled) + public var isFastRewindEnabled : Bool { + get { try! _default.get_IsFastRewindEnabledImpl() } + set { try! _default.put_IsFastRewindEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isnexttrackbuttonvisible) + public var isNextTrackButtonVisible : Bool { + get { try! _default.get_IsNextTrackButtonVisibleImpl() } + set { try! _default.put_IsNextTrackButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isplaybackratebuttonvisible) + public var isPlaybackRateButtonVisible : Bool { + get { try! _default.get_IsPlaybackRateButtonVisibleImpl() } + set { try! _default.put_IsPlaybackRateButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isplaybackrateenabled) + public var isPlaybackRateEnabled : Bool { + get { try! _default.get_IsPlaybackRateEnabledImpl() } + set { try! _default.put_IsPlaybackRateEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isprevioustrackbuttonvisible) + public var isPreviousTrackButtonVisible : Bool { + get { try! _default.get_IsPreviousTrackButtonVisibleImpl() } + set { try! _default.put_IsPreviousTrackButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isrepeatbuttonvisible) + public var isRepeatButtonVisible : Bool { + get { try! _default.get_IsRepeatButtonVisibleImpl() } + set { try! _default.put_IsRepeatButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isrepeatenabled) + public var isRepeatEnabled : Bool { + get { try! _default.get_IsRepeatEnabledImpl() } + set { try! _default.put_IsRepeatEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isseekbarvisible) + public var isSeekBarVisible : Bool { + get { try! _default.get_IsSeekBarVisibleImpl() } + set { try! _default.put_IsSeekBarVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isseekenabled) + public var isSeekEnabled : Bool { + get { try! _default.get_IsSeekEnabledImpl() } + set { try! _default.put_IsSeekEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipbackwardbuttonvisible) + public var isSkipBackwardButtonVisible : Bool { + get { try! _default.get_IsSkipBackwardButtonVisibleImpl() } + set { try! _default.put_IsSkipBackwardButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipbackwardenabled) + public var isSkipBackwardEnabled : Bool { + get { try! _default.get_IsSkipBackwardEnabledImpl() } + set { try! _default.put_IsSkipBackwardEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipforwardbuttonvisible) + public var isSkipForwardButtonVisible : Bool { + get { try! _default.get_IsSkipForwardButtonVisibleImpl() } + set { try! _default.put_IsSkipForwardButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isskipforwardenabled) + public var isSkipForwardEnabled : Bool { + get { try! _default.get_IsSkipForwardEnabledImpl() } + set { try! _default.put_IsSkipForwardEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isstopbuttonvisible) + public var isStopButtonVisible : Bool { + get { try! _default.get_IsStopButtonVisibleImpl() } + set { try! _default.put_IsStopButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isstopenabled) + public var isStopEnabled : Bool { + get { try! _default.get_IsStopEnabledImpl() } + set { try! _default.put_IsStopEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isvolumebuttonvisible) + public var isVolumeButtonVisible : Bool { + get { try! _default.get_IsVolumeButtonVisibleImpl() } + set { try! _default.put_IsVolumeButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.isvolumeenabled) + public var isVolumeEnabled : Bool { + get { try! _default.get_IsVolumeEnabledImpl() } + set { try! _default.put_IsVolumeEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iszoombuttonvisible) + public var isZoomButtonVisible : Bool { + get { try! _default.get_IsZoomButtonVisibleImpl() } + set { try! _default.put_IsZoomButtonVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.iszoomenabled) + public var isZoomEnabled : Bool { + get { try! _default.get_IsZoomEnabledImpl() } + set { try! _default.put_IsZoomEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.showandhideautomatically) + public var showAndHideAutomatically : Bool { + get { try! _default.get_ShowAndHideAutomaticallyImpl() } + set { try! _default.put_ShowAndHideAutomaticallyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediatransportcontrols.thumbnailrequested) + public lazy var thumbnailRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ThumbnailRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ThumbnailRequestedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MediaTransportControls + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMediaTransportControls + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMediaTransportControls + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubar) +open class MenuBar : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuBar + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBar + 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_CXaml_CControls_CIMenuBar>?) -> MenuBar? { + 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 _IMenuBarFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuBarFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuBar")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMenuBarFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMenuBarStatics: __ABI_Microsoft_UI_Xaml_Controls.IMenuBarStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuBar")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubar.itemsproperty) + public class var itemsProperty : WinUI.DependencyProperty! { + get { try! _IMenuBarStatics.get_ItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubar.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuBar + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBar + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuBar + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubaritem) +open class MenuBarItem : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuBarItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem + 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_CXaml_CControls_CIMenuBarItem>?) -> MenuBarItem? { + 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 _IMenuBarItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuBarItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuBarItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMenuBarItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMenuBarItemStatics: __ABI_Microsoft_UI_Xaml_Controls.IMenuBarItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuBarItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubaritem.itemsproperty) + public class var itemsProperty : WinUI.DependencyProperty! { + get { try! _IMenuBarItemStatics.get_ItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubaritem.titleproperty) + public class var titleProperty : WinUI.DependencyProperty! { + get { try! _IMenuBarItemStatics.get_TitlePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubaritem.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menubaritem.title) + public var title : String { + get { try! _default.get_TitleImpl() } + set { try! _default.put_TitleImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuBarItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuBarItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuBarItem + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyout) +open class MenuFlyout : WinUI.FlyoutBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout + 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_CXaml_CControls_CIMenuFlyout>?) -> MenuFlyout? { + 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 _IMenuFlyoutFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyout")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMenuFlyoutFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMenuFlyoutStatics: __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyout")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyout.menuflyoutpresenterstyleproperty) + public class var menuFlyoutPresenterStyleProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutStatics.get_MenuFlyoutPresenterStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyout.showat) + public func showAt(_ targetElement: WinUI.UIElement!, _ point: WindowsFoundation.Point) throws { + try _default.ShowAtImpl(targetElement, point) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyout.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyout.menuflyoutpresenterstyle) + public var menuFlyoutPresenterStyle : WinUI.Style! { + get { try! _default.get_MenuFlyoutPresenterStyleImpl() } + set { try! _default.put_MenuFlyoutPresenterStyleImpl(newValue) } + } + + internal enum IFlyoutBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIFlyoutBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IFlyoutBaseOverrides + internal typealias Class = MenuFlyout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyout + } + } + internal typealias Composable = IFlyoutBaseOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem) +open class MenuFlyoutItem : WinUI.MenuFlyoutItemBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem + 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_CXaml_CControls_CIMenuFlyoutItem>?) -> MenuFlyoutItem? { + 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 _IMenuFlyoutItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutItem")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMenuFlyoutItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMenuFlyoutItemStatics: __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.commandparameterproperty) + public class var commandParameterProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutItemStatics.get_CommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.commandproperty) + public class var commandProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutItemStatics.get_CommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.iconproperty) + public class var iconProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutItemStatics.get_IconPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.keyboardacceleratortextoverrideproperty) + public class var keyboardAcceleratorTextOverrideProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutItemStatics.get_KeyboardAcceleratorTextOverridePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.textproperty) + public class var textProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutItemStatics.get_TextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.command) + public var command : WinUI.AnyICommand! { + get { try! _default.get_CommandImpl() } + set { try! _default.put_CommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.commandparameter) + public var commandParameter : Any! { + get { try! _default.get_CommandParameterImpl() } + set { try! _default.put_CommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.icon) + public var icon : IconElement! { + get { try! _default.get_IconImpl() } + set { try! _default.put_IconImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.keyboardacceleratortextoverride) + public var keyboardAcceleratorTextOverride : String { + get { try! _default.get_KeyboardAcceleratorTextOverrideImpl() } + set { try! _default.put_KeyboardAcceleratorTextOverrideImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.templatesettings) + public var templateSettings : WinUI.MenuFlyoutItemTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitem.click) + public lazy var click : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ClickImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuFlyoutItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItem + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutitembase) +open class MenuFlyoutItemBase : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItemBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBase + 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_CXaml_CControls_CIMenuFlyoutItemBase>?) -> MenuFlyoutItemBase? { + 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 _IMenuFlyoutItemBaseFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItemBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutItemBase")) + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuFlyoutItemBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutItemBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutItemBase + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutseparator) +open class MenuFlyoutSeparator : WinUI.MenuFlyoutItemBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSeparator + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparator + 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_CXaml_CControls_CIMenuFlyoutSeparator>?) -> MenuFlyoutSeparator? { + 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 _IMenuFlyoutSeparatorFactory : __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSeparatorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutSeparator")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMenuFlyoutSeparatorFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuFlyoutSeparator + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSeparator + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSeparator + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem) +public final class MenuFlyoutSubItem : WinUI.MenuFlyoutItemBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSubItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem + 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_CXaml_CControls_CIMenuFlyoutSubItem>?) -> MenuFlyoutSubItem? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutSubItem"))) + } + + private static let _IMenuFlyoutSubItemStatics: __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSubItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.MenuFlyoutSubItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem.iconproperty) + public static var iconProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutSubItemStatics.get_IconPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem.textproperty) + public static var textProperty : WinUI.DependencyProperty! { + get { try! _IMenuFlyoutSubItemStatics.get_TextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem.icon) + public var icon : IconElement! { + get { try! _default.get_IconImpl() } + set { try! _default.put_IconImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.menuflyoutsubitem.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = MenuFlyoutSubItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIMenuFlyoutSubItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IMenuFlyoutSubItem + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page) +open class Page : WinUI.UserControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPage + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage + 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_CXaml_CControls_CIPage>?) -> Page? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IPageOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IPageOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IPageFactory : __ABI_Microsoft_UI_Xaml_Controls.IPageFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Page")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IPageFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IPageStatics: __ABI_Microsoft_UI_Xaml_Controls.IPageStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Page")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.bottomappbarproperty) + public class var bottomAppBarProperty : WinUI.DependencyProperty! { + get { try! _IPageStatics.get_BottomAppBarPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.frameproperty) + public class var frameProperty : WinUI.DependencyProperty! { + get { try! _IPageStatics.get_FramePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.topappbarproperty) + public class var topAppBarProperty : WinUI.DependencyProperty! { + get { try! _IPageStatics.get_TopAppBarPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.bottomappbar) + public var bottomAppBar : AppBar! { + get { try! _default.get_BottomAppBarImpl() } + set { try! _default.put_BottomAppBarImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.frame) + public var frame : Frame! { + get { try! _default.get_FrameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.navigationcachemode) + public var navigationCacheMode : WinUI.NavigationCacheMode { + get { try! _default.get_NavigationCacheModeImpl() } + set { try! _default.put_NavigationCacheModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.topappbar) + public var topAppBar : AppBar! { + get { try! _default.get_TopAppBarImpl() } + set { try! _default.put_TopAppBarImpl(newValue) } + } + + private lazy var _IPageOverrides: __ABI_Microsoft_UI_Xaml_Controls.IPageOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.onnavigatedfrom) + open func onNavigatedFrom(_ e: WinUI.NavigationEventArgs!) throws { + try _IPageOverrides.OnNavigatedFromImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.onnavigatedto) + open func onNavigatedTo(_ e: WinUI.NavigationEventArgs!) throws { + try _IPageOverrides.OnNavigatedToImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.page.onnavigatingfrom) + open func onNavigatingFrom(_ e: WinUI.NavigatingCancelEventArgs!) throws { + try _IPageOverrides.OnNavigatingFromImpl(e) + } + + internal enum IPageOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPageOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPageOverrides + internal typealias Class = Page + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPage + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPage + } + } + internal typealias Composable = IPageOverrides + deinit { + _default = nil + _IPageOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel) +open class Panel : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPanel + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel + 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_CXaml_CControls_CIPanel>?) -> Panel? { + 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 _IPanelFactory : __ABI_Microsoft_UI_Xaml_Controls.IPanelFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Panel")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IPanelFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IPanelStatics: __ABI_Microsoft_UI_Xaml_Controls.IPanelStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Panel")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _IPanelStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.childrentransitionsproperty) + public class var childrenTransitionsProperty : WinUI.DependencyProperty! { + get { try! _IPanelStatics.get_ChildrenTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.isitemshostproperty) + public class var isItemsHostProperty : WinUI.DependencyProperty! { + get { try! _IPanelStatics.get_IsItemsHostPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.backgroundtransition) + public var backgroundTransition : WinUI.BrushTransition! { + get { try! _default.get_BackgroundTransitionImpl() } + set { try! _default.put_BackgroundTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.children) + public var children : UIElementCollection! { + get { try! _default.get_ChildrenImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.childrentransitions) + public var childrenTransitions : WinUI.TransitionCollection! { + get { try! _default.get_ChildrenTransitionsImpl() } + set { try! _default.put_ChildrenTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.panel.isitemshost) + public var isItemsHost : Bool { + get { try! _default.get_IsItemsHostImpl() } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Panel + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPanel + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPanel + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox) +public final class PasswordBox : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPasswordBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox + 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_CXaml_CControls_CIPasswordBox>?) -> PasswordBox? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.PasswordBox"))) + } + + private static let _IPasswordBoxStatics: __ABI_Microsoft_UI_Xaml_Controls.IPasswordBoxStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.PasswordBox")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.canpasteclipboardcontentproperty) + public static var canPasteClipboardContentProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_CanPasteClipboardContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.descriptionproperty) + public static var descriptionProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_DescriptionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.headerproperty) + public static var headerProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.headertemplateproperty) + public static var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.inputscopeproperty) + public static var inputScopeProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_InputScopePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.ispasswordrevealbuttonenabledproperty) + public static var isPasswordRevealButtonEnabledProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_IsPasswordRevealButtonEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.maxlengthproperty) + public static var maxLengthProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_MaxLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordcharproperty) + public static var passwordCharProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_PasswordCharPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordproperty) + public static var passwordProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_PasswordPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordrevealmodeproperty) + public static var passwordRevealModeProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_PasswordRevealModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.placeholdertextproperty) + public static var placeholderTextProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_PlaceholderTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.preventkeyboarddisplayonprogrammaticfocusproperty) + public static var preventKeyboardDisplayOnProgrammaticFocusProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_PreventKeyboardDisplayOnProgrammaticFocusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.selectionflyoutproperty) + public static var selectionFlyoutProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_SelectionFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.selectionhighlightcolorproperty) + public static var selectionHighlightColorProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_SelectionHighlightColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.textreadingorderproperty) + public static var textReadingOrderProperty : WinUI.DependencyProperty! { + get { try! _IPasswordBoxStatics.get_TextReadingOrderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.pastefromclipboard) + public func pasteFromClipboard() throws { + try _default.PasteFromClipboardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.canpasteclipboardcontent) + public var canPasteClipboardContent : Bool { + get { try! _default.get_CanPasteClipboardContentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.description) + public var description : Any! { + get { try! _default.get_DescriptionImpl() } + set { try! _default.put_DescriptionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.inputscope) + public var inputScope : WinUI.InputScope! { + get { try! _default.get_InputScopeImpl() } + set { try! _default.put_InputScopeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.ispasswordrevealbuttonenabled) + public var isPasswordRevealButtonEnabled : Bool { + get { try! _default.get_IsPasswordRevealButtonEnabledImpl() } + set { try! _default.put_IsPasswordRevealButtonEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.maxlength) + public var maxLength : Int32 { + get { try! _default.get_MaxLengthImpl() } + set { try! _default.put_MaxLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.password) + public var password : String { + get { try! _default.get_PasswordImpl() } + set { try! _default.put_PasswordImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordchar) + public var passwordChar : String { + get { try! _default.get_PasswordCharImpl() } + set { try! _default.put_PasswordCharImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordrevealmode) + public var passwordRevealMode : PasswordRevealMode { + get { try! _default.get_PasswordRevealModeImpl() } + set { try! _default.put_PasswordRevealModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.placeholdertext) + public var placeholderText : String { + get { try! _default.get_PlaceholderTextImpl() } + set { try! _default.put_PlaceholderTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.preventkeyboarddisplayonprogrammaticfocus) + public var preventKeyboardDisplayOnProgrammaticFocus : Bool { + get { try! _default.get_PreventKeyboardDisplayOnProgrammaticFocusImpl() } + set { try! _default.put_PreventKeyboardDisplayOnProgrammaticFocusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.selectionflyout) + public var selectionFlyout : WinUI.FlyoutBase! { + get { try! _default.get_SelectionFlyoutImpl() } + set { try! _default.put_SelectionFlyoutImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.selectionhighlightcolor) + public var selectionHighlightColor : WinUI.SolidColorBrush! { + get { try! _default.get_SelectionHighlightColorImpl() } + set { try! _default.put_SelectionHighlightColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.textreadingorder) + public var textReadingOrder : WinUI.TextReadingOrder { + get { try! _default.get_TextReadingOrderImpl() } + set { try! _default.put_TextReadingOrderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.contextmenuopening) + public lazy var contextMenuOpening : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContextMenuOpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContextMenuOpeningImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordchanged) + public lazy var passwordChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PasswordChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PasswordChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.passwordchanging) + public lazy var passwordChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PasswordChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PasswordChangingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordbox.paste) + public lazy var paste : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PasteImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PasteImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = PasswordBox + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBox + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPasswordBox + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.passwordboxpasswordchangingeventargs) +public final class PasswordBoxPasswordChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPasswordBoxPasswordChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPasswordBoxPasswordChangingEventArgs + 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_CXaml_CControls_CIPasswordBoxPasswordChangingEventArgs>?) -> PasswordBoxPasswordChangingEventArgs? { + 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.xaml.controls.passwordboxpasswordchangingeventargs.iscontentchanging) + public var isContentChanging : Bool { + get { try! _default.get_IsContentChangingImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager) +open class PipsPager : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPipsPager + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager + 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_CXaml_CControls_CIPipsPager>?) -> PipsPager? { + 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 _IPipsPagerFactory : __ABI_Microsoft_UI_Xaml_Controls.IPipsPagerFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.PipsPager")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IPipsPagerFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IPipsPagerStatics: __ABI_Microsoft_UI_Xaml_Controls.IPipsPagerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.PipsPager")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.maxvisiblepipsproperty) + public class var maxVisiblePipsProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_MaxVisiblePipsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.nextbuttonstyleproperty) + public class var nextButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_NextButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.nextbuttonvisibilityproperty) + public class var nextButtonVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_NextButtonVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.normalpipstyleproperty) + public class var normalPipStyleProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_NormalPipStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.numberofpagesproperty) + public class var numberOfPagesProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_NumberOfPagesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.orientationproperty) + public class var orientationProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_OrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.previousbuttonstyleproperty) + public class var previousButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_PreviousButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.previousbuttonvisibilityproperty) + public class var previousButtonVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_PreviousButtonVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.selectedpageindexproperty) + public class var selectedPageIndexProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_SelectedPageIndexPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.selectedpipstyleproperty) + public class var selectedPipStyleProperty : WinUI.DependencyProperty! { + get { try! _IPipsPagerStatics.get_SelectedPipStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.maxvisiblepips) + public var maxVisiblePips : Int32 { + get { try! _default.get_MaxVisiblePipsImpl() } + set { try! _default.put_MaxVisiblePipsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.nextbuttonstyle) + public var nextButtonStyle : WinUI.Style! { + get { try! _default.get_NextButtonStyleImpl() } + set { try! _default.put_NextButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.nextbuttonvisibility) + public var nextButtonVisibility : PipsPagerButtonVisibility { + get { try! _default.get_NextButtonVisibilityImpl() } + set { try! _default.put_NextButtonVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.normalpipstyle) + public var normalPipStyle : WinUI.Style! { + get { try! _default.get_NormalPipStyleImpl() } + set { try! _default.put_NormalPipStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.numberofpages) + public var numberOfPages : Int32 { + get { try! _default.get_NumberOfPagesImpl() } + set { try! _default.put_NumberOfPagesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.orientation) + public var orientation : Orientation { + 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.xaml.controls.pipspager.previousbuttonstyle) + public var previousButtonStyle : WinUI.Style! { + get { try! _default.get_PreviousButtonStyleImpl() } + set { try! _default.put_PreviousButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.previousbuttonvisibility) + public var previousButtonVisibility : PipsPagerButtonVisibility { + get { try! _default.get_PreviousButtonVisibilityImpl() } + set { try! _default.put_PreviousButtonVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.selectedpageindex) + public var selectedPageIndex : Int32 { + get { try! _default.get_SelectedPageIndexImpl() } + set { try! _default.put_SelectedPageIndexImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.selectedpipstyle) + public var selectedPipStyle : WinUI.Style! { + get { try! _default.get_SelectedPipStyleImpl() } + set { try! _default.put_SelectedPipStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.templatesettings) + public var templateSettings : PipsPagerTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspager.selectedindexchanged) + public lazy var selectedIndexChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectedIndexChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectedIndexChangedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = PipsPager + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPager + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPipsPager + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.pipspagerselectedindexchangedeventargs) +public final class PipsPagerSelectedIndexChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPipsPagerSelectedIndexChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerSelectedIndexChangedEventArgs + 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_CXaml_CControls_CIPipsPagerSelectedIndexChangedEventArgs>?) -> PipsPagerSelectedIndexChangedEventArgs? { + 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.xaml.controls.pipspagertemplatesettings) +public final class PipsPagerTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IPipsPagerTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIPipsPagerTemplateSettings + 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_CXaml_CControls_CIPipsPagerTemplateSettings>?) -> PipsPagerTemplateSettings? { + 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.xaml.controls.pipspagertemplatesettings.pipspageritems) + public var pipsPagerItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_PipsPagerItemsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar) +open class ProgressBar : WinUI.RangeBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressBar + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar + 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_CXaml_CControls_CIProgressBar>?) -> ProgressBar? { + 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 _IProgressBarFactory : __ABI_Microsoft_UI_Xaml_Controls.IProgressBarFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ProgressBar")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IProgressBarFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IProgressBarStatics: __ABI_Microsoft_UI_Xaml_Controls.IProgressBarStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ProgressBar")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.isindeterminateproperty) + public class var isIndeterminateProperty : WinUI.DependencyProperty! { + get { try! _IProgressBarStatics.get_IsIndeterminatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.showerrorproperty) + public class var showErrorProperty : WinUI.DependencyProperty! { + get { try! _IProgressBarStatics.get_ShowErrorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.showpausedproperty) + public class var showPausedProperty : WinUI.DependencyProperty! { + get { try! _IProgressBarStatics.get_ShowPausedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.isindeterminate) + public var isIndeterminate : Bool { + get { try! _default.get_IsIndeterminateImpl() } + set { try! _default.put_IsIndeterminateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.showerror) + public var showError : Bool { + get { try! _default.get_ShowErrorImpl() } + set { try! _default.put_ShowErrorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.showpaused) + public var showPaused : Bool { + get { try! _default.get_ShowPausedImpl() } + set { try! _default.put_ShowPausedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbar.templatesettings) + public var templateSettings : ProgressBarTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + internal enum IRangeBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverrides + internal typealias Class = ProgressBar + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBar + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressBar + } + } + internal typealias Composable = IRangeBaseOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings) +public final class ProgressBarTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressBarTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressBarTemplateSettings + 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_CXaml_CControls_CIProgressBarTemplateSettings>?) -> ProgressBarTemplateSettings? { + 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.xaml.controls.progressbartemplatesettings.cliprect) + public var clipRect : WinUI.RectangleGeometry! { + get { try! _default.get_ClipRectImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.container2animationendposition) + public var container2AnimationEndPosition : Double { + get { try! _default.get_Container2AnimationEndPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.container2animationstartposition) + public var container2AnimationStartPosition : Double { + get { try! _default.get_Container2AnimationStartPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.containeranimationendposition) + public var containerAnimationEndPosition : Double { + get { try! _default.get_ContainerAnimationEndPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.containeranimationmidposition) + public var containerAnimationMidPosition : Double { + get { try! _default.get_ContainerAnimationMidPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.containeranimationstartposition) + public var containerAnimationStartPosition : Double { + get { try! _default.get_ContainerAnimationStartPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.ellipseanimationendposition) + public var ellipseAnimationEndPosition : Double { + get { try! _default.get_EllipseAnimationEndPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.ellipseanimationwellposition) + public var ellipseAnimationWellPosition : Double { + get { try! _default.get_EllipseAnimationWellPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.ellipsediameter) + public var ellipseDiameter : Double { + get { try! _default.get_EllipseDiameterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.ellipseoffset) + public var ellipseOffset : Double { + get { try! _default.get_EllipseOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressbartemplatesettings.indicatorlengthdelta) + public var indicatorLengthDelta : Double { + get { try! _default.get_IndicatorLengthDeltaImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring) +open class ProgressRing : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressRing + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing + 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_CXaml_CControls_CIProgressRing>?) -> ProgressRing? { + 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 _IProgressRingFactory : __ABI_Microsoft_UI_Xaml_Controls.IProgressRingFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ProgressRing")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IProgressRingFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IProgressRingStatics: __ABI_Microsoft_UI_Xaml_Controls.IProgressRingStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ProgressRing")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.isactiveproperty) + public class var isActiveProperty : WinUI.DependencyProperty! { + get { try! _IProgressRingStatics.get_IsActivePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.isindeterminateproperty) + public class var isIndeterminateProperty : WinUI.DependencyProperty! { + get { try! _IProgressRingStatics.get_IsIndeterminatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.maximumproperty) + public class var maximumProperty : WinUI.DependencyProperty! { + get { try! _IProgressRingStatics.get_MaximumPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.minimumproperty) + public class var minimumProperty : WinUI.DependencyProperty! { + get { try! _IProgressRingStatics.get_MinimumPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IProgressRingStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.isactive) + public var isActive : Bool { + get { try! _default.get_IsActiveImpl() } + set { try! _default.put_IsActiveImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.isindeterminate) + public var isIndeterminate : Bool { + get { try! _default.get_IsIndeterminateImpl() } + set { try! _default.put_IsIndeterminateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.maximum) + public var maximum : Double { + get { try! _default.get_MaximumImpl() } + set { try! _default.put_MaximumImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.minimum) + public var minimum : Double { + get { try! _default.get_MinimumImpl() } + set { try! _default.put_MinimumImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.templatesettings) + public var templateSettings : ProgressRingTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressring.value) + public var value : Double { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = ProgressRing + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRing + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressRing + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressringtemplatesettings) +public final class ProgressRingTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IProgressRingTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIProgressRingTemplateSettings + 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_CXaml_CControls_CIProgressRingTemplateSettings>?) -> ProgressRingTemplateSettings? { + 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.xaml.controls.progressringtemplatesettings.ellipsediameter) + public var ellipseDiameter : Double { + get { try! _default.get_EllipseDiameterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressringtemplatesettings.ellipseoffset) + public var ellipseOffset : WinUI.Thickness { + get { try! _default.get_EllipseOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.progressringtemplatesettings.maxsidelength) + public var maxSideLength : Double { + get { try! _default.get_MaxSideLengthImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobutton) +open class RadioButton : WinUI.ToggleButton { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRadioButton + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton + 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_CXaml_CControls_CIRadioButton>?) -> RadioButton? { + 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 _IRadioButtonFactory : __ABI_Microsoft_UI_Xaml_Controls.IRadioButtonFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RadioButton")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IRadioButtonFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IRadioButtonStatics: __ABI_Microsoft_UI_Xaml_Controls.IRadioButtonStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RadioButton")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobutton.groupnameproperty) + public class var groupNameProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonStatics.get_GroupNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobutton.groupname) + public var groupName : String { + get { try! _default.get_GroupNameImpl() } + set { try! _default.put_GroupNameImpl(newValue) } + } + + internal enum IToggleButtonOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIToggleButtonOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IToggleButtonOverrides + internal typealias Class = RadioButton + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButton + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRadioButton + } + } + internal typealias Composable = IToggleButtonOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons) +open class RadioButtons : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRadioButtons + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons + 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_CXaml_CControls_CIRadioButtons>?) -> RadioButtons? { + 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 _IRadioButtonsFactory : __ABI_Microsoft_UI_Xaml_Controls.IRadioButtonsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RadioButtons")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IRadioButtonsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IRadioButtonsStatics: __ABI_Microsoft_UI_Xaml_Controls.IRadioButtonsStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RadioButtons")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.headerproperty) + public class var headerProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.headertemplateproperty) + public class var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.itemtemplateproperty) + public class var itemTemplateProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_ItemTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.itemsproperty) + public class var itemsProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_ItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.itemssourceproperty) + public class var itemsSourceProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_ItemsSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.maxcolumnsproperty) + public class var maxColumnsProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_MaxColumnsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.selectedindexproperty) + public class var selectedIndexProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_SelectedIndexPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.selecteditemproperty) + public class var selectedItemProperty : WinUI.DependencyProperty! { + get { try! _IRadioButtonsStatics.get_SelectedItemPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.containerfromindex) + public func containerFromIndex(_ index: Int32) throws -> WinUI.UIElement! { + try _default.ContainerFromIndexImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.itemtemplate) + public var itemTemplate : Any! { + get { try! _default.get_ItemTemplateImpl() } + set { try! _default.put_ItemTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.itemssource) + public var itemsSource : Any! { + get { try! _default.get_ItemsSourceImpl() } + set { try! _default.put_ItemsSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.maxcolumns) + public var maxColumns : Int32 { + get { try! _default.get_MaxColumnsImpl() } + set { try! _default.put_MaxColumnsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.selectedindex) + public var selectedIndex : Int32 { + get { try! _default.get_SelectedIndexImpl() } + set { try! _default.put_SelectedIndexImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.selecteditem) + public var selectedItem : Any! { + get { try! _default.get_SelectedItemImpl() } + set { try! _default.put_SelectedItemImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.radiobuttons.selectionchanged) + public lazy var selectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectionChangedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = RadioButtons + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRadioButtons + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRadioButtons + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel) +open class RelativePanel : WinUI.Panel { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRelativePanel + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel + 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_CXaml_CControls_CIRelativePanel>?) -> RelativePanel? { + 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 _IRelativePanelFactory : __ABI_Microsoft_UI_Xaml_Controls.IRelativePanelFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RelativePanel")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IRelativePanelFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IRelativePanelStatics: __ABI_Microsoft_UI_Xaml_Controls.IRelativePanelStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RelativePanel")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getleftof) + public class func getLeftOf(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetLeftOfImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setleftof) + public class func setLeftOf(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetLeftOfImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getabove) + public class func getAbove(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAboveImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setabove) + public class func setAbove(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAboveImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getrightof) + public class func getRightOf(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetRightOfImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setrightof) + public class func setRightOf(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetRightOfImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getbelow) + public class func getBelow(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetBelowImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setbelow) + public class func setBelow(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetBelowImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignhorizontalcenterwith) + public class func getAlignHorizontalCenterWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignHorizontalCenterWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignhorizontalcenterwith) + public class func setAlignHorizontalCenterWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignHorizontalCenterWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignverticalcenterwith) + public class func getAlignVerticalCenterWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignVerticalCenterWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignverticalcenterwith) + public class func setAlignVerticalCenterWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignVerticalCenterWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignleftwith) + public class func getAlignLeftWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignLeftWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignleftwith) + public class func setAlignLeftWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignLeftWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getaligntopwith) + public class func getAlignTopWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignTopWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setaligntopwith) + public class func setAlignTopWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignTopWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignrightwith) + public class func getAlignRightWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignRightWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignrightwith) + public class func setAlignRightWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignRightWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignbottomwith) + public class func getAlignBottomWith(_ element: WinUI.UIElement!) -> Any! { + return try! _IRelativePanelStatics.GetAlignBottomWithImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignbottomwith) + public class func setAlignBottomWith(_ element: WinUI.UIElement!, _ value: Any!) { + try! _IRelativePanelStatics.SetAlignBottomWithImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignleftwithpanel) + public class func getAlignLeftWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignLeftWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignleftwithpanel) + public class func setAlignLeftWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignLeftWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getaligntopwithpanel) + public class func getAlignTopWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignTopWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setaligntopwithpanel) + public class func setAlignTopWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignTopWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignrightwithpanel) + public class func getAlignRightWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignRightWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignrightwithpanel) + public class func setAlignRightWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignRightWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignbottomwithpanel) + public class func getAlignBottomWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignBottomWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignbottomwithpanel) + public class func setAlignBottomWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignBottomWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignhorizontalcenterwithpanel) + public class func getAlignHorizontalCenterWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignHorizontalCenterWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignhorizontalcenterwithpanel) + public class func setAlignHorizontalCenterWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignHorizontalCenterWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.getalignverticalcenterwithpanel) + public class func getAlignVerticalCenterWithPanel(_ element: WinUI.UIElement!) -> Bool { + return try! _IRelativePanelStatics.GetAlignVerticalCenterWithPanelImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.setalignverticalcenterwithpanel) + public class func setAlignVerticalCenterWithPanel(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IRelativePanelStatics.SetAlignVerticalCenterWithPanelImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.aboveproperty) + public class var aboveProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AbovePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignbottomwithpanelproperty) + public class var alignBottomWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignBottomWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignbottomwithproperty) + public class var alignBottomWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignBottomWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignhorizontalcenterwithpanelproperty) + public class var alignHorizontalCenterWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignHorizontalCenterWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignhorizontalcenterwithproperty) + public class var alignHorizontalCenterWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignHorizontalCenterWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignleftwithpanelproperty) + public class var alignLeftWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignLeftWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignleftwithproperty) + public class var alignLeftWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignLeftWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignrightwithpanelproperty) + public class var alignRightWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignRightWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignrightwithproperty) + public class var alignRightWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignRightWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.aligntopwithpanelproperty) + public class var alignTopWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignTopWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.aligntopwithproperty) + public class var alignTopWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignTopWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignverticalcenterwithpanelproperty) + public class var alignVerticalCenterWithPanelProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignVerticalCenterWithPanelPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.alignverticalcenterwithproperty) + public class var alignVerticalCenterWithProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_AlignVerticalCenterWithPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.backgroundsizingproperty) + public class var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.belowproperty) + public class var belowProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_BelowPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.borderbrushproperty) + public class var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.borderthicknessproperty) + public class var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.cornerradiusproperty) + public class var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.leftofproperty) + public class var leftOfProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_LeftOfPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.paddingproperty) + public class var paddingProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.rightofproperty) + public class var rightOfProperty : WinUI.DependencyProperty! { + get { try! _IRelativePanelStatics.get_RightOfPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.relativepanel.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = RelativePanel + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRelativePanel + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRelativePanel + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition) +public final class RowDefinition : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IRowDefinition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIRowDefinition + 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_CXaml_CControls_CIRowDefinition>?) -> RowDefinition? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.RowDefinition"))) + } + + private static let _IRowDefinitionStatics: __ABI_Microsoft_UI_Xaml_Controls.IRowDefinitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.RowDefinition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.heightproperty) + public static var heightProperty : WinUI.DependencyProperty! { + get { try! _IRowDefinitionStatics.get_HeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.maxheightproperty) + public static var maxHeightProperty : WinUI.DependencyProperty! { + get { try! _IRowDefinitionStatics.get_MaxHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.minheightproperty) + public static var minHeightProperty : WinUI.DependencyProperty! { + get { try! _IRowDefinitionStatics.get_MinHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.actualheight) + public var actualHeight : Double { + get { try! _default.get_ActualHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.height) + public var height : WinUI.GridLength { + get { try! _default.get_HeightImpl() } + set { try! _default.put_HeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.maxheight) + public var maxHeight : Double { + get { try! _default.get_MaxHeightImpl() } + set { try! _default.put_MaxHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinition.minheight) + public var minHeight : Double { + get { try! _default.get_MinHeightImpl() } + set { try! _default.put_MinHeightImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection) +public final class RowDefinitionCollection : WinRTClass, IVector, IIterable { + public typealias T = RowDefinition? + private typealias SwiftABI = WinUI.IVectorRowDefinition + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition + 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__CXaml__CControls__CRowDefinition>?) -> RowDefinitionCollection? { + 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) + } + // 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.xaml.controls.rowdefinitioncollection.getat) + public func getAt(_ index: UInt32) -> RowDefinition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.indexof) + public func indexOf(_ value: RowDefinition?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.setat) + public func setAt(_ index: UInt32, _ value: RowDefinition?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.insertat) + public func insertAt(_ index: UInt32, _ value: RowDefinition?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.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.xaml.controls.rowdefinitioncollection.append) + public func append(_ value: RowDefinition?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableRowDefinition! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.rowdefinitioncollection.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.xaml.controls.scrollview) +open class ScrollView : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView + 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_CXaml_CControls_CIScrollView>?) -> ScrollView? { + 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 _IScrollViewFactory : __ABI_Microsoft_UI_Xaml_Controls.IScrollViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ScrollView")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IScrollViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IScrollViewStatics: __ABI_Microsoft_UI_Xaml_Controls.IScrollViewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ScrollView")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedhorizontalscrollbarvisibilityproperty) + public class var computedHorizontalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ComputedHorizontalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedhorizontalscrollmodeproperty) + public class var computedHorizontalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ComputedHorizontalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedverticalscrollbarvisibilityproperty) + public class var computedVerticalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ComputedVerticalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedverticalscrollmodeproperty) + public class var computedVerticalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ComputedVerticalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.contentorientationproperty) + public class var contentOrientationProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ContentOrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalanchorratioproperty) + public class var horizontalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_HorizontalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollbarvisibilityproperty) + public class var horizontalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_HorizontalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollchainmodeproperty) + public class var horizontalScrollChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_HorizontalScrollChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollmodeproperty) + public class var horizontalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_HorizontalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollrailmodeproperty) + public class var horizontalScrollRailModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_HorizontalScrollRailModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.ignoredinputkindsproperty) + public class var ignoredInputKindsProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_IgnoredInputKindsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.maxzoomfactorproperty) + public class var maxZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_MaxZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.minzoomfactorproperty) + public class var minZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_MinZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollpresenterproperty) + public class var scrollPresenterProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ScrollPresenterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalanchorratioproperty) + public class var verticalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_VerticalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollbarvisibilityproperty) + public class var verticalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_VerticalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollchainmodeproperty) + public class var verticalScrollChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_VerticalScrollChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollmodeproperty) + public class var verticalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_VerticalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollrailmodeproperty) + public class var verticalScrollRailModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_VerticalScrollRailModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomchainmodeproperty) + public class var zoomChainModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ZoomChainModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoommodeproperty) + public class var zoomModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewStatics.get_ZoomModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.registeranchorcandidate) + public func registerAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _default.RegisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.unregisteranchorcandidate) + public func unregisterAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _default.UnregisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollto) + public func scrollTo(_ horizontalOffset: Double, _ verticalOffset: Double) throws -> Int32 { + try _default.ScrollToImpl(horizontalOffset, verticalOffset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollto) + public func scrollTo(_ horizontalOffset: Double, _ verticalOffset: Double, _ options: ScrollingScrollOptions!) throws -> Int32 { + try _default.ScrollToWithOptionsImpl(horizontalOffset, verticalOffset, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollby) + public func scrollBy(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double) throws -> Int32 { + try _default.ScrollByImpl(horizontalOffsetDelta, verticalOffsetDelta) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollby) + public func scrollBy(_ horizontalOffsetDelta: Double, _ verticalOffsetDelta: Double, _ options: ScrollingScrollOptions!) throws -> Int32 { + try _default.ScrollByWithOptionsImpl(horizontalOffsetDelta, verticalOffsetDelta, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.addscrollvelocity) + public func addScrollVelocity(_ offsetsVelocity: WindowsFoundation.Vector2, _ inertiaDecayRate: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.AddScrollVelocityImpl(offsetsVelocity, inertiaDecayRate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomto) + public func zoomTo(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.ZoomToImpl(zoomFactor, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomto) + public func zoomTo(_ zoomFactor: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: ScrollingZoomOptions!) throws -> Int32 { + try _default.ZoomToWithOptionsImpl(zoomFactor, centerPoint, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomby) + public func zoomBy(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?) throws -> Int32 { + try _default.ZoomByImpl(zoomFactorDelta, centerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomby) + public func zoomBy(_ zoomFactorDelta: Float, _ centerPoint: WindowsFoundation.Vector2?, _ options: ScrollingZoomOptions!) throws -> Int32 { + try _default.ZoomByWithOptionsImpl(zoomFactorDelta, centerPoint, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.addzoomvelocity) + public func addZoomVelocity(_ zoomFactorVelocity: Float, _ centerPoint: WindowsFoundation.Vector2?, _ inertiaDecayRate: Float?) throws -> Int32 { + try _default.AddZoomVelocityImpl(zoomFactorVelocity, centerPoint, inertiaDecayRate) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedhorizontalscrollbarvisibility) + public var computedHorizontalScrollBarVisibility : WinUI.Visibility { + get { try! _default.get_ComputedHorizontalScrollBarVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedhorizontalscrollmode) + public var computedHorizontalScrollMode : ScrollingScrollMode { + get { try! _default.get_ComputedHorizontalScrollModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedverticalscrollbarvisibility) + public var computedVerticalScrollBarVisibility : WinUI.Visibility { + get { try! _default.get_ComputedVerticalScrollBarVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.computedverticalscrollmode) + public var computedVerticalScrollMode : ScrollingScrollMode { + get { try! _default.get_ComputedVerticalScrollModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.contentorientation) + public var contentOrientation : ScrollingContentOrientation { + get { try! _default.get_ContentOrientationImpl() } + set { try! _default.put_ContentOrientationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.currentanchor) + public var currentAnchor : WinUI.UIElement! { + get { try! _default.get_CurrentAnchorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.expressionanimationsources) + public var expressionAnimationSources : WinAppSDK.CompositionPropertySet! { + get { try! _default.get_ExpressionAnimationSourcesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.extentheight) + public var extentHeight : Double { + get { try! _default.get_ExtentHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.extentwidth) + public var extentWidth : Double { + get { try! _default.get_ExtentWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalanchorratio) + public var horizontalAnchorRatio : Double { + get { try! _default.get_HorizontalAnchorRatioImpl() } + set { try! _default.put_HorizontalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollbarvisibility) + public var horizontalScrollBarVisibility : ScrollingScrollBarVisibility { + get { try! _default.get_HorizontalScrollBarVisibilityImpl() } + set { try! _default.put_HorizontalScrollBarVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollchainmode) + public var horizontalScrollChainMode : ScrollingChainMode { + get { try! _default.get_HorizontalScrollChainModeImpl() } + set { try! _default.put_HorizontalScrollChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollmode) + public var horizontalScrollMode : ScrollingScrollMode { + get { try! _default.get_HorizontalScrollModeImpl() } + set { try! _default.put_HorizontalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollrailmode) + public var horizontalScrollRailMode : ScrollingRailMode { + get { try! _default.get_HorizontalScrollRailModeImpl() } + set { try! _default.put_HorizontalScrollRailModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.ignoredinputkinds) + public var ignoredInputKinds : ScrollingInputKinds { + get { try! _default.get_IgnoredInputKindsImpl() } + set { try! _default.put_IgnoredInputKindsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.maxzoomfactor) + public var maxZoomFactor : Double { + get { try! _default.get_MaxZoomFactorImpl() } + set { try! _default.put_MaxZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.minzoomfactor) + public var minZoomFactor : Double { + get { try! _default.get_MinZoomFactorImpl() } + set { try! _default.put_MinZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollpresenter) + public var scrollPresenter : WinUI.ScrollPresenter! { + get { try! _default.get_ScrollPresenterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollableheight) + public var scrollableHeight : Double { + get { try! _default.get_ScrollableHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollablewidth) + public var scrollableWidth : Double { + get { try! _default.get_ScrollableWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.state) + public var state : ScrollingInteractionState { + get { try! _default.get_StateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalanchorratio) + public var verticalAnchorRatio : Double { + get { try! _default.get_VerticalAnchorRatioImpl() } + set { try! _default.put_VerticalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollbarvisibility) + public var verticalScrollBarVisibility : ScrollingScrollBarVisibility { + get { try! _default.get_VerticalScrollBarVisibilityImpl() } + set { try! _default.put_VerticalScrollBarVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollchainmode) + public var verticalScrollChainMode : ScrollingChainMode { + get { try! _default.get_VerticalScrollChainModeImpl() } + set { try! _default.put_VerticalScrollChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollmode) + public var verticalScrollMode : ScrollingScrollMode { + get { try! _default.get_VerticalScrollModeImpl() } + set { try! _default.put_VerticalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollrailmode) + public var verticalScrollRailMode : ScrollingRailMode { + get { try! _default.get_VerticalScrollRailModeImpl() } + set { try! _default.put_VerticalScrollRailModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.viewportheight) + public var viewportHeight : Double { + get { try! _default.get_ViewportHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.viewportwidth) + public var viewportWidth : Double { + get { try! _default.get_ViewportWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomchainmode) + public var zoomChainMode : ScrollingChainMode { + get { try! _default.get_ZoomChainModeImpl() } + set { try! _default.put_ZoomChainModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomfactor) + public var zoomFactor : Float { + get { try! _default.get_ZoomFactorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoommode) + public var zoomMode : ScrollingZoomMode { + get { try! _default.get_ZoomModeImpl() } + set { try! _default.put_ZoomModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.anchorrequested) + public lazy var anchorRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AnchorRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AnchorRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.bringingintoview) + public lazy var bringingIntoView : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_BringingIntoViewImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_BringingIntoViewImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.extentchanged) + public lazy var extentChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ExtentChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ExtentChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollanimationstarting) + public lazy var scrollAnimationStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollAnimationStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollAnimationStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.scrollcompleted) + public lazy var scrollCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ScrollCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ScrollCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.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) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.viewchanged) + public lazy var viewChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomanimationstarting) + public lazy var zoomAnimationStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ZoomAnimationStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ZoomAnimationStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.zoomcompleted) + public lazy var zoomCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ZoomCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ZoomCompletedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = ScrollView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollView + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer) +public final class ScrollViewer : WinUI.ContentControl, IScrollAnchorProvider { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollViewer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer + 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_CXaml_CControls_CIScrollViewer>?) -> ScrollViewer? { + 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) + } + override public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ScrollViewer"))) + } + + private static let _IScrollViewerStatics: __ABI_Microsoft_UI_Xaml_Controls.IScrollViewerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ScrollViewer")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.gethorizontalscrollbarvisibility) + public static func getHorizontalScrollBarVisibility(_ element: WinUI.DependencyObject!) -> ScrollBarVisibility { + return try! _IScrollViewerStatics.GetHorizontalScrollBarVisibilityImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.sethorizontalscrollbarvisibility) + public static func setHorizontalScrollBarVisibility(_ element: WinUI.DependencyObject!, _ horizontalScrollBarVisibility: ScrollBarVisibility) { + try! _IScrollViewerStatics.SetHorizontalScrollBarVisibilityImpl(element, horizontalScrollBarVisibility) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getverticalscrollbarvisibility) + public static func getVerticalScrollBarVisibility(_ element: WinUI.DependencyObject!) -> ScrollBarVisibility { + return try! _IScrollViewerStatics.GetVerticalScrollBarVisibilityImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setverticalscrollbarvisibility) + public static func setVerticalScrollBarVisibility(_ element: WinUI.DependencyObject!, _ verticalScrollBarVisibility: ScrollBarVisibility) { + try! _IScrollViewerStatics.SetVerticalScrollBarVisibilityImpl(element, verticalScrollBarVisibility) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getishorizontalrailenabled) + public static func getIsHorizontalRailEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsHorizontalRailEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setishorizontalrailenabled) + public static func setIsHorizontalRailEnabled(_ element: WinUI.DependencyObject!, _ isHorizontalRailEnabled: Bool) { + try! _IScrollViewerStatics.SetIsHorizontalRailEnabledImpl(element, isHorizontalRailEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getisverticalrailenabled) + public static func getIsVerticalRailEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsVerticalRailEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setisverticalrailenabled) + public static func setIsVerticalRailEnabled(_ element: WinUI.DependencyObject!, _ isVerticalRailEnabled: Bool) { + try! _IScrollViewerStatics.SetIsVerticalRailEnabledImpl(element, isVerticalRailEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getishorizontalscrollchainingenabled) + public static func getIsHorizontalScrollChainingEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsHorizontalScrollChainingEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setishorizontalscrollchainingenabled) + public static func setIsHorizontalScrollChainingEnabled(_ element: WinUI.DependencyObject!, _ isHorizontalScrollChainingEnabled: Bool) { + try! _IScrollViewerStatics.SetIsHorizontalScrollChainingEnabledImpl(element, isHorizontalScrollChainingEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getisverticalscrollchainingenabled) + public static func getIsVerticalScrollChainingEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsVerticalScrollChainingEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setisverticalscrollchainingenabled) + public static func setIsVerticalScrollChainingEnabled(_ element: WinUI.DependencyObject!, _ isVerticalScrollChainingEnabled: Bool) { + try! _IScrollViewerStatics.SetIsVerticalScrollChainingEnabledImpl(element, isVerticalScrollChainingEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getiszoomchainingenabled) + public static func getIsZoomChainingEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsZoomChainingEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setiszoomchainingenabled) + public static func setIsZoomChainingEnabled(_ element: WinUI.DependencyObject!, _ isZoomChainingEnabled: Bool) { + try! _IScrollViewerStatics.SetIsZoomChainingEnabledImpl(element, isZoomChainingEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getisscrollinertiaenabled) + public static func getIsScrollInertiaEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsScrollInertiaEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setisscrollinertiaenabled) + public static func setIsScrollInertiaEnabled(_ element: WinUI.DependencyObject!, _ isScrollInertiaEnabled: Bool) { + try! _IScrollViewerStatics.SetIsScrollInertiaEnabledImpl(element, isScrollInertiaEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getiszoominertiaenabled) + public static func getIsZoomInertiaEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsZoomInertiaEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setiszoominertiaenabled) + public static func setIsZoomInertiaEnabled(_ element: WinUI.DependencyObject!, _ isZoomInertiaEnabled: Bool) { + try! _IScrollViewerStatics.SetIsZoomInertiaEnabledImpl(element, isZoomInertiaEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.gethorizontalscrollmode) + public static func getHorizontalScrollMode(_ element: WinUI.DependencyObject!) -> ScrollMode { + return try! _IScrollViewerStatics.GetHorizontalScrollModeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.sethorizontalscrollmode) + public static func setHorizontalScrollMode(_ element: WinUI.DependencyObject!, _ horizontalScrollMode: ScrollMode) { + try! _IScrollViewerStatics.SetHorizontalScrollModeImpl(element, horizontalScrollMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getverticalscrollmode) + public static func getVerticalScrollMode(_ element: WinUI.DependencyObject!) -> ScrollMode { + return try! _IScrollViewerStatics.GetVerticalScrollModeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setverticalscrollmode) + public static func setVerticalScrollMode(_ element: WinUI.DependencyObject!, _ verticalScrollMode: ScrollMode) { + try! _IScrollViewerStatics.SetVerticalScrollModeImpl(element, verticalScrollMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getzoommode) + public static func getZoomMode(_ element: WinUI.DependencyObject!) -> ZoomMode { + return try! _IScrollViewerStatics.GetZoomModeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setzoommode) + public static func setZoomMode(_ element: WinUI.DependencyObject!, _ zoomMode: ZoomMode) { + try! _IScrollViewerStatics.SetZoomModeImpl(element, zoomMode) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getcancontentrenderoutsidebounds) + public static func getCanContentRenderOutsideBounds(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetCanContentRenderOutsideBoundsImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setcancontentrenderoutsidebounds) + public static func setCanContentRenderOutsideBounds(_ element: WinUI.DependencyObject!, _ canContentRenderOutsideBounds: Bool) { + try! _IScrollViewerStatics.SetCanContentRenderOutsideBoundsImpl(element, canContentRenderOutsideBounds) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getisdeferredscrollingenabled) + public static func getIsDeferredScrollingEnabled(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetIsDeferredScrollingEnabledImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setisdeferredscrollingenabled) + public static func setIsDeferredScrollingEnabled(_ element: WinUI.DependencyObject!, _ isDeferredScrollingEnabled: Bool) { + try! _IScrollViewerStatics.SetIsDeferredScrollingEnabledImpl(element, isDeferredScrollingEnabled) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.getbringintoviewonfocuschange) + public static func getBringIntoViewOnFocusChange(_ element: WinUI.DependencyObject!) -> Bool { + return try! _IScrollViewerStatics.GetBringIntoViewOnFocusChangeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.setbringintoviewonfocuschange) + public static func setBringIntoViewOnFocusChange(_ element: WinUI.DependencyObject!, _ bringIntoViewOnFocusChange: Bool) { + try! _IScrollViewerStatics.SetBringIntoViewOnFocusChangeImpl(element, bringIntoViewOnFocusChange) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.bringintoviewonfocuschangeproperty) + public static var bringIntoViewOnFocusChangeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_BringIntoViewOnFocusChangePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.cancontentrenderoutsideboundsproperty) + public static var canContentRenderOutsideBoundsProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_CanContentRenderOutsideBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.computedhorizontalscrollbarvisibilityproperty) + public static var computedHorizontalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ComputedHorizontalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.computedverticalscrollbarvisibilityproperty) + public static var computedVerticalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ComputedVerticalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.extentheightproperty) + public static var extentHeightProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ExtentHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.extentwidthproperty) + public static var extentWidthProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ExtentWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalanchorratioproperty) + public static var horizontalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontaloffsetproperty) + public static var horizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalscrollbarvisibilityproperty) + public static var horizontalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalscrollmodeproperty) + public static var horizontalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalsnappointsalignmentproperty) + public static var horizontalSnapPointsAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalSnapPointsAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalsnappointstypeproperty) + public static var horizontalSnapPointsTypeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_HorizontalSnapPointsTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isdeferredscrollingenabledproperty) + public static var isDeferredScrollingEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsDeferredScrollingEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.ishorizontalrailenabledproperty) + public static var isHorizontalRailEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsHorizontalRailEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.ishorizontalscrollchainingenabledproperty) + public static var isHorizontalScrollChainingEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsHorizontalScrollChainingEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isscrollinertiaenabledproperty) + public static var isScrollInertiaEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsScrollInertiaEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isverticalrailenabledproperty) + public static var isVerticalRailEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsVerticalRailEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isverticalscrollchainingenabledproperty) + public static var isVerticalScrollChainingEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsVerticalScrollChainingEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.iszoomchainingenabledproperty) + public static var isZoomChainingEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsZoomChainingEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.iszoominertiaenabledproperty) + public static var isZoomInertiaEnabledProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_IsZoomInertiaEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.leftheaderproperty) + public static var leftHeaderProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_LeftHeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.maxzoomfactorproperty) + public static var maxZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_MaxZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.minzoomfactorproperty) + public static var minZoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_MinZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.reduceviewportforcoreinputviewocclusionsproperty) + public static var reduceViewportForCoreInputViewOcclusionsProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ReduceViewportForCoreInputViewOcclusionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrollableheightproperty) + public static var scrollableHeightProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ScrollableHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrollablewidthproperty) + public static var scrollableWidthProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ScrollableWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.topheaderproperty) + public static var topHeaderProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_TopHeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.topleftheaderproperty) + public static var topLeftHeaderProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_TopLeftHeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalanchorratioproperty) + public static var verticalAnchorRatioProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalAnchorRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticaloffsetproperty) + public static var verticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalscrollbarvisibilityproperty) + public static var verticalScrollBarVisibilityProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalScrollBarVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalscrollmodeproperty) + public static var verticalScrollModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalScrollModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalsnappointsalignmentproperty) + public static var verticalSnapPointsAlignmentProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalSnapPointsAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalsnappointstypeproperty) + public static var verticalSnapPointsTypeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_VerticalSnapPointsTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewportheightproperty) + public static var viewportHeightProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ViewportHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewportwidthproperty) + public static var viewportWidthProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ViewportWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomfactorproperty) + public static var zoomFactorProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ZoomFactorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoommodeproperty) + public static var zoomModeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ZoomModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomsnappointsproperty) + public static var zoomSnapPointsProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ZoomSnapPointsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomsnappointstypeproperty) + public static var zoomSnapPointsTypeProperty : WinUI.DependencyProperty! { + get { try! _IScrollViewerStatics.get_ZoomSnapPointsTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrolltohorizontaloffset) + public func scrollToHorizontalOffset(_ offset: Double) throws { + try _default.ScrollToHorizontalOffsetImpl(offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrolltoverticaloffset) + public func scrollToVerticalOffset(_ offset: Double) throws { + try _default.ScrollToVerticalOffsetImpl(offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomtofactor) + public func zoomToFactor(_ factor: Float) throws { + try _default.ZoomToFactorImpl(factor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.changeview) + public func changeView(_ horizontalOffset: Double?, _ verticalOffset: Double?, _ zoomFactor: Float?) throws -> Bool { + try _default.ChangeViewImpl(horizontalOffset, verticalOffset, zoomFactor) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.changeview) + public func changeView(_ horizontalOffset: Double?, _ verticalOffset: Double?, _ zoomFactor: Float?, _ disableAnimation: Bool) throws -> Bool { + try _default.ChangeViewWithOptionalAnimationImpl(horizontalOffset, verticalOffset, zoomFactor, disableAnimation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.invalidatescrollinfo) + public func invalidateScrollInfo() throws { + try _default.InvalidateScrollInfoImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.bringintoviewonfocuschange) + public var bringIntoViewOnFocusChange : Bool { + get { try! _default.get_BringIntoViewOnFocusChangeImpl() } + set { try! _default.put_BringIntoViewOnFocusChangeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.cancontentrenderoutsidebounds) + public var canContentRenderOutsideBounds : Bool { + get { try! _default.get_CanContentRenderOutsideBoundsImpl() } + set { try! _default.put_CanContentRenderOutsideBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.computedhorizontalscrollbarvisibility) + public var computedHorizontalScrollBarVisibility : WinUI.Visibility { + get { try! _default.get_ComputedHorizontalScrollBarVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.computedverticalscrollbarvisibility) + public var computedVerticalScrollBarVisibility : WinUI.Visibility { + get { try! _default.get_ComputedVerticalScrollBarVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.extentheight) + public var extentHeight : Double { + get { try! _default.get_ExtentHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.extentwidth) + public var extentWidth : Double { + get { try! _default.get_ExtentWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalanchorratio) + public var horizontalAnchorRatio : Double { + get { try! _default.get_HorizontalAnchorRatioImpl() } + set { try! _default.put_HorizontalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalscrollbarvisibility) + public var horizontalScrollBarVisibility : ScrollBarVisibility { + get { try! _default.get_HorizontalScrollBarVisibilityImpl() } + set { try! _default.put_HorizontalScrollBarVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalscrollmode) + public var horizontalScrollMode : ScrollMode { + get { try! _default.get_HorizontalScrollModeImpl() } + set { try! _default.put_HorizontalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalsnappointsalignment) + public var horizontalSnapPointsAlignment : WinUI.SnapPointsAlignment { + get { try! _default.get_HorizontalSnapPointsAlignmentImpl() } + set { try! _default.put_HorizontalSnapPointsAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalsnappointstype) + public var horizontalSnapPointsType : SnapPointsType { + get { try! _default.get_HorizontalSnapPointsTypeImpl() } + set { try! _default.put_HorizontalSnapPointsTypeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isdeferredscrollingenabled) + public var isDeferredScrollingEnabled : Bool { + get { try! _default.get_IsDeferredScrollingEnabledImpl() } + set { try! _default.put_IsDeferredScrollingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.ishorizontalrailenabled) + public var isHorizontalRailEnabled : Bool { + get { try! _default.get_IsHorizontalRailEnabledImpl() } + set { try! _default.put_IsHorizontalRailEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.ishorizontalscrollchainingenabled) + public var isHorizontalScrollChainingEnabled : Bool { + get { try! _default.get_IsHorizontalScrollChainingEnabledImpl() } + set { try! _default.put_IsHorizontalScrollChainingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isscrollinertiaenabled) + public var isScrollInertiaEnabled : Bool { + get { try! _default.get_IsScrollInertiaEnabledImpl() } + set { try! _default.put_IsScrollInertiaEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isverticalrailenabled) + public var isVerticalRailEnabled : Bool { + get { try! _default.get_IsVerticalRailEnabledImpl() } + set { try! _default.put_IsVerticalRailEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.isverticalscrollchainingenabled) + public var isVerticalScrollChainingEnabled : Bool { + get { try! _default.get_IsVerticalScrollChainingEnabledImpl() } + set { try! _default.put_IsVerticalScrollChainingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.iszoomchainingenabled) + public var isZoomChainingEnabled : Bool { + get { try! _default.get_IsZoomChainingEnabledImpl() } + set { try! _default.put_IsZoomChainingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.iszoominertiaenabled) + public var isZoomInertiaEnabled : Bool { + get { try! _default.get_IsZoomInertiaEnabledImpl() } + set { try! _default.put_IsZoomInertiaEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.leftheader) + public var leftHeader : WinUI.UIElement! { + get { try! _default.get_LeftHeaderImpl() } + set { try! _default.put_LeftHeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.maxzoomfactor) + public var maxZoomFactor : Float { + get { try! _default.get_MaxZoomFactorImpl() } + set { try! _default.put_MaxZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.minzoomfactor) + public var minZoomFactor : Float { + get { try! _default.get_MinZoomFactorImpl() } + set { try! _default.put_MinZoomFactorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.reduceviewportforcoreinputviewocclusions) + public var reduceViewportForCoreInputViewOcclusions : Bool { + get { try! _default.get_ReduceViewportForCoreInputViewOcclusionsImpl() } + set { try! _default.put_ReduceViewportForCoreInputViewOcclusionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrollableheight) + public var scrollableHeight : Double { + get { try! _default.get_ScrollableHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.scrollablewidth) + public var scrollableWidth : Double { + get { try! _default.get_ScrollableWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.topheader) + public var topHeader : WinUI.UIElement! { + get { try! _default.get_TopHeaderImpl() } + set { try! _default.put_TopHeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.topleftheader) + public var topLeftHeader : WinUI.UIElement! { + get { try! _default.get_TopLeftHeaderImpl() } + set { try! _default.put_TopLeftHeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalanchorratio) + public var verticalAnchorRatio : Double { + get { try! _default.get_VerticalAnchorRatioImpl() } + set { try! _default.put_VerticalAnchorRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalscrollbarvisibility) + public var verticalScrollBarVisibility : ScrollBarVisibility { + get { try! _default.get_VerticalScrollBarVisibilityImpl() } + set { try! _default.put_VerticalScrollBarVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalscrollmode) + public var verticalScrollMode : ScrollMode { + get { try! _default.get_VerticalScrollModeImpl() } + set { try! _default.put_VerticalScrollModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalsnappointsalignment) + public var verticalSnapPointsAlignment : WinUI.SnapPointsAlignment { + get { try! _default.get_VerticalSnapPointsAlignmentImpl() } + set { try! _default.put_VerticalSnapPointsAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalsnappointstype) + public var verticalSnapPointsType : SnapPointsType { + get { try! _default.get_VerticalSnapPointsTypeImpl() } + set { try! _default.put_VerticalSnapPointsTypeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewportheight) + public var viewportHeight : Double { + get { try! _default.get_ViewportHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewportwidth) + public var viewportWidth : Double { + get { try! _default.get_ViewportWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomfactor) + public var zoomFactor : Float { + get { try! _default.get_ZoomFactorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoommode) + public var zoomMode : ZoomMode { + get { try! _default.get_ZoomModeImpl() } + set { try! _default.put_ZoomModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomsnappoints) + public var zoomSnapPoints : WindowsFoundation.AnyIVector! { + get { try! _default.get_ZoomSnapPointsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.zoomsnappointstype) + public var zoomSnapPointsType : SnapPointsType { + get { try! _default.get_ZoomSnapPointsTypeImpl() } + set { try! _default.put_ZoomSnapPointsTypeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.anchorrequested) + public lazy var anchorRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AnchorRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AnchorRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.directmanipulationcompleted) + public lazy var directManipulationCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DirectManipulationCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DirectManipulationCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.directmanipulationstarted) + public lazy var directManipulationStarted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DirectManipulationStartedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DirectManipulationStartedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewchanged) + public lazy var viewChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.viewchanging) + public lazy var viewChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangingImpl($0) + } + ) + }() + + private lazy var _IScrollAnchorProvider: __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProvider! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.registeranchorcandidate) + public func registerAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _IScrollAnchorProvider.RegisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.unregisteranchorcandidate) + public func unregisterAnchorCandidate(_ element: WinUI.UIElement!) throws { + try _IScrollAnchorProvider.UnregisterAnchorCandidateImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.currentanchor) + public var currentAnchor : WinUI.UIElement! { + get { try! _IScrollAnchorProvider.get_CurrentAnchorImpl() } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ScrollViewer + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewer + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollViewer + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + _IScrollAnchorProvider = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerview) +public final class ScrollViewerView : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollViewerView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerView + 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_CXaml_CControls_CIScrollViewerView>?) -> ScrollViewerView? { + 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.xaml.controls.scrollviewerview.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerview.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerview.zoomfactor) + public var zoomFactor : Float { + get { try! _default.get_ZoomFactorImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerviewchangedeventargs) +public final class ScrollViewerViewChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollViewerViewChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangedEventArgs + 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_CXaml_CControls_CIScrollViewerViewChangedEventArgs>?) -> ScrollViewerViewChangedEventArgs? { + 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.Xaml.Controls.ScrollViewerViewChangedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerviewchangedeventargs.isintermediate) + public var isIntermediate : Bool { + get { try! _default.get_IsIntermediateImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerviewchangingeventargs) +public final class ScrollViewerViewChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollViewerViewChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollViewerViewChangingEventArgs + 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_CXaml_CControls_CIScrollViewerViewChangingEventArgs>?) -> ScrollViewerViewChangingEventArgs? { + 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.xaml.controls.scrollviewerviewchangingeventargs.finalview) + public var finalView : ScrollViewerView! { + get { try! _default.get_FinalViewImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewerviewchangingeventargs.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.xaml.controls.scrollviewerviewchangingeventargs.nextview) + public var nextView : ScrollViewerView! { + get { try! _default.get_NextViewImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollinganchorrequestedeventargs) +public final class ScrollingAnchorRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingAnchorRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingAnchorRequestedEventArgs + 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_CXaml_CControls_CIScrollingAnchorRequestedEventArgs>?) -> ScrollingAnchorRequestedEventArgs? { + 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.xaml.controls.scrollinganchorrequestedeventargs.anchorcandidates) + public var anchorCandidates : WindowsFoundation.AnyIVector! { + get { try! _default.get_AnchorCandidatesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollinganchorrequestedeventargs.anchorelement) + public var anchorElement : WinUI.UIElement! { + get { try! _default.get_AnchorElementImpl() } + set { try! _default.put_AnchorElementImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs) +public final class ScrollingBringingIntoViewEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingBringingIntoViewEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingBringingIntoViewEventArgs + 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_CXaml_CControls_CIScrollingBringingIntoViewEventArgs>?) -> ScrollingBringingIntoViewEventArgs? { + 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.xaml.controls.scrollingbringingintovieweventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs.requesteventargs) + public var requestEventArgs : WinUI.BringIntoViewRequestedEventArgs! { + get { try! _default.get_RequestEventArgsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs.snappointsmode) + public var snapPointsMode : ScrollingSnapPointsMode { + get { try! _default.get_SnapPointsModeImpl() } + set { try! _default.put_SnapPointsModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs.targethorizontaloffset) + public var targetHorizontalOffset : Double { + get { try! _default.get_TargetHorizontalOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingbringingintovieweventargs.targetverticaloffset) + public var targetVerticalOffset : Double { + get { try! _default.get_TargetVerticalOffsetImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollanimationstartingeventargs) +public final class ScrollingScrollAnimationStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingScrollAnimationStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs + 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_CXaml_CControls_CIScrollingScrollAnimationStartingEventArgs>?) -> ScrollingScrollAnimationStartingEventArgs? { + 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.xaml.controls.scrollingscrollanimationstartingeventargs.animation) + public var animation : WinAppSDK.CompositionAnimation! { + get { try! _default.get_AnimationImpl() } + set { try! _default.put_AnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollanimationstartingeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollanimationstartingeventargs.endposition) + public var endPosition : WindowsFoundation.Vector2 { + get { try! _default.get_EndPositionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollanimationstartingeventargs.startposition) + public var startPosition : WindowsFoundation.Vector2 { + get { try! _default.get_StartPositionImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrollcompletedeventargs) +public final class ScrollingScrollCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingScrollCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollCompletedEventArgs + 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_CXaml_CControls_CIScrollingScrollCompletedEventArgs>?) -> ScrollingScrollCompletedEventArgs? { + 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.xaml.controls.scrollingscrollcompletedeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrolloptions) +open class ScrollingScrollOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingScrollOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions + 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_CXaml_CControls_CIScrollingScrollOptions>?) -> ScrollingScrollOptions? { + 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 _IScrollingScrollOptionsFactory : __ABI_Microsoft_UI_Xaml_Controls.IScrollingScrollOptionsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ScrollingScrollOptions")) + + public init(_ animationMode: ScrollingAnimationMode) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IScrollingScrollOptionsFactory.CreateInstanceImpl(animationMode, baseInterface, &innerInterface) + } + } + + public init(_ animationMode: ScrollingAnimationMode, _ snapPointsMode: ScrollingSnapPointsMode) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IScrollingScrollOptionsFactory.CreateInstance2Impl(animationMode, snapPointsMode, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrolloptions.animationmode) + public var animationMode : ScrollingAnimationMode { + get { try! _default.get_AnimationModeImpl() } + set { try! _default.put_AnimationModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingscrolloptions.snappointsmode) + public var snapPointsMode : ScrollingSnapPointsMode { + get { try! _default.get_SnapPointsModeImpl() } + set { try! _default.put_SnapPointsModeImpl(newValue) } + } + + internal enum IScrollingScrollOptions : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ScrollingScrollOptions + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingScrollOptions + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingScrollOptions + } + } + internal typealias Composable = IScrollingScrollOptions + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomanimationstartingeventargs) +public final class ScrollingZoomAnimationStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingZoomAnimationStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs + 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_CXaml_CControls_CIScrollingZoomAnimationStartingEventArgs>?) -> ScrollingZoomAnimationStartingEventArgs? { + 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.xaml.controls.scrollingzoomanimationstartingeventargs.animation) + public var animation : WinAppSDK.CompositionAnimation! { + get { try! _default.get_AnimationImpl() } + set { try! _default.put_AnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomanimationstartingeventargs.centerpoint) + public var centerPoint : WindowsFoundation.Vector2 { + get { try! _default.get_CenterPointImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomanimationstartingeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomanimationstartingeventargs.endzoomfactor) + public var endZoomFactor : Float { + get { try! _default.get_EndZoomFactorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomanimationstartingeventargs.startzoomfactor) + public var startZoomFactor : Float { + get { try! _default.get_StartZoomFactorImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomcompletedeventargs) +public final class ScrollingZoomCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingZoomCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomCompletedEventArgs + 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_CXaml_CControls_CIScrollingZoomCompletedEventArgs>?) -> ScrollingZoomCompletedEventArgs? { + 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.xaml.controls.scrollingzoomcompletedeventargs.correlationid) + public var correlationId : Int32 { + get { try! _default.get_CorrelationIdImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomoptions) +open class ScrollingZoomOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingZoomOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions + 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_CXaml_CControls_CIScrollingZoomOptions>?) -> ScrollingZoomOptions? { + 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 _IScrollingZoomOptionsFactory : __ABI_Microsoft_UI_Xaml_Controls.IScrollingZoomOptionsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ScrollingZoomOptions")) + + public init(_ animationMode: ScrollingAnimationMode) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IScrollingZoomOptionsFactory.CreateInstanceImpl(animationMode, baseInterface, &innerInterface) + } + } + + public init(_ animationMode: ScrollingAnimationMode, _ snapPointsMode: ScrollingSnapPointsMode) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IScrollingZoomOptionsFactory.CreateInstance2Impl(animationMode, snapPointsMode, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomoptions.animationmode) + public var animationMode : ScrollingAnimationMode { + get { try! _default.get_AnimationModeImpl() } + set { try! _default.put_AnimationModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollingzoomoptions.snappointsmode) + public var snapPointsMode : ScrollingSnapPointsMode { + get { try! _default.get_SnapPointsModeImpl() } + set { try! _default.put_SnapPointsModeImpl(newValue) } + } + + internal enum IScrollingZoomOptions : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ScrollingZoomOptions + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIScrollingZoomOptions + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IScrollingZoomOptions + } + } + internal typealias Composable = IScrollingZoomOptions + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.selectionchangedeventargs) +open class SelectionChangedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISelectionChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs + 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_CXaml_CControls_CISelectionChangedEventArgs>?) -> SelectionChangedEventArgs? { + 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 _ISelectionChangedEventArgsFactory : __ABI_Microsoft_UI_Xaml_Controls.ISelectionChangedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SelectionChangedEventArgs")) + + public init(_ removedItems: WindowsFoundation.AnyIVector!, _ addedItems: WindowsFoundation.AnyIVector!) { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISelectionChangedEventArgsFactory.CreateInstanceWithRemovedItemsAndAddedItemsImpl(removedItems, addedItems, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.selectionchangedeventargs.addeditems) + public var addedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_AddedItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.selectionchangedeventargs.removeditems) + public var removedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_RemovedItemsImpl() } + } + + internal enum ISelectionChangedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = SelectionChangedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISelectionChangedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISelectionChangedEventArgs + } + } + internal typealias Composable = ISelectionChangedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom) +public final class SemanticZoom : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoom + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom + 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_CXaml_CControls_CISemanticZoom>?) -> SemanticZoom? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.SemanticZoom"))) + } + + private static let _ISemanticZoomStatics: __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SemanticZoom")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.canchangeviewsproperty) + public static var canChangeViewsProperty : WinUI.DependencyProperty! { + get { try! _ISemanticZoomStatics.get_CanChangeViewsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.iszoomoutbuttonenabledproperty) + public static var isZoomOutButtonEnabledProperty : WinUI.DependencyProperty! { + get { try! _ISemanticZoomStatics.get_IsZoomOutButtonEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.iszoomedinviewactiveproperty) + public static var isZoomedInViewActiveProperty : WinUI.DependencyProperty! { + get { try! _ISemanticZoomStatics.get_IsZoomedInViewActivePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.zoomedinviewproperty) + public static var zoomedInViewProperty : WinUI.DependencyProperty! { + get { try! _ISemanticZoomStatics.get_ZoomedInViewPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.zoomedoutviewproperty) + public static var zoomedOutViewProperty : WinUI.DependencyProperty! { + get { try! _ISemanticZoomStatics.get_ZoomedOutViewPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.toggleactiveview) + public func toggleActiveView() throws { + try _default.ToggleActiveViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.canchangeviews) + public var canChangeViews : Bool { + get { try! _default.get_CanChangeViewsImpl() } + set { try! _default.put_CanChangeViewsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.iszoomoutbuttonenabled) + public var isZoomOutButtonEnabled : Bool { + get { try! _default.get_IsZoomOutButtonEnabledImpl() } + set { try! _default.put_IsZoomOutButtonEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.iszoomedinviewactive) + public var isZoomedInViewActive : Bool { + get { try! _default.get_IsZoomedInViewActiveImpl() } + set { try! _default.put_IsZoomedInViewActiveImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.zoomedinview) + public var zoomedInView : AnyISemanticZoomInformation! { + get { try! _default.get_ZoomedInViewImpl() } + set { try! _default.put_ZoomedInViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.zoomedoutview) + public var zoomedOutView : AnyISemanticZoomInformation! { + get { try! _default.get_ZoomedOutViewImpl() } + set { try! _default.put_ZoomedOutViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.viewchangecompleted) + public lazy var viewChangeCompleted : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangeCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangeCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoom.viewchangestarted) + public lazy var viewChangeStarted : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ViewChangeStartedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ViewChangeStartedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = SemanticZoom + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoom + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoom + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomlocation) +public final class SemanticZoomLocation : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomLocation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomLocation + 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_CXaml_CControls_CISemanticZoomLocation>?) -> SemanticZoomLocation? { + 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.Xaml.Controls.SemanticZoomLocation"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomlocation.bounds) + public var bounds : WindowsFoundation.Rect { + get { try! _default.get_BoundsImpl() } + set { try! _default.put_BoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomlocation.item) + public var item : Any! { + get { try! _default.get_ItemImpl() } + set { try! _default.put_ItemImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomviewchangedeventargs) +public final class SemanticZoomViewChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomViewChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISemanticZoomViewChangedEventArgs + 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_CXaml_CControls_CISemanticZoomViewChangedEventArgs>?) -> SemanticZoomViewChangedEventArgs? { + 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.Xaml.Controls.SemanticZoomViewChangedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomviewchangedeventargs.destinationitem) + public var destinationItem : SemanticZoomLocation! { + get { try! _default.get_DestinationItemImpl() } + set { try! _default.put_DestinationItemImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomviewchangedeventargs.issourcezoomedinview) + public var isSourceZoomedInView : Bool { + get { try! _default.get_IsSourceZoomedInViewImpl() } + set { try! _default.put_IsSourceZoomedInViewImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.semanticzoomviewchangedeventargs.sourceitem) + public var sourceItem : SemanticZoomLocation! { + get { try! _default.get_SourceItemImpl() } + set { try! _default.put_SourceItemImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider) +open class Slider : WinUI.RangeBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISlider + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider + 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_CXaml_CControls_CISlider>?) -> Slider? { + 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 _ISliderFactory : __ABI_Microsoft_UI_Xaml_Controls.ISliderFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Slider")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISliderFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ISliderStatics: __ABI_Microsoft_UI_Xaml_Controls.ISliderStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.Slider")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.headerproperty) + public class var headerProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.headertemplateproperty) + public class var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.intermediatevalueproperty) + public class var intermediateValueProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_IntermediateValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.isdirectionreversedproperty) + public class var isDirectionReversedProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_IsDirectionReversedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.isthumbtooltipenabledproperty) + public class var isThumbToolTipEnabledProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_IsThumbToolTipEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.orientationproperty) + public class var orientationProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_OrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.snapstoproperty) + public class var snapsToProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_SnapsToPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.stepfrequencyproperty) + public class var stepFrequencyProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_StepFrequencyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.thumbtooltipvalueconverterproperty) + public class var thumbToolTipValueConverterProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_ThumbToolTipValueConverterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.tickfrequencyproperty) + public class var tickFrequencyProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_TickFrequencyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.tickplacementproperty) + public class var tickPlacementProperty : WinUI.DependencyProperty! { + get { try! _ISliderStatics.get_TickPlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.intermediatevalue) + public var intermediateValue : Double { + get { try! _default.get_IntermediateValueImpl() } + set { try! _default.put_IntermediateValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.isdirectionreversed) + public var isDirectionReversed : Bool { + get { try! _default.get_IsDirectionReversedImpl() } + set { try! _default.put_IsDirectionReversedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.isthumbtooltipenabled) + public var isThumbToolTipEnabled : Bool { + get { try! _default.get_IsThumbToolTipEnabledImpl() } + set { try! _default.put_IsThumbToolTipEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.orientation) + public var orientation : Orientation { + 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.xaml.controls.slider.snapsto) + public var snapsTo : WinUI.SliderSnapsTo { + get { try! _default.get_SnapsToImpl() } + set { try! _default.put_SnapsToImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.stepfrequency) + public var stepFrequency : Double { + get { try! _default.get_StepFrequencyImpl() } + set { try! _default.put_StepFrequencyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.thumbtooltipvalueconverter) + public var thumbToolTipValueConverter : WinUI.AnyIValueConverter! { + get { try! _default.get_ThumbToolTipValueConverterImpl() } + set { try! _default.put_ThumbToolTipValueConverterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.tickfrequency) + public var tickFrequency : Double { + get { try! _default.get_TickFrequencyImpl() } + set { try! _default.put_TickFrequencyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.slider.tickplacement) + public var tickPlacement : WinUI.TickPlacement { + get { try! _default.get_TickPlacementImpl() } + set { try! _default.put_TickPlacementImpl(newValue) } + } + + internal enum IRangeBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CIRangeBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IRangeBaseOverrides + internal typealias Class = Slider + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISlider + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISlider + } + } + internal typealias Composable = IRangeBaseOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview) +open class SplitView : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISplitView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView + 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_CXaml_CControls_CISplitView>?) -> SplitView? { + 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 _ISplitViewFactory : __ABI_Microsoft_UI_Xaml_Controls.ISplitViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SplitView")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISplitViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ISplitViewStatics: __ABI_Microsoft_UI_Xaml_Controls.ISplitViewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SplitView")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.compactpanelengthproperty) + public class var compactPaneLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_CompactPaneLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.displaymodeproperty) + public class var displayModeProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_DisplayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.ispaneopenproperty) + public class var isPaneOpenProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_IsPaneOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.lightdismissoverlaymodeproperty) + public class var lightDismissOverlayModeProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_LightDismissOverlayModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.openpanelengthproperty) + public class var openPaneLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_OpenPaneLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.panebackgroundproperty) + public class var paneBackgroundProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_PaneBackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneplacementproperty) + public class var panePlacementProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_PanePlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneproperty) + public class var paneProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_PanePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.templatesettingsproperty) + public class var templateSettingsProperty : WinUI.DependencyProperty! { + get { try! _ISplitViewStatics.get_TemplateSettingsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.compactpanelength) + public var compactPaneLength : Double { + get { try! _default.get_CompactPaneLengthImpl() } + set { try! _default.put_CompactPaneLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.displaymode) + public var displayMode : SplitViewDisplayMode { + get { try! _default.get_DisplayModeImpl() } + set { try! _default.put_DisplayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.ispaneopen) + public var isPaneOpen : Bool { + get { try! _default.get_IsPaneOpenImpl() } + set { try! _default.put_IsPaneOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.lightdismissoverlaymode) + public var lightDismissOverlayMode : LightDismissOverlayMode { + get { try! _default.get_LightDismissOverlayModeImpl() } + set { try! _default.put_LightDismissOverlayModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.openpanelength) + public var openPaneLength : Double { + get { try! _default.get_OpenPaneLengthImpl() } + set { try! _default.put_OpenPaneLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.pane) + public var pane : WinUI.UIElement! { + get { try! _default.get_PaneImpl() } + set { try! _default.put_PaneImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.panebackground) + public var paneBackground : WinUI.Brush! { + get { try! _default.get_PaneBackgroundImpl() } + set { try! _default.put_PaneBackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneplacement) + public var panePlacement : SplitViewPanePlacement { + get { try! _default.get_PanePlacementImpl() } + set { try! _default.put_PanePlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.templatesettings) + public var templateSettings : WinUI.SplitViewTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneclosed) + public lazy var paneClosed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PaneClosedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PaneClosedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneclosing) + public lazy var paneClosing : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PaneClosingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PaneClosingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneopened) + public lazy var paneOpened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PaneOpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PaneOpenedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitview.paneopening) + public lazy var paneOpening : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PaneOpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PaneOpeningImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = SplitView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISplitView + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.splitviewpaneclosingeventargs) +public final class SplitViewPaneClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISplitViewPaneClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISplitViewPaneClosingEventArgs + 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_CXaml_CControls_CISplitViewPaneClosingEventArgs>?) -> SplitViewPaneClosingEventArgs? { + 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.xaml.controls.splitviewpaneclosingeventargs.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.xaml.controls.stacklayout) +open class StackLayout : WinUI.VirtualizingLayout { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStackLayout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout + 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_CXaml_CControls_CIStackLayout>?) -> StackLayout? { + 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 _IStackLayoutFactory : __ABI_Microsoft_UI_Xaml_Controls.IStackLayoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.StackLayout")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IStackLayoutFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IStackLayoutStatics: __ABI_Microsoft_UI_Xaml_Controls.IStackLayoutStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.StackLayout")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stacklayout.orientationproperty) + public class var orientationProperty : WinUI.DependencyProperty! { + get { try! _IStackLayoutStatics.get_OrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stacklayout.spacingproperty) + public class var spacingProperty : WinUI.DependencyProperty! { + get { try! _IStackLayoutStatics.get_SpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stacklayout.orientation) + public var orientation : Orientation { + 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.xaml.controls.stacklayout.spacing) + public var spacing : Double { + get { try! _default.get_SpacingImpl() } + set { try! _default.put_SpacingImpl(newValue) } + } + + internal enum IVirtualizingLayoutOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverrides + internal typealias Class = StackLayout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackLayout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStackLayout + } + } + internal typealias Composable = IVirtualizingLayoutOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel) +open class StackPanel : WinUI.Panel, WinUI.IScrollSnapPointsInfo, IInsertionPanel { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStackPanel + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel + 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_CXaml_CControls_CIStackPanel>?) -> StackPanel? { + 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 _IStackPanelFactory : __ABI_Microsoft_UI_Xaml_Controls.IStackPanelFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.StackPanel")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IStackPanelFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IStackPanelStatics: __ABI_Microsoft_UI_Xaml_Controls.IStackPanelStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.StackPanel")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.arescrollsnappointsregularproperty) + public class var areScrollSnapPointsRegularProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_AreScrollSnapPointsRegularPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.backgroundsizingproperty) + public class var backgroundSizingProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_BackgroundSizingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.borderbrushproperty) + public class var borderBrushProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_BorderBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.borderthicknessproperty) + public class var borderThicknessProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_BorderThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.cornerradiusproperty) + public class var cornerRadiusProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_CornerRadiusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.orientationproperty) + public class var orientationProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_OrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.paddingproperty) + public class var paddingProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.spacingproperty) + public class var spacingProperty : WinUI.DependencyProperty! { + get { try! _IStackPanelStatics.get_SpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.arescrollsnappointsregular) + public var areScrollSnapPointsRegular : Bool { + get { try! _default.get_AreScrollSnapPointsRegularImpl() } + set { try! _default.put_AreScrollSnapPointsRegularImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.backgroundsizing) + public var backgroundSizing : BackgroundSizing { + get { try! _default.get_BackgroundSizingImpl() } + set { try! _default.put_BackgroundSizingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.borderbrush) + public var borderBrush : WinUI.Brush! { + get { try! _default.get_BorderBrushImpl() } + set { try! _default.put_BorderBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.borderthickness) + public var borderThickness : WinUI.Thickness { + get { try! _default.get_BorderThicknessImpl() } + set { try! _default.put_BorderThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.cornerradius) + public var cornerRadius : WinUI.CornerRadius { + 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.xaml.controls.stackpanel.orientation) + public var orientation : Orientation { + 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.xaml.controls.stackpanel.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.spacing) + public var spacing : Double { + get { try! _default.get_SpacingImpl() } + set { try! _default.put_SpacingImpl(newValue) } + } + + private lazy var _IScrollSnapPointsInfo: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfo! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.getirregularsnappoints) + public func getIrregularSnapPoints(_ orientation: Orientation, _ alignment: WinUI.SnapPointsAlignment) throws -> WindowsFoundation.AnyIVectorView! { + try _IScrollSnapPointsInfo.GetIrregularSnapPointsImpl(orientation, alignment) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.getregularsnappoints) + public func getRegularSnapPoints(_ orientation: Orientation, _ alignment: WinUI.SnapPointsAlignment, _ offset: inout Float) throws -> Float { + try _IScrollSnapPointsInfo.GetRegularSnapPointsImpl(orientation, alignment, &offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.arehorizontalsnappointsregular) + public var areHorizontalSnapPointsRegular : Bool { + get { try! _IScrollSnapPointsInfo.get_AreHorizontalSnapPointsRegularImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.areverticalsnappointsregular) + public var areVerticalSnapPointsRegular : Bool { + get { try! _IScrollSnapPointsInfo.get_AreVerticalSnapPointsRegularImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.horizontalsnappointschanged) + public lazy var horizontalSnapPointsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IScrollSnapPointsInfo else { return .init() } + return try! this.add_HorizontalSnapPointsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._IScrollSnapPointsInfo.remove_HorizontalSnapPointsChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.verticalsnappointschanged) + public lazy var verticalSnapPointsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IScrollSnapPointsInfo else { return .init() } + return try! this.add_VerticalSnapPointsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._IScrollSnapPointsInfo.remove_VerticalSnapPointsChangedImpl($0) + } + ) + }() + + private lazy var _IInsertionPanel: __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanel! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.getinsertionindexes) + public func getInsertionIndexes(_ position: WindowsFoundation.Point, _ first: inout Int32, _ second: inout Int32) throws { + try _IInsertionPanel.GetInsertionIndexesImpl(position, &first, &second) + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = StackPanel + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStackPanel + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStackPanel + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + _IScrollSnapPointsInfo = nil + _IInsertionPanel = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.styleselector) +open class StyleSelector : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStyleSelector + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelector + 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_CXaml_CControls_CIStyleSelector>?) -> StyleSelector? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IStyleSelectorFactory : __ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.StyleSelector")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IStyleSelectorFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.styleselector.selectstyle) + public func selectStyle(_ item: Any!, _ container: WinUI.DependencyObject!) throws -> WinUI.Style! { + try _default.SelectStyleImpl(item, container) + } + + private lazy var _IStyleSelectorOverrides: __ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.styleselector.selectstylecore) + open func selectStyleCore(_ item: Any!, _ container: WinUI.DependencyObject!) throws -> WinUI.Style! { + try _IStyleSelectorOverrides.SelectStyleCoreImpl(item, container) + } + + internal enum IStyleSelectorOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelectorOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStyleSelectorOverrides + internal typealias Class = StyleSelector + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIStyleSelector + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IStyleSelector + } + } + internal typealias Composable = IStyleSelectorOverrides + deinit { + _default = nil + _IStyleSelectorOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel) +open class SwapChainPanel : WinUI.Grid { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISwapChainPanel + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel + 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_CXaml_CControls_CISwapChainPanel>?) -> SwapChainPanel? { + 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 _ISwapChainPanelFactory : __ABI_Microsoft_UI_Xaml_Controls.ISwapChainPanelFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SwapChainPanel")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISwapChainPanelFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ISwapChainPanelStatics: __ABI_Microsoft_UI_Xaml_Controls.ISwapChainPanelStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.SwapChainPanel")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.compositionscalexproperty) + public class var compositionScaleXProperty : WinUI.DependencyProperty! { + get { try! _ISwapChainPanelStatics.get_CompositionScaleXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.compositionscaleyproperty) + public class var compositionScaleYProperty : WinUI.DependencyProperty! { + get { try! _ISwapChainPanelStatics.get_CompositionScaleYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.createcoreindependentinputsource) + public func createCoreIndependentInputSource(_ deviceKinds: WinAppSDK.InputPointerSourceDeviceKinds) throws -> WinAppSDK.InputPointerSource! { + try _default.CreateCoreIndependentInputSourceImpl(deviceKinds) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.compositionscalex) + public var compositionScaleX : Float { + get { try! _default.get_CompositionScaleXImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.compositionscaley) + public var compositionScaleY : Float { + get { try! _default.get_CompositionScaleYImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.swapchainpanel.compositionscalechanged) + public lazy var compositionScaleChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CompositionScaleChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CompositionScaleChangedImpl($0) + } + ) + }() + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = SwapChainPanel + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CISwapChainPanel + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ISwapChainPanel + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip) +open class TeachingTip : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip + 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_CXaml_CControls_CITeachingTip>?) -> TeachingTip? { + 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 _ITeachingTipFactory : __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TeachingTip")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITeachingTipFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITeachingTipStatics: __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TeachingTip")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncommandparameterproperty) + public class var actionButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_ActionButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncommandproperty) + public class var actionButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_ActionButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncontentproperty) + public class var actionButtonContentProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_ActionButtonContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttonstyleproperty) + public class var actionButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_ActionButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncommandparameterproperty) + public class var closeButtonCommandParameterProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_CloseButtonCommandParameterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncommandproperty) + public class var closeButtonCommandProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_CloseButtonCommandPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncontentproperty) + public class var closeButtonContentProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_CloseButtonContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttonstyleproperty) + public class var closeButtonStyleProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_CloseButtonStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.herocontentplacementproperty) + public class var heroContentPlacementProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_HeroContentPlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.herocontentproperty) + public class var heroContentProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_HeroContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.iconsourceproperty) + public class var iconSourceProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_IconSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.islightdismissenabledproperty) + public class var isLightDismissEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_IsLightDismissEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.isopenproperty) + public class var isOpenProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.placementmarginproperty) + public class var placementMarginProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_PlacementMarginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.preferredplacementproperty) + public class var preferredPlacementProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_PreferredPlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.shouldconstraintorootboundsproperty) + public class var shouldConstrainToRootBoundsProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_ShouldConstrainToRootBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.subtitleproperty) + public class var subtitleProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_SubtitlePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.tailvisibilityproperty) + public class var tailVisibilityProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_TailVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.targetproperty) + public class var targetProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_TargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.templatesettingsproperty) + public class var templateSettingsProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_TemplateSettingsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.titleproperty) + public class var titleProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipStatics.get_TitlePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncommand) + public var actionButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_ActionButtonCommandImpl() } + set { try! _default.put_ActionButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncommandparameter) + public var actionButtonCommandParameter : Any! { + get { try! _default.get_ActionButtonCommandParameterImpl() } + set { try! _default.put_ActionButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttoncontent) + public var actionButtonContent : Any! { + get { try! _default.get_ActionButtonContentImpl() } + set { try! _default.put_ActionButtonContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.actionbuttonstyle) + public var actionButtonStyle : WinUI.Style! { + get { try! _default.get_ActionButtonStyleImpl() } + set { try! _default.put_ActionButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncommand) + public var closeButtonCommand : WinUI.AnyICommand! { + get { try! _default.get_CloseButtonCommandImpl() } + set { try! _default.put_CloseButtonCommandImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncommandparameter) + public var closeButtonCommandParameter : Any! { + get { try! _default.get_CloseButtonCommandParameterImpl() } + set { try! _default.put_CloseButtonCommandParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttoncontent) + public var closeButtonContent : Any! { + get { try! _default.get_CloseButtonContentImpl() } + set { try! _default.put_CloseButtonContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttonstyle) + public var closeButtonStyle : WinUI.Style! { + get { try! _default.get_CloseButtonStyleImpl() } + set { try! _default.put_CloseButtonStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.herocontent) + public var heroContent : WinUI.UIElement! { + get { try! _default.get_HeroContentImpl() } + set { try! _default.put_HeroContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.herocontentplacement) + public var heroContentPlacement : TeachingTipHeroContentPlacementMode { + get { try! _default.get_HeroContentPlacementImpl() } + set { try! _default.put_HeroContentPlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.iconsource) + public var iconSource : IconSource! { + get { try! _default.get_IconSourceImpl() } + set { try! _default.put_IconSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.islightdismissenabled) + public var isLightDismissEnabled : Bool { + get { try! _default.get_IsLightDismissEnabledImpl() } + set { try! _default.put_IsLightDismissEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + set { try! _default.put_IsOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.placementmargin) + public var placementMargin : WinUI.Thickness { + get { try! _default.get_PlacementMarginImpl() } + set { try! _default.put_PlacementMarginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.preferredplacement) + public var preferredPlacement : TeachingTipPlacementMode { + get { try! _default.get_PreferredPlacementImpl() } + set { try! _default.put_PreferredPlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.shouldconstraintorootbounds) + public var shouldConstrainToRootBounds : Bool { + get { try! _default.get_ShouldConstrainToRootBoundsImpl() } + set { try! _default.put_ShouldConstrainToRootBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.subtitle) + public var subtitle : String { + get { try! _default.get_SubtitleImpl() } + set { try! _default.put_SubtitleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.tailvisibility) + public var tailVisibility : TeachingTipTailVisibility { + get { try! _default.get_TailVisibilityImpl() } + set { try! _default.put_TailVisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.target) + public var target : WinUI.FrameworkElement! { + get { try! _default.get_TargetImpl() } + set { try! _default.put_TargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.templatesettings) + public var templateSettings : TeachingTipTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.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.xaml.controls.teachingtip.actionbuttonclick) + public lazy var actionButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ActionButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ActionButtonClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closebuttonclick) + public lazy var closeButtonClick : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CloseButtonClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CloseButtonClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtip.closed) + public 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.xaml.controls.teachingtip.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) + } + ) + }() + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = TeachingTip + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTip + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTip + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipclosedeventargs) +public final class TeachingTipClosedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipClosedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosedEventArgs + 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_CXaml_CControls_CITeachingTipClosedEventArgs>?) -> TeachingTipClosedEventArgs? { + 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.xaml.controls.teachingtipclosedeventargs.reason) + public var reason : TeachingTipCloseReason { + get { try! _default.get_ReasonImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipclosingeventargs) +public final class TeachingTipClosingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipClosingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipClosingEventArgs + 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_CXaml_CControls_CITeachingTipClosingEventArgs>?) -> TeachingTipClosingEventArgs? { + 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.xaml.controls.teachingtipclosingeventargs.getdeferral) + public func getDeferral() throws -> WindowsFoundation.Deferral! { + try _default.GetDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipclosingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtipclosingeventargs.reason) + public var reason : TeachingTipCloseReason { + get { try! _default.get_ReasonImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings) +open class TeachingTipTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings + 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_CXaml_CControls_CITeachingTipTemplateSettings>?) -> TeachingTipTemplateSettings? { + 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 _ITeachingTipTemplateSettingsFactory : __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipTemplateSettingsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TeachingTipTemplateSettings")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITeachingTipTemplateSettingsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITeachingTipTemplateSettingsStatics: __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipTemplateSettingsStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TeachingTipTemplateSettings")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.iconelementproperty) + public class var iconElementProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipTemplateSettingsStatics.get_IconElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.toplefthighlightmarginproperty) + public class var topLeftHighlightMarginProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipTemplateSettingsStatics.get_TopLeftHighlightMarginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.toprighthighlightmarginproperty) + public class var topRightHighlightMarginProperty : WinUI.DependencyProperty! { + get { try! _ITeachingTipTemplateSettingsStatics.get_TopRightHighlightMarginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.iconelement) + public var iconElement : IconElement! { + get { try! _default.get_IconElementImpl() } + set { try! _default.put_IconElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.toplefthighlightmargin) + public var topLeftHighlightMargin : WinUI.Thickness { + get { try! _default.get_TopLeftHighlightMarginImpl() } + set { try! _default.put_TopLeftHighlightMarginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.teachingtiptemplatesettings.toprighthighlightmargin) + public var topRightHighlightMargin : WinUI.Thickness { + get { try! _default.get_TopRightHighlightMarginImpl() } + set { try! _default.put_TopRightHighlightMarginImpl(newValue) } + } + + internal enum ITeachingTipTemplateSettings : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TeachingTipTemplateSettings + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITeachingTipTemplateSettings + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITeachingTipTemplateSettings + } + } + internal typealias Composable = ITeachingTipTemplateSettings + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock) +public final class TextBlock : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBlock + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock + 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_CXaml_CControls_CITextBlock>?) -> TextBlock? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.TextBlock"))) + } + + private static let _ITextBlockStatics: __ABI_Microsoft_UI_Xaml_Controls.ITextBlockStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TextBlock")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.characterspacingproperty) + public static var characterSpacingProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_CharacterSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontfamilyproperty) + public static var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontsizeproperty) + public static var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontstretchproperty) + public static var fontStretchProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_FontStretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontstyleproperty) + public static var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontweightproperty) + public static var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.foregroundproperty) + public static var foregroundProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.horizontaltextalignmentproperty) + public static var horizontalTextAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_HorizontalTextAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.iscolorfontenabledproperty) + public static var isColorFontEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_IsColorFontEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istextscalefactorenabledproperty) + public static var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istextselectionenabledproperty) + public static var isTextSelectionEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_IsTextSelectionEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istexttrimmedproperty) + public static var isTextTrimmedProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_IsTextTrimmedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.lineheightproperty) + public static var lineHeightProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_LineHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.linestackingstrategyproperty) + public static var lineStackingStrategyProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_LineStackingStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.maxlinesproperty) + public static var maxLinesProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_MaxLinesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.opticalmarginalignmentproperty) + public static var opticalMarginAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_OpticalMarginAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.paddingproperty) + public static var paddingProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_PaddingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectedtextproperty) + public static var selectedTextProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_SelectedTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionflyoutproperty) + public static var selectionFlyoutProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_SelectionFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionhighlightcolorproperty) + public static var selectionHighlightColorProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_SelectionHighlightColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textalignmentproperty) + public static var textAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textdecorationsproperty) + public static var textDecorationsProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextDecorationsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textlineboundsproperty) + public static var textLineBoundsProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextLineBoundsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textproperty) + public static var textProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textreadingorderproperty) + public static var textReadingOrderProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextReadingOrderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.texttrimmingproperty) + public static var textTrimmingProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextTrimmingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textwrappingproperty) + public static var textWrappingProperty : WinUI.DependencyProperty! { + get { try! _ITextBlockStatics.get_TextWrappingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.select) + public func select(_ start: WinUI.TextPointer!, _ end: WinUI.TextPointer!) throws { + try _default.SelectImpl(start, end) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.getalphamask) + public func getAlphaMask() throws -> WinAppSDK.CompositionBrush! { + try _default.GetAlphaMaskImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.copyselectiontoclipboard) + public func copySelectionToClipboard() throws { + try _default.CopySelectionToClipboardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.baselineoffset) + public var baselineOffset : Double { + get { try! _default.get_BaselineOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.characterspacing) + public var characterSpacing : Int32 { + get { try! _default.get_CharacterSpacingImpl() } + set { try! _default.put_CharacterSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.contentend) + public var contentEnd : WinUI.TextPointer! { + get { try! _default.get_ContentEndImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.contentstart) + public var contentStart : WinUI.TextPointer! { + get { try! _default.get_ContentStartImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontstretch) + public var fontStretch : UWP.FontStretch { + get { try! _default.get_FontStretchImpl() } + set { try! _default.put_FontStretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.horizontaltextalignment) + public var horizontalTextAlignment : WinUI.TextAlignment { + get { try! _default.get_HorizontalTextAlignmentImpl() } + set { try! _default.put_HorizontalTextAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.inlines) + public var inlines : WinUI.InlineCollection! { + get { try! _default.get_InlinesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.iscolorfontenabled) + public var isColorFontEnabled : Bool { + get { try! _default.get_IsColorFontEnabledImpl() } + set { try! _default.put_IsColorFontEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istextselectionenabled) + public var isTextSelectionEnabled : Bool { + get { try! _default.get_IsTextSelectionEnabledImpl() } + set { try! _default.put_IsTextSelectionEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istexttrimmed) + public var isTextTrimmed : Bool { + get { try! _default.get_IsTextTrimmedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.lineheight) + public var lineHeight : Double { + get { try! _default.get_LineHeightImpl() } + set { try! _default.put_LineHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.linestackingstrategy) + public var lineStackingStrategy : WinUI.LineStackingStrategy { + get { try! _default.get_LineStackingStrategyImpl() } + set { try! _default.put_LineStackingStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.maxlines) + public var maxLines : Int32 { + get { try! _default.get_MaxLinesImpl() } + set { try! _default.put_MaxLinesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.opticalmarginalignment) + public var opticalMarginAlignment : WinUI.OpticalMarginAlignment { + get { try! _default.get_OpticalMarginAlignmentImpl() } + set { try! _default.put_OpticalMarginAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.padding) + public var padding : WinUI.Thickness { + get { try! _default.get_PaddingImpl() } + set { try! _default.put_PaddingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectedtext) + public var selectedText : String { + get { try! _default.get_SelectedTextImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionend) + public var selectionEnd : WinUI.TextPointer! { + get { try! _default.get_SelectionEndImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionflyout) + public var selectionFlyout : WinUI.FlyoutBase! { + get { try! _default.get_SelectionFlyoutImpl() } + set { try! _default.put_SelectionFlyoutImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionhighlightcolor) + public var selectionHighlightColor : WinUI.SolidColorBrush! { + get { try! _default.get_SelectionHighlightColorImpl() } + set { try! _default.put_SelectionHighlightColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionstart) + public var selectionStart : WinUI.TextPointer! { + get { try! _default.get_SelectionStartImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textalignment) + public var textAlignment : WinUI.TextAlignment { + get { try! _default.get_TextAlignmentImpl() } + set { try! _default.put_TextAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textdecorations) + public var textDecorations : UWP.TextDecorations { + get { try! _default.get_TextDecorationsImpl() } + set { try! _default.put_TextDecorationsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.texthighlighters) + public var textHighlighters : WindowsFoundation.AnyIVector! { + get { try! _default.get_TextHighlightersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textlinebounds) + public var textLineBounds : WinUI.TextLineBounds { + get { try! _default.get_TextLineBoundsImpl() } + set { try! _default.put_TextLineBoundsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textreadingorder) + public var textReadingOrder : WinUI.TextReadingOrder { + get { try! _default.get_TextReadingOrderImpl() } + set { try! _default.put_TextReadingOrderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.texttrimming) + public var textTrimming : WinUI.TextTrimming { + get { try! _default.get_TextTrimmingImpl() } + set { try! _default.put_TextTrimmingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textwrapping) + public var textWrapping : WinUI.TextWrapping { + get { try! _default.get_TextWrappingImpl() } + set { try! _default.put_TextWrappingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.contextmenuopening) + public lazy var contextMenuOpening : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContextMenuOpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContextMenuOpeningImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istexttrimmedchanged) + public lazy var isTextTrimmedChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_IsTextTrimmedChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_IsTextTrimmedChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.selectionchanged) + public lazy var selectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectionChangedImpl($0) + } + ) + }() + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = TextBlock + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBlock + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBlock + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox) +open class TextBox : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBox + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox + 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_CXaml_CControls_CITextBox>?) -> TextBox? { + 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 _ITextBoxFactory : __ABI_Microsoft_UI_Xaml_Controls.ITextBoxFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TextBox")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITextBoxFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITextBoxStatics: __ABI_Microsoft_UI_Xaml_Controls.ITextBoxStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TextBox")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.acceptsreturnproperty) + public class var acceptsReturnProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_AcceptsReturnPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canpasteclipboardcontentproperty) + public class var canPasteClipboardContentProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_CanPasteClipboardContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canredoproperty) + public class var canRedoProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_CanRedoPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canundoproperty) + public class var canUndoProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_CanUndoPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.charactercasingproperty) + public class var characterCasingProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_CharacterCasingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.descriptionproperty) + public class var descriptionProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_DescriptionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.desiredcandidatewindowalignmentproperty) + public class var desiredCandidateWindowAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_DesiredCandidateWindowAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.headerproperty) + public class var headerProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.headertemplateproperty) + public class var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.horizontaltextalignmentproperty) + public class var horizontalTextAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_HorizontalTextAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.inputscopeproperty) + public class var inputScopeProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_InputScopePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.iscolorfontenabledproperty) + public class var isColorFontEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_IsColorFontEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.isreadonlyproperty) + public class var isReadOnlyProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_IsReadOnlyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.isspellcheckenabledproperty) + public class var isSpellCheckEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_IsSpellCheckEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.istextpredictionenabledproperty) + public class var isTextPredictionEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_IsTextPredictionEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.maxlengthproperty) + public class var maxLengthProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_MaxLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.placeholderforegroundproperty) + public class var placeholderForegroundProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_PlaceholderForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.placeholdertextproperty) + public class var placeholderTextProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_PlaceholderTextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.preventkeyboarddisplayonprogrammaticfocusproperty) + public class var preventKeyboardDisplayOnProgrammaticFocusProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_PreventKeyboardDisplayOnProgrammaticFocusPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.proofingmenuflyoutproperty) + public class var proofingMenuFlyoutProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_ProofingMenuFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionflyoutproperty) + public class var selectionFlyoutProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_SelectionFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionhighlightcolorproperty) + public class var selectionHighlightColorProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_SelectionHighlightColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionhighlightcolorwhennotfocusedproperty) + public class var selectionHighlightColorWhenNotFocusedProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_SelectionHighlightColorWhenNotFocusedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textalignmentproperty) + public class var textAlignmentProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_TextAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textproperty) + public class var textProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_TextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textreadingorderproperty) + public class var textReadingOrderProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_TextReadingOrderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textwrappingproperty) + public class var textWrappingProperty : WinUI.DependencyProperty! { + get { try! _ITextBoxStatics.get_TextWrappingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.select) + public func select(_ start: Int32, _ length: Int32) throws { + try _default.SelectImpl(start, length) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.getrectfromcharacterindex) + public func getRectFromCharacterIndex(_ charIndex: Int32, _ trailingEdge: Bool) throws -> WindowsFoundation.Rect { + try _default.GetRectFromCharacterIndexImpl(charIndex, trailingEdge) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.getlinguisticalternativesasync) + public func getLinguisticAlternativesAsync() throws -> WindowsFoundation.AnyIAsyncOperation?>! { + try _default.GetLinguisticAlternativesAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.undo) + public func undo() throws { + try _default.UndoImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.redo) + public func redo() throws { + try _default.RedoImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.pastefromclipboard) + public func pasteFromClipboard() throws { + try _default.PasteFromClipboardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.copyselectiontoclipboard) + public func copySelectionToClipboard() throws { + try _default.CopySelectionToClipboardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.cutselectiontoclipboard) + public func cutSelectionToClipboard() throws { + try _default.CutSelectionToClipboardImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.clearundoredohistory) + public func clearUndoRedoHistory() throws { + try _default.ClearUndoRedoHistoryImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.acceptsreturn) + public var acceptsReturn : Bool { + get { try! _default.get_AcceptsReturnImpl() } + set { try! _default.put_AcceptsReturnImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canpasteclipboardcontent) + public var canPasteClipboardContent : Bool { + get { try! _default.get_CanPasteClipboardContentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canredo) + public var canRedo : Bool { + get { try! _default.get_CanRedoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.canundo) + public var canUndo : Bool { + get { try! _default.get_CanUndoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.charactercasing) + public var characterCasing : CharacterCasing { + get { try! _default.get_CharacterCasingImpl() } + set { try! _default.put_CharacterCasingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.description) + public var description : Any! { + get { try! _default.get_DescriptionImpl() } + set { try! _default.put_DescriptionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.desiredcandidatewindowalignment) + public var desiredCandidateWindowAlignment : CandidateWindowAlignment { + get { try! _default.get_DesiredCandidateWindowAlignmentImpl() } + set { try! _default.put_DesiredCandidateWindowAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.horizontaltextalignment) + public var horizontalTextAlignment : WinUI.TextAlignment { + get { try! _default.get_HorizontalTextAlignmentImpl() } + set { try! _default.put_HorizontalTextAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.inputscope) + public var inputScope : WinUI.InputScope! { + get { try! _default.get_InputScopeImpl() } + set { try! _default.put_InputScopeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.iscolorfontenabled) + public var isColorFontEnabled : Bool { + get { try! _default.get_IsColorFontEnabledImpl() } + set { try! _default.put_IsColorFontEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.isreadonly) + public var isReadOnly : Bool { + get { try! _default.get_IsReadOnlyImpl() } + set { try! _default.put_IsReadOnlyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.isspellcheckenabled) + public var isSpellCheckEnabled : Bool { + get { try! _default.get_IsSpellCheckEnabledImpl() } + set { try! _default.put_IsSpellCheckEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.istextpredictionenabled) + public var isTextPredictionEnabled : Bool { + get { try! _default.get_IsTextPredictionEnabledImpl() } + set { try! _default.put_IsTextPredictionEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.maxlength) + public var maxLength : Int32 { + get { try! _default.get_MaxLengthImpl() } + set { try! _default.put_MaxLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.placeholderforeground) + public var placeholderForeground : WinUI.Brush! { + get { try! _default.get_PlaceholderForegroundImpl() } + set { try! _default.put_PlaceholderForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.placeholdertext) + public var placeholderText : String { + get { try! _default.get_PlaceholderTextImpl() } + set { try! _default.put_PlaceholderTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.preventkeyboarddisplayonprogrammaticfocus) + public var preventKeyboardDisplayOnProgrammaticFocus : Bool { + get { try! _default.get_PreventKeyboardDisplayOnProgrammaticFocusImpl() } + set { try! _default.put_PreventKeyboardDisplayOnProgrammaticFocusImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.proofingmenuflyout) + public var proofingMenuFlyout : WinUI.FlyoutBase! { + get { try! _default.get_ProofingMenuFlyoutImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectedtext) + public var selectedText : String { + get { try! _default.get_SelectedTextImpl() } + set { try! _default.put_SelectedTextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionflyout) + public var selectionFlyout : WinUI.FlyoutBase! { + get { try! _default.get_SelectionFlyoutImpl() } + set { try! _default.put_SelectionFlyoutImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionhighlightcolor) + public var selectionHighlightColor : WinUI.SolidColorBrush! { + get { try! _default.get_SelectionHighlightColorImpl() } + set { try! _default.put_SelectionHighlightColorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionhighlightcolorwhennotfocused) + public var selectionHighlightColorWhenNotFocused : WinUI.SolidColorBrush! { + get { try! _default.get_SelectionHighlightColorWhenNotFocusedImpl() } + set { try! _default.put_SelectionHighlightColorWhenNotFocusedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionlength) + public var selectionLength : Int32 { + get { try! _default.get_SelectionLengthImpl() } + set { try! _default.put_SelectionLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionstart) + public var selectionStart : Int32 { + get { try! _default.get_SelectionStartImpl() } + set { try! _default.put_SelectionStartImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textalignment) + public var textAlignment : WinUI.TextAlignment { + get { try! _default.get_TextAlignmentImpl() } + set { try! _default.put_TextAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textreadingorder) + public var textReadingOrder : WinUI.TextReadingOrder { + get { try! _default.get_TextReadingOrderImpl() } + set { try! _default.put_TextReadingOrderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textwrapping) + public var textWrapping : WinUI.TextWrapping { + get { try! _default.get_TextWrappingImpl() } + set { try! _default.put_TextWrappingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.beforetextchanging) + public lazy var beforeTextChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_BeforeTextChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_BeforeTextChangingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.candidatewindowboundschanged) + public lazy var candidateWindowBoundsChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CandidateWindowBoundsChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CandidateWindowBoundsChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.contextmenuopening) + public lazy var contextMenuOpening : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContextMenuOpeningImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContextMenuOpeningImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.copyingtoclipboard) + public lazy var copyingToClipboard : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CopyingToClipboardImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CopyingToClipboardImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.cuttingtoclipboard) + public lazy var cuttingToClipboard : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CuttingToClipboardImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CuttingToClipboardImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.paste) + public lazy var paste : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PasteImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PasteImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionchanged) + public lazy var selectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectionChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.selectionchanging) + public lazy var selectionChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SelectionChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SelectionChangingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textchanged) + public lazy var textChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textchanging) + public lazy var textChanging : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextChangingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextChangingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textcompositionchanged) + public lazy var textCompositionChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextCompositionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextCompositionChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textcompositionended) + public lazy var textCompositionEnded : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextCompositionEndedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextCompositionEndedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textcompositionstarted) + public lazy var textCompositionStarted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TextCompositionStartedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TextCompositionStartedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = TextBox + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBox + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBox + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxbeforetextchangingeventargs) +public final class TextBoxBeforeTextChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBoxBeforeTextChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs + 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_CXaml_CControls_CITextBoxBeforeTextChangingEventArgs>?) -> TextBoxBeforeTextChangingEventArgs? { + 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.xaml.controls.textboxbeforetextchangingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxbeforetextchangingeventargs.newtext) + public var newText : String { + get { try! _default.get_NewTextImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxselectionchangingeventargs) +public final class TextBoxSelectionChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBoxSelectionChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxSelectionChangingEventArgs + 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_CXaml_CControls_CITextBoxSelectionChangingEventArgs>?) -> TextBoxSelectionChangingEventArgs? { + 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.xaml.controls.textboxselectionchangingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxselectionchangingeventargs.selectionlength) + public var selectionLength : Int32 { + get { try! _default.get_SelectionLengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxselectionchangingeventargs.selectionstart) + public var selectionStart : Int32 { + get { try! _default.get_SelectionStartImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textboxtextchangingeventargs) +public final class TextBoxTextChangingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextBoxTextChangingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextBoxTextChangingEventArgs + 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_CXaml_CControls_CITextBoxTextChangingEventArgs>?) -> TextBoxTextChangingEventArgs? { + 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.xaml.controls.textboxtextchangingeventargs.iscontentchanging) + public var isContentChanging : Bool { + get { try! _default.get_IsContentChangingImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textchangedeventargs) +public final class TextChangedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextChangedEventArgs + 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_CXaml_CControls_CITextChangedEventArgs>?) -> TextChangedEventArgs? { + 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.xaml.controls.textcompositionchangedeventargs) +public final class TextCompositionChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextCompositionChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionChangedEventArgs + 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_CXaml_CControls_CITextCompositionChangedEventArgs>?) -> TextCompositionChangedEventArgs? { + 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.xaml.controls.textcompositionchangedeventargs.length) + public var length : Int32 { + get { try! _default.get_LengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcompositionchangedeventargs.startindex) + public var startIndex : Int32 { + get { try! _default.get_StartIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcompositionendedeventargs) +public final class TextCompositionEndedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextCompositionEndedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionEndedEventArgs + 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_CXaml_CControls_CITextCompositionEndedEventArgs>?) -> TextCompositionEndedEventArgs? { + 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.xaml.controls.textcompositionendedeventargs.length) + public var length : Int32 { + get { try! _default.get_LengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcompositionendedeventargs.startindex) + public var startIndex : Int32 { + get { try! _default.get_StartIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcompositionstartedeventargs) +public final class TextCompositionStartedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextCompositionStartedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextCompositionStartedEventArgs + 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_CXaml_CControls_CITextCompositionStartedEventArgs>?) -> TextCompositionStartedEventArgs? { + 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.xaml.controls.textcompositionstartedeventargs.length) + public var length : Int32 { + get { try! _default.get_LengthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcompositionstartedeventargs.startindex) + public var startIndex : Int32 { + get { try! _default.get_StartIndexImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textcontrolcopyingtoclipboardeventargs) +public final class TextControlCopyingToClipboardEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextControlCopyingToClipboardEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCopyingToClipboardEventArgs + 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_CXaml_CControls_CITextControlCopyingToClipboardEventArgs>?) -> TextControlCopyingToClipboardEventArgs? { + 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.xaml.controls.textcontrolcopyingtoclipboardeventargs.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.xaml.controls.textcontrolcuttingtoclipboardeventargs) +public final class TextControlCuttingToClipboardEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextControlCuttingToClipboardEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlCuttingToClipboardEventArgs + 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_CXaml_CControls_CITextControlCuttingToClipboardEventArgs>?) -> TextControlCuttingToClipboardEventArgs? { + 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.xaml.controls.textcontrolcuttingtoclipboardeventargs.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.xaml.controls.textcontrolpasteeventargs) +public final class TextControlPasteEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITextControlPasteEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITextControlPasteEventArgs + 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_CXaml_CControls_CITextControlPasteEventArgs>?) -> TextControlPasteEventArgs? { + 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.xaml.controls.textcontrolpasteeventargs.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.xaml.controls.togglemenuflyoutitem) +open class ToggleMenuFlyoutItem : WinUI.MenuFlyoutItem { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToggleMenuFlyoutItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem + 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_CXaml_CControls_CIToggleMenuFlyoutItem>?) -> ToggleMenuFlyoutItem? { + 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 _IToggleMenuFlyoutItemFactory : __ABI_Microsoft_UI_Xaml_Controls.IToggleMenuFlyoutItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToggleMenuFlyoutItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IToggleMenuFlyoutItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IToggleMenuFlyoutItemStatics: __ABI_Microsoft_UI_Xaml_Controls.IToggleMenuFlyoutItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToggleMenuFlyoutItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.togglemenuflyoutitem.ischeckedproperty) + public class var isCheckedProperty : WinUI.DependencyProperty! { + get { try! _IToggleMenuFlyoutItemStatics.get_IsCheckedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.togglemenuflyoutitem.ischecked) + public var isChecked : Bool { + get { try! _default.get_IsCheckedImpl() } + set { try! _default.put_IsCheckedImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = ToggleMenuFlyoutItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleMenuFlyoutItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToggleMenuFlyoutItem + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch) +public final class ToggleSwitch : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToggleSwitch + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch + 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_CXaml_CControls_CIToggleSwitch>?) -> ToggleSwitch? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.ToggleSwitch"))) + } + + private static let _IToggleSwitchStatics: __ABI_Microsoft_UI_Xaml_Controls.IToggleSwitchStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToggleSwitch")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.headerproperty) + public static var headerProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_HeaderPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.headertemplateproperty) + public static var headerTemplateProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_HeaderTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.isonproperty) + public static var isOnProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_IsOnPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.offcontentproperty) + public static var offContentProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_OffContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.offcontenttemplateproperty) + public static var offContentTemplateProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_OffContentTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.oncontentproperty) + public static var onContentProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_OnContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.oncontenttemplateproperty) + public static var onContentTemplateProperty : WinUI.DependencyProperty! { + get { try! _IToggleSwitchStatics.get_OnContentTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.header) + public var header : Any! { + get { try! _default.get_HeaderImpl() } + set { try! _default.put_HeaderImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.headertemplate) + public var headerTemplate : WinUI.DataTemplate! { + get { try! _default.get_HeaderTemplateImpl() } + set { try! _default.put_HeaderTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.ison) + public var isOn : Bool { + get { try! _default.get_IsOnImpl() } + set { try! _default.put_IsOnImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.offcontent) + public var offContent : Any! { + get { try! _default.get_OffContentImpl() } + set { try! _default.put_OffContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.offcontenttemplate) + public var offContentTemplate : WinUI.DataTemplate! { + get { try! _default.get_OffContentTemplateImpl() } + set { try! _default.put_OffContentTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.oncontent) + public var onContent : Any! { + get { try! _default.get_OnContentImpl() } + set { try! _default.put_OnContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.oncontenttemplate) + public var onContentTemplate : WinUI.DataTemplate! { + get { try! _default.get_OnContentTemplateImpl() } + set { try! _default.put_OnContentTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.templatesettings) + public var templateSettings : WinUI.ToggleSwitchTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.toggleswitch.toggled) + public lazy var toggled : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ToggledImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ToggledImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = ToggleSwitch + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToggleSwitch + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToggleSwitch + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip) +open class ToolTip : WinUI.ContentControl { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToolTip + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip + 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_CXaml_CControls_CIToolTip>?) -> ToolTip? { + 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 _IToolTipFactory : __ABI_Microsoft_UI_Xaml_Controls.IToolTipFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToolTip")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IToolTipFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IToolTipStatics: __ABI_Microsoft_UI_Xaml_Controls.IToolTipStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToolTip")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.horizontaloffsetproperty) + public class var horizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_HorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.isopenproperty) + public class var isOpenProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_IsOpenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placementproperty) + public class var placementProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_PlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placementrectproperty) + public class var placementRectProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_PlacementRectPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placementtargetproperty) + public class var placementTargetProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_PlacementTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.verticaloffsetproperty) + public class var verticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IToolTipStatics.get_VerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + set { try! _default.put_HorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.isopen) + public var isOpen : Bool { + get { try! _default.get_IsOpenImpl() } + set { try! _default.put_IsOpenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placement) + public var placement : WinUI.PlacementMode { + get { try! _default.get_PlacementImpl() } + set { try! _default.put_PlacementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placementrect) + public var placementRect : WindowsFoundation.Rect? { + get { try! _default.get_PlacementRectImpl() } + set { try! _default.put_PlacementRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.placementtarget) + public var placementTarget : WinUI.UIElement! { + get { try! _default.get_PlacementTargetImpl() } + set { try! _default.put_PlacementTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.templatesettings) + public var templateSettings : WinUI.ToolTipTemplateSettings! { + get { try! _default.get_TemplateSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + set { try! _default.put_VerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltip.closed) + public 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.xaml.controls.tooltip.opened) + public lazy var opened : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = ToolTip + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTip + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToolTip + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice) +public final class ToolTipService : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IToolTipService + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIToolTipService + 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_CXaml_CControls_CIToolTipService>?) -> ToolTipService? { + 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 _IToolTipServiceStatics: __ABI_Microsoft_UI_Xaml_Controls.IToolTipServiceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.ToolTipService")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.getplacement) + public static func getPlacement(_ element: WinUI.DependencyObject!) -> WinUI.PlacementMode { + return try! _IToolTipServiceStatics.GetPlacementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.setplacement) + public static func setPlacement(_ element: WinUI.DependencyObject!, _ value: WinUI.PlacementMode) { + try! _IToolTipServiceStatics.SetPlacementImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.getplacementtarget) + public static func getPlacementTarget(_ element: WinUI.DependencyObject!) -> WinUI.UIElement! { + return try! _IToolTipServiceStatics.GetPlacementTargetImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.setplacementtarget) + public static func setPlacementTarget(_ element: WinUI.DependencyObject!, _ value: WinUI.UIElement!) { + try! _IToolTipServiceStatics.SetPlacementTargetImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.gettooltip) + public static func getToolTip(_ element: WinUI.DependencyObject!) -> Any! { + return try! _IToolTipServiceStatics.GetToolTipImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.settooltip) + public static func setToolTip(_ element: WinUI.DependencyObject!, _ value: Any!) { + try! _IToolTipServiceStatics.SetToolTipImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.placementproperty) + public static var placementProperty : WinUI.DependencyProperty! { + get { try! _IToolTipServiceStatics.get_PlacementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.placementtargetproperty) + public static var placementTargetProperty : WinUI.DependencyProperty! { + get { try! _IToolTipServiceStatics.get_PlacementTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.tooltipservice.tooltipproperty) + public static var toolTipProperty : WinUI.DependencyProperty! { + get { try! _IToolTipServiceStatics.get_ToolTipPropertyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview) +open class TreeView : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeView + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView + 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_CXaml_CControls_CITreeView>?) -> TreeView? { + 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 _ITreeViewFactory : __ABI_Microsoft_UI_Xaml_Controls.ITreeViewFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeView")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITreeViewFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITreeViewStatics: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeView")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selecteditemproperty) + public class var selectedItemProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics.get_SelectedItemPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectionmodeproperty) + public class var selectionModeProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics.get_SelectionModePropertyImpl() } + } + + private static let _ITreeViewStatics2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeView")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.candragitemsproperty) + public class var canDragItemsProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_CanDragItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.canreorderitemsproperty) + public class var canReorderItemsProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_CanReorderItemsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainerstyleproperty) + public class var itemContainerStyleProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemContainerStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainerstyleselectorproperty) + public class var itemContainerStyleSelectorProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemContainerStyleSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainertransitionsproperty) + public class var itemContainerTransitionsProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemContainerTransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemtemplateproperty) + public class var itemTemplateProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemTemplatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemtemplateselectorproperty) + public class var itemTemplateSelectorProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemTemplateSelectorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemssourceproperty) + public class var itemsSourceProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewStatics2.get_ItemsSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.expand) + public func expand(_ value: TreeViewNode!) throws { + try _default.ExpandImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.collapse) + public func collapse(_ value: TreeViewNode!) throws { + try _default.CollapseImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectall) + public func selectAll() throws { + try _default.SelectAllImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.rootnodes) + public var rootNodes : WindowsFoundation.AnyIVector! { + get { try! _default.get_RootNodesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectednodes) + public var selectedNodes : WindowsFoundation.AnyIVector! { + get { try! _default.get_SelectedNodesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectionmode) + public var selectionMode : TreeViewSelectionMode { + get { try! _default.get_SelectionModeImpl() } + set { try! _default.put_SelectionModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.collapsed) + public lazy var collapsed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CollapsedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CollapsedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.expanding) + public lazy var expanding : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ExpandingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ExpandingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.iteminvoked) + public lazy var itemInvoked : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ItemInvokedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ItemInvokedImpl($0) + } + ) + }() + + private lazy var _ITreeView2: __ABI_Microsoft_UI_Xaml_Controls.ITreeView2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.nodefromcontainer) + public func nodeFromContainer(_ container: WinUI.DependencyObject!) throws -> TreeViewNode! { + try _ITreeView2.NodeFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.containerfromnode) + public func containerFromNode(_ node: TreeViewNode!) throws -> WinUI.DependencyObject! { + try _ITreeView2.ContainerFromNodeImpl(node) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemfromcontainer) + public func itemFromContainer(_ container: WinUI.DependencyObject!) throws -> Any! { + try _ITreeView2.ItemFromContainerImpl(container) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.containerfromitem) + public func containerFromItem(_ item: Any!) throws -> WinUI.DependencyObject! { + try _ITreeView2.ContainerFromItemImpl(item) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.candragitems) + public var canDragItems : Bool { + get { try! _ITreeView2.get_CanDragItemsImpl() } + set { try! _ITreeView2.put_CanDragItemsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.canreorderitems) + public var canReorderItems : Bool { + get { try! _ITreeView2.get_CanReorderItemsImpl() } + set { try! _ITreeView2.put_CanReorderItemsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainerstyle) + public var itemContainerStyle : WinUI.Style! { + get { try! _ITreeView2.get_ItemContainerStyleImpl() } + set { try! _ITreeView2.put_ItemContainerStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainerstyleselector) + public var itemContainerStyleSelector : StyleSelector! { + get { try! _ITreeView2.get_ItemContainerStyleSelectorImpl() } + set { try! _ITreeView2.put_ItemContainerStyleSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemcontainertransitions) + public var itemContainerTransitions : WinUI.TransitionCollection! { + get { try! _ITreeView2.get_ItemContainerTransitionsImpl() } + set { try! _ITreeView2.put_ItemContainerTransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemtemplate) + public var itemTemplate : WinUI.DataTemplate! { + get { try! _ITreeView2.get_ItemTemplateImpl() } + set { try! _ITreeView2.put_ItemTemplateImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemtemplateselector) + public var itemTemplateSelector : DataTemplateSelector! { + get { try! _ITreeView2.get_ItemTemplateSelectorImpl() } + set { try! _ITreeView2.put_ItemTemplateSelectorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.itemssource) + public var itemsSource : Any! { + get { try! _ITreeView2.get_ItemsSourceImpl() } + set { try! _ITreeView2.put_ItemsSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selecteditem) + public var selectedItem : Any! { + get { try! _ITreeView2.get_SelectedItemImpl() } + set { try! _ITreeView2.put_SelectedItemImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selecteditems) + public var selectedItems : WindowsFoundation.AnyIVector! { + get { try! _ITreeView2.get_SelectedItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectednode) + public var selectedNode : TreeViewNode! { + get { try! _ITreeView2.get_SelectedNodeImpl() } + set { try! _ITreeView2.put_SelectedNodeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.dragitemscompleted) + public lazy var dragItemsCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._ITreeView2 else { return .init() } + return try! this.add_DragItemsCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._ITreeView2.remove_DragItemsCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.dragitemsstarting) + public lazy var dragItemsStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._ITreeView2 else { return .init() } + return try! this.add_DragItemsStartingImpl($0) + }, + remove: { [weak self] in + try? self?._ITreeView2.remove_DragItemsStartingImpl($0) + } + ) + }() + + private lazy var _ITreeView3: __ABI_Microsoft_UI_Xaml_Controls.ITreeView3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeview.selectionchanged) + public lazy var selectionChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._ITreeView3 else { return .init() } + return try! this.add_SelectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._ITreeView3.remove_SelectionChangedImpl($0) + } + ) + }() + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = TreeView + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeView + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeView + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + _ITreeView2 = nil + _ITreeView3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewcollapsedeventargs) +public final class TreeViewCollapsedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewCollapsedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewCollapsedEventArgs + 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_CXaml_CControls_CITreeViewCollapsedEventArgs>?) -> TreeViewCollapsedEventArgs? { + 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.xaml.controls.treeviewcollapsedeventargs.node) + public var node : TreeViewNode! { + get { try! _default.get_NodeImpl() } + } + + private lazy var _ITreeViewCollapsedEventArgs2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewCollapsedEventArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewcollapsedeventargs.item) + public var item : Any! { + get { try! _ITreeViewCollapsedEventArgs2.get_ItemImpl() } + } + + deinit { + _default = nil + _ITreeViewCollapsedEventArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemscompletedeventargs) +public final class TreeViewDragItemsCompletedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewDragItemsCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs + 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_CXaml_CControls_CITreeViewDragItemsCompletedEventArgs>?) -> TreeViewDragItemsCompletedEventArgs? { + 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.xaml.controls.treeviewdragitemscompletedeventargs.dropresult) + public var dropResult : UWP.DataPackageOperation { + get { try! _default.get_DropResultImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemscompletedeventargs.items) + public var items : WindowsFoundation.AnyIVectorView! { + get { try! _default.get_ItemsImpl() } + } + + private lazy var _ITreeViewDragItemsCompletedEventArgs2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewDragItemsCompletedEventArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemscompletedeventargs.newparentitem) + public var newParentItem : Any! { + get { try! _ITreeViewDragItemsCompletedEventArgs2.get_NewParentItemImpl() } + } + + deinit { + _default = nil + _ITreeViewDragItemsCompletedEventArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemsstartingeventargs) +public final class TreeViewDragItemsStartingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewDragItemsStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewDragItemsStartingEventArgs + 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_CXaml_CControls_CITreeViewDragItemsStartingEventArgs>?) -> TreeViewDragItemsStartingEventArgs? { + 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.xaml.controls.treeviewdragitemsstartingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemsstartingeventargs.data) + public var data : UWP.DataPackage! { + get { try! _default.get_DataImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewdragitemsstartingeventargs.items) + public var items : WindowsFoundation.AnyIVector! { + get { try! _default.get_ItemsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewexpandingeventargs) +public final class TreeViewExpandingEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewExpandingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewExpandingEventArgs + 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_CXaml_CControls_CITreeViewExpandingEventArgs>?) -> TreeViewExpandingEventArgs? { + 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.xaml.controls.treeviewexpandingeventargs.node) + public var node : TreeViewNode! { + get { try! _default.get_NodeImpl() } + } + + private lazy var _ITreeViewExpandingEventArgs2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewExpandingEventArgs2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewexpandingeventargs.item) + public var item : Any! { + get { try! _ITreeViewExpandingEventArgs2.get_ItemImpl() } + } + + deinit { + _default = nil + _ITreeViewExpandingEventArgs2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem) +open class TreeViewItem : WinUI.ListViewItem { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItem + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem + 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_CXaml_CControls_CITreeViewItem>?) -> TreeViewItem? { + 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 _ITreeViewItemFactory : __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewItem")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITreeViewItemFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITreeViewItemStatics: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.collapsedglyphproperty) + public class var collapsedGlyphProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_CollapsedGlyphPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.expandedglyphproperty) + public class var expandedGlyphProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_ExpandedGlyphPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphbrushproperty) + public class var glyphBrushProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_GlyphBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphopacityproperty) + public class var glyphOpacityProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_GlyphOpacityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphsizeproperty) + public class var glyphSizeProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_GlyphSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.isexpandedproperty) + public class var isExpandedProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_IsExpandedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.treeviewitemtemplatesettingsproperty) + public class var treeViewItemTemplateSettingsProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics.get_TreeViewItemTemplateSettingsPropertyImpl() } + } + + private static let _ITreeViewItemStatics2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewItem")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.hasunrealizedchildrenproperty) + public class var hasUnrealizedChildrenProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics2.get_HasUnrealizedChildrenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.itemssourceproperty) + public class var itemsSourceProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemStatics2.get_ItemsSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.collapsedglyph) + public var collapsedGlyph : String { + get { try! _default.get_CollapsedGlyphImpl() } + set { try! _default.put_CollapsedGlyphImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.expandedglyph) + public var expandedGlyph : String { + get { try! _default.get_ExpandedGlyphImpl() } + set { try! _default.put_ExpandedGlyphImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphbrush) + public var glyphBrush : WinUI.Brush! { + get { try! _default.get_GlyphBrushImpl() } + set { try! _default.put_GlyphBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphopacity) + public var glyphOpacity : Double { + get { try! _default.get_GlyphOpacityImpl() } + set { try! _default.put_GlyphOpacityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.glyphsize) + public var glyphSize : Double { + get { try! _default.get_GlyphSizeImpl() } + set { try! _default.put_GlyphSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.isexpanded) + public var isExpanded : Bool { + get { try! _default.get_IsExpandedImpl() } + set { try! _default.put_IsExpandedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.treeviewitemtemplatesettings) + public var treeViewItemTemplateSettings : TreeViewItemTemplateSettings! { + get { try! _default.get_TreeViewItemTemplateSettingsImpl() } + } + + private lazy var _ITreeViewItem2: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItem2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.hasunrealizedchildren) + public var hasUnrealizedChildren : Bool { + get { try! _ITreeViewItem2.get_HasUnrealizedChildrenImpl() } + set { try! _ITreeViewItem2.put_HasUnrealizedChildrenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitem.itemssource) + public var itemsSource : Any! { + get { try! _ITreeViewItem2.get_ItemsSourceImpl() } + set { try! _ITreeViewItem2.put_ItemsSourceImpl(newValue) } + } + + internal enum IContentControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIContentControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IContentControlOverrides + internal typealias Class = TreeViewItem + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItem + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItem + } + } + internal typealias Composable = IContentControlOverrides + deinit { + _default = nil + _ITreeViewItem2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewiteminvokedeventargs) +public final class TreeViewItemInvokedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemInvokedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemInvokedEventArgs + 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_CXaml_CControls_CITreeViewItemInvokedEventArgs>?) -> TreeViewItemInvokedEventArgs? { + 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.xaml.controls.treeviewiteminvokedeventargs.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.xaml.controls.treeviewiteminvokedeventargs.invokeditem) + public var invokedItem : Any! { + get { try! _default.get_InvokedItemImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings) +open class TreeViewItemTemplateSettings : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemTemplateSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings + 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_CXaml_CControls_CITreeViewItemTemplateSettings>?) -> TreeViewItemTemplateSettings? { + 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 _ITreeViewItemTemplateSettingsFactory : __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemTemplateSettingsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewItemTemplateSettings")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITreeViewItemTemplateSettingsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITreeViewItemTemplateSettingsStatics: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemTemplateSettingsStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewItemTemplateSettings")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.collapsedglyphvisibilityproperty) + public class var collapsedGlyphVisibilityProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemTemplateSettingsStatics.get_CollapsedGlyphVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.dragitemscountproperty) + public class var dragItemsCountProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemTemplateSettingsStatics.get_DragItemsCountPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.expandedglyphvisibilityproperty) + public class var expandedGlyphVisibilityProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemTemplateSettingsStatics.get_ExpandedGlyphVisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.indentationproperty) + public class var indentationProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewItemTemplateSettingsStatics.get_IndentationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.collapsedglyphvisibility) + public var collapsedGlyphVisibility : WinUI.Visibility { + get { try! _default.get_CollapsedGlyphVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.dragitemscount) + public var dragItemsCount : Int32 { + get { try! _default.get_DragItemsCountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.expandedglyphvisibility) + public var expandedGlyphVisibility : WinUI.Visibility { + get { try! _default.get_ExpandedGlyphVisibilityImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewitemtemplatesettings.indentation) + public var indentation : WinUI.Thickness { + get { try! _default.get_IndentationImpl() } + } + + internal enum ITreeViewItemTemplateSettings : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TreeViewItemTemplateSettings + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewItemTemplateSettings + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewItemTemplateSettings + } + } + internal typealias Composable = ITreeViewItemTemplateSettings + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewlist) +open class TreeViewList : WinUI.ListView { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewList + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewList + 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_CXaml_CControls_CITreeViewList>?) -> TreeViewList? { + 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 _ITreeViewListFactory : __ABI_Microsoft_UI_Xaml_Controls.ITreeViewListFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewList")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITreeViewListFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IItemsControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIItemsControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IItemsControlOverrides + internal typealias Class = TreeViewList + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewList + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewList + } + } + internal typealias Composable = IItemsControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode) +open class TreeViewNode : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewNode + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode + 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_CXaml_CControls_CITreeViewNode>?) -> TreeViewNode? { + 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 _ITreeViewNodeFactory : __ABI_Microsoft_UI_Xaml_Controls.ITreeViewNodeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewNode")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITreeViewNodeFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITreeViewNodeStatics: __ABI_Microsoft_UI_Xaml_Controls.ITreeViewNodeStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.TreeViewNode")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewNodeStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.depthproperty) + public class var depthProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewNodeStatics.get_DepthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.haschildrenproperty) + public class var hasChildrenProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewNodeStatics.get_HasChildrenPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.isexpandedproperty) + public class var isExpandedProperty : WinUI.DependencyProperty! { + get { try! _ITreeViewNodeStatics.get_IsExpandedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.children) + public var children : WindowsFoundation.AnyIVector! { + get { try! _default.get_ChildrenImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.content) + public var content : Any! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.depth) + public var depth : Int32 { + get { try! _default.get_DepthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.haschildren) + public var hasChildren : Bool { + get { try! _default.get_HasChildrenImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.hasunrealizedchildren) + public var hasUnrealizedChildren : Bool { + get { try! _default.get_HasUnrealizedChildrenImpl() } + set { try! _default.put_HasUnrealizedChildrenImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.isexpanded) + public var isExpanded : Bool { + get { try! _default.get_IsExpandedImpl() } + set { try! _default.put_IsExpandedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewnode.parent) + public var parent : TreeViewNode! { + get { try! _default.get_ParentImpl() } + } + + internal enum ITreeViewNode : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TreeViewNode + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewNode + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewNode + } + } + internal typealias Composable = ITreeViewNode + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewselectionchangedeventargs) +public final class TreeViewSelectionChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.ITreeViewSelectionChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CITreeViewSelectionChangedEventArgs + 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_CXaml_CControls_CITreeViewSelectionChangedEventArgs>?) -> TreeViewSelectionChangedEventArgs? { + 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.xaml.controls.treeviewselectionchangedeventargs.addeditems) + public var addedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_AddedItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.treeviewselectionchangedeventargs.removeditems) + public var removedItems : WindowsFoundation.AnyIVector! { + get { try! _default.get_RemovedItemsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection) +public final class UIElementCollection : WinRTClass, IVector, IIterable { + public typealias T = WinUI.UIElement? + private typealias SwiftABI = WinUI.IVectorUIElement + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + 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__CXaml__CUIElement>?) -> UIElementCollection? { + 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 _IUIElementCollection: __ABI_Microsoft_UI_Xaml_Controls.IUIElementCollection! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.move) + public func move(_ oldIndex: UInt32, _ newIndex: UInt32) throws { + try _IUIElementCollection.MoveImpl(oldIndex, newIndex) + } + + // 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.xaml.controls.uielementcollection.getat) + public func getAt(_ index: UInt32) -> WinUI.UIElement? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.indexof) + public func indexOf(_ value: WinUI.UIElement?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.setat) + public func setAt(_ index: UInt32, _ value: WinUI.UIElement?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.insertat) + public func insertAt(_ index: UInt32, _ value: WinUI.UIElement?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.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.xaml.controls.uielementcollection.append) + public func append(_ value: WinUI.UIElement?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableUIElement! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uielementcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _IUIElementCollection = nil + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout) +open class UniformGridLayout : WinUI.VirtualizingLayout { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IUniformGridLayout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout + 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_CXaml_CControls_CIUniformGridLayout>?) -> UniformGridLayout? { + 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 _IUniformGridLayoutFactory : __ABI_Microsoft_UI_Xaml_Controls.IUniformGridLayoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.UniformGridLayout")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IUniformGridLayoutFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IUniformGridLayoutStatics: __ABI_Microsoft_UI_Xaml_Controls.IUniformGridLayoutStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.UniformGridLayout")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.itemsjustificationproperty) + public class var itemsJustificationProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_ItemsJustificationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.itemsstretchproperty) + public class var itemsStretchProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_ItemsStretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.maximumrowsorcolumnsproperty) + public class var maximumRowsOrColumnsProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_MaximumRowsOrColumnsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.mincolumnspacingproperty) + public class var minColumnSpacingProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_MinColumnSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minitemheightproperty) + public class var minItemHeightProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_MinItemHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minitemwidthproperty) + public class var minItemWidthProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_MinItemWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minrowspacingproperty) + public class var minRowSpacingProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_MinRowSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.orientationproperty) + public class var orientationProperty : WinUI.DependencyProperty! { + get { try! _IUniformGridLayoutStatics.get_OrientationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.itemsjustification) + public var itemsJustification : UniformGridLayoutItemsJustification { + get { try! _default.get_ItemsJustificationImpl() } + set { try! _default.put_ItemsJustificationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.itemsstretch) + public var itemsStretch : UniformGridLayoutItemsStretch { + get { try! _default.get_ItemsStretchImpl() } + set { try! _default.put_ItemsStretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.maximumrowsorcolumns) + public var maximumRowsOrColumns : Int32 { + get { try! _default.get_MaximumRowsOrColumnsImpl() } + set { try! _default.put_MaximumRowsOrColumnsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.mincolumnspacing) + public var minColumnSpacing : Double { + get { try! _default.get_MinColumnSpacingImpl() } + set { try! _default.put_MinColumnSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minitemheight) + public var minItemHeight : Double { + get { try! _default.get_MinItemHeightImpl() } + set { try! _default.put_MinItemHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minitemwidth) + public var minItemWidth : Double { + get { try! _default.get_MinItemWidthImpl() } + set { try! _default.put_MinItemWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.minrowspacing) + public var minRowSpacing : Double { + get { try! _default.get_MinRowSpacingImpl() } + set { try! _default.put_MinRowSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.uniformgridlayout.orientation) + public var orientation : Orientation { + get { try! _default.get_OrientationImpl() } + set { try! _default.put_OrientationImpl(newValue) } + } + + internal enum IVirtualizingLayoutOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverrides + internal typealias Class = UniformGridLayout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUniformGridLayout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IUniformGridLayout + } + } + internal typealias Composable = IVirtualizingLayoutOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.usercontrol) +open class UserControl : WinUI.Control { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IUserControl + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl + 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_CXaml_CControls_CIUserControl>?) -> UserControl? { + 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 _IUserControlFactory : __ABI_Microsoft_UI_Xaml_Controls.IUserControlFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.UserControl")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IUserControlFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IUserControlStatics: __ABI_Microsoft_UI_Xaml_Controls.IUserControlStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.UserControl")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.usercontrol.contentproperty) + public class var contentProperty : WinUI.DependencyProperty! { + get { try! _IUserControlStatics.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.usercontrol.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + internal enum IControlOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIControlOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IControlOverrides + internal typealias Class = UserControl + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIUserControl + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IUserControl + } + } + internal typealias Composable = IControlOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout) +open class VirtualizingLayout : WinUI.Layout { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayout + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayout + 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_CXaml_CControls_CIVirtualizingLayout>?) -> VirtualizingLayout? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IVirtualizingLayoutFactory : __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.VirtualizingLayout")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IVirtualizingLayoutFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private lazy var _IVirtualizingLayoutOverrides: __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout.initializeforcontextcore) + open func initializeForContextCore(_ context: VirtualizingLayoutContext!) throws { + try _IVirtualizingLayoutOverrides.InitializeForContextCoreImpl(context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout.uninitializeforcontextcore) + open func uninitializeForContextCore(_ context: VirtualizingLayoutContext!) throws { + try _IVirtualizingLayoutOverrides.UninitializeForContextCoreImpl(context) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout.measureoverride) + open func measureOverride(_ context: VirtualizingLayoutContext!, _ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _IVirtualizingLayoutOverrides.MeasureOverrideImpl(context, availableSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout.arrangeoverride) + open func arrangeOverride(_ context: VirtualizingLayoutContext!, _ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _IVirtualizingLayoutOverrides.ArrangeOverrideImpl(context, finalSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayout.onitemschangedcore) + open func onItemsChangedCore(_ context: VirtualizingLayoutContext!, _ source: Any!, _ args: WinUI.NotifyCollectionChangedEventArgs!) throws { + try _IVirtualizingLayoutOverrides.OnItemsChangedCoreImpl(context, source, args) + } + + internal enum IVirtualizingLayoutOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutOverrides + internal typealias Class = VirtualizingLayout + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayout + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayout + } + } + internal typealias Composable = IVirtualizingLayoutOverrides + deinit { + _default = nil + _IVirtualizingLayoutOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext) +open class VirtualizingLayoutContext : WinUI.LayoutContext { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContext + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext + 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_CXaml_CControls_CIVirtualizingLayoutContext>?) -> VirtualizingLayoutContext? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverridesWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2Wrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2Wrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IVirtualizingLayoutContextFactory : __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IVirtualizingLayoutContextFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.getitemat) + public func getItemAt(_ index: Int32) throws -> Any! { + try _default.GetItemAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.getorcreateelementat) + public func getOrCreateElementAt(_ index: Int32) throws -> WinUI.UIElement! { + try _default.GetOrCreateElementAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.getorcreateelementat) + public func getOrCreateElementAt(_ index: Int32, _ options: ElementRealizationOptions) throws -> WinUI.UIElement! { + try _default.GetOrCreateElementAt2Impl(index, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.recycleelement) + public func recycleElement(_ element: WinUI.UIElement!) throws { + try _default.RecycleElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.itemcount) + public var itemCount : Int32 { + get { try! _default.get_ItemCountImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.layoutorigin) + public var layoutOrigin : WindowsFoundation.Point { + get { try! _default.get_LayoutOriginImpl() } + set { try! _default.put_LayoutOriginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.realizationrect) + public var realizationRect : WindowsFoundation.Rect { + get { try! _default.get_RealizationRectImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.recommendedanchorindex) + public var recommendedAnchorIndex : Int32 { + get { try! _default.get_RecommendedAnchorIndexImpl() } + } + + private lazy var _IVirtualizingLayoutContext2: __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContext2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.visiblerect) + public var visibleRect : WindowsFoundation.Rect { + get { try! _IVirtualizingLayoutContext2.get_VisibleRectImpl() } + } + + private lazy var _IVirtualizingLayoutContextOverrides: __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.itemcountcore) + open func itemCountCore() throws -> Int32 { + try _IVirtualizingLayoutContextOverrides.ItemCountCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.getitematcore) + open func getItemAtCore(_ index: Int32) throws -> Any! { + try _IVirtualizingLayoutContextOverrides.GetItemAtCoreImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.realizationrectcore) + open func realizationRectCore() throws -> WindowsFoundation.Rect { + try _IVirtualizingLayoutContextOverrides.RealizationRectCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.getorcreateelementatcore) + open func getOrCreateElementAtCore(_ index: Int32, _ options: ElementRealizationOptions) throws -> WinUI.UIElement! { + try _IVirtualizingLayoutContextOverrides.GetOrCreateElementAtCoreImpl(index, options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.recycleelementcore) + open func recycleElementCore(_ element: WinUI.UIElement!) throws { + try _IVirtualizingLayoutContextOverrides.RecycleElementCoreImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.layoutorigincore) + open var layoutOriginCore : WindowsFoundation.Point { + get { try! _IVirtualizingLayoutContextOverrides.get_LayoutOriginCoreImpl() } + set { try! _IVirtualizingLayoutContextOverrides.put_LayoutOriginCoreImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.recommendedanchorindexcore) + open var recommendedAnchorIndexCore : Int32 { + get { try! _IVirtualizingLayoutContextOverrides.get_RecommendedAnchorIndexCoreImpl() } + } + + internal enum IVirtualizingLayoutContextOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides + internal typealias Class = VirtualizingLayoutContext + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContext + } + } + internal typealias Composable = IVirtualizingLayoutContextOverrides + private lazy var _IVirtualizingLayoutContextOverrides2: __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.virtualizinglayoutcontext.visiblerectcore) + open func visibleRectCore() throws -> WindowsFoundation.Rect { + try _IVirtualizingLayoutContextOverrides2.VisibleRectCoreImpl() + } + + internal enum IVirtualizingLayoutContextOverrides2 : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContextOverrides2 + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContextOverrides2 + internal typealias Class = VirtualizingLayoutContext + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIVirtualizingLayoutContext + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IVirtualizingLayoutContext + } + } + deinit { + _default = nil + _IVirtualizingLayoutContext2 = nil + _IVirtualizingLayoutContextOverrides = nil + _IVirtualizingLayoutContextOverrides2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.xamlcontrolsresources) +public final class XamlControlsResources : WinUI.ResourceDictionary { + public typealias K = Any? + public typealias V = Any? + public typealias T = WindowsFoundation.AnyIKeyValuePair? + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Controls.IXamlControlsResources + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIXamlControlsResources + 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_CXaml_CControls_CIXamlControlsResources>?) -> XamlControlsResources? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Controls.XamlControlsResources"))) + } + + private static let _IXamlControlsResourcesStatics: __ABI_Microsoft_UI_Xaml_Controls.IXamlControlsResourcesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Controls.XamlControlsResources")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.xamlcontrolsresources.ensurereveallights) + public static func ensureRevealLights(_ element: WinUI.UIElement!) { + try! _IXamlControlsResourcesStatics.EnsureRevealLightsImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.xamlcontrolsresources.usecompactresourcesproperty) + public static var useCompactResourcesProperty : WinUI.DependencyProperty! { + get { try! _IXamlControlsResourcesStatics.get_UseCompactResourcesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.xamlcontrolsresources.usecompactresources) + public var useCompactResources : Bool { + get { try! _default.get_UseCompactResourcesImpl() } + set { try! _default.put_UseCompactResourcesImpl(newValue) } + } + + deinit { + _default = nil + } +} + +public typealias ContextMenuOpeningEventHandler = (Any?, ContextMenuEventArgs?) -> () +public typealias DragItemsStartingEventHandler = (Any?, DragItemsStartingEventArgs?) -> () +public typealias ItemClickEventHandler = (Any?, ItemClickEventArgs?) -> () +public typealias SelectionChangedEventHandler = (Any?, SelectionChangedEventArgs?) -> () +public typealias SemanticZoomViewChangedEventHandler = (Any?, SemanticZoomViewChangedEventArgs?) -> () +public typealias TextChangedEventHandler = (Any?, TextChangedEventArgs?) -> () +public typealias TextControlPasteEventHandler = (Any?, TextControlPasteEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iinsertionpanel) +public protocol IInsertionPanel : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iinsertionpanel.getinsertionindexes) + func getInsertionIndexes(_ position: WindowsFoundation.Point, _ first: inout Int32, _ second: inout Int32) throws +} + +extension IInsertionPanel { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanelWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanelWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIInsertionPanel = any IInsertionPanel + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping) +public protocol IItemContainerMapping : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.itemfromcontainer) + func itemFromContainer(_ container: WinUI.DependencyObject!) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.containerfromitem) + func containerFromItem(_ item: Any!) throws -> WinUI.DependencyObject! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.indexfromcontainer) + func indexFromContainer(_ container: WinUI.DependencyObject!) throws -> Int32 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iitemcontainermapping.containerfromindex) + func containerFromIndex(_ index: Int32) throws -> WinUI.DependencyObject! +} + +extension IItemContainerMapping { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IItemContainerMappingWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IItemContainerMappingWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIItemContainerMapping = any IItemContainerMapping + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.ikeyindexmapping) +public protocol IKeyIndexMapping : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.ikeyindexmapping.keyfromindex) + func keyFromIndex(_ index: Int32) throws -> String + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.ikeyindexmapping.indexfromkey) + func indexFromKey(_ key: String) throws -> Int32 +} + +extension IKeyIndexMapping { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IKeyIndexMappingWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IKeyIndexMappingWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIKeyIndexMapping = any IKeyIndexMapping + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.inavigate) +public protocol INavigate : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.inavigate.navigate) + func navigate(_ sourcePageType: WinUI.TypeName) throws -> Bool +} + +extension INavigate { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.INavigateWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.INavigateWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyINavigate = any INavigate + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider) +public protocol IScrollAnchorProvider : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider.registeranchorcandidate) + func registerAnchorCandidate(_ element: WinUI.UIElement!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider.unregisteranchorcandidate) + func unregisterAnchorCandidate(_ element: WinUI.UIElement!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iscrollanchorprovider.currentanchor) + var currentAnchor: WinUI.UIElement! { get } +} + +extension IScrollAnchorProvider { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProviderWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProviderWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIScrollAnchorProvider = any IScrollAnchorProvider + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation) +public protocol ISemanticZoomInformation : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.initializeviewchange) + func initializeViewChange() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchange) + func completeViewChange() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.makevisible) + func makeVisible(_ item: WinUI.SemanticZoomLocation!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.startviewchangefrom) + func startViewChangeFrom(_ source: WinUI.SemanticZoomLocation!, _ destination: WinUI.SemanticZoomLocation!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.startviewchangeto) + func startViewChangeTo(_ source: WinUI.SemanticZoomLocation!, _ destination: WinUI.SemanticZoomLocation!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchangefrom) + func completeViewChangeFrom(_ source: WinUI.SemanticZoomLocation!, _ destination: WinUI.SemanticZoomLocation!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.completeviewchangeto) + func completeViewChangeTo(_ source: WinUI.SemanticZoomLocation!, _ destination: WinUI.SemanticZoomLocation!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.isactiveview) + var isActiveView: Bool { get set } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.iszoomedinview) + var isZoomedInView: Bool { get set } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.isemanticzoominformation.semanticzoomowner) + var semanticZoomOwner: WinUI.SemanticZoom! { get set } +} + +extension ISemanticZoomInformation { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyISemanticZoomInformation = any ISemanticZoomInformation + +extension WinUI.AppBarClosedDisplayMode { + public static var compact : WinUI.AppBarClosedDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CAppBarClosedDisplayMode_Compact + } + public static var minimal : WinUI.AppBarClosedDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CAppBarClosedDisplayMode_Minimal + } + public static var hidden : WinUI.AppBarClosedDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CAppBarClosedDisplayMode_Hidden + } +} +extension WinUI.AppBarClosedDisplayMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.BackgroundSizing { + public static var innerBorderEdge : WinUI.BackgroundSizing { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing_InnerBorderEdge + } + public static var outerBorderEdge : WinUI.BackgroundSizing { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CBackgroundSizing_OuterBorderEdge + } +} +extension WinUI.BackgroundSizing: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.CandidateWindowAlignment { + public static var `default` : WinUI.CandidateWindowAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCandidateWindowAlignment_Default + } + public static var bottomEdge : WinUI.CandidateWindowAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCandidateWindowAlignment_BottomEdge + } +} +extension WinUI.CandidateWindowAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.CharacterCasing { + public static var normal : WinUI.CharacterCasing { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCharacterCasing_Normal + } + public static var lower : WinUI.CharacterCasing { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCharacterCasing_Lower + } + public static var upper : WinUI.CharacterCasing { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CCharacterCasing_Upper + } +} +extension WinUI.CharacterCasing: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ClickMode { + public static var release : WinUI.ClickMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CClickMode_Release + } + public static var press : WinUI.ClickMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CClickMode_Press + } + public static var hover : WinUI.ClickMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CClickMode_Hover + } +} +extension WinUI.ClickMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ComboBoxSelectionChangedTrigger { + public static var committed : WinUI.ComboBoxSelectionChangedTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CComboBoxSelectionChangedTrigger_Committed + } + public static var always : WinUI.ComboBoxSelectionChangedTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CComboBoxSelectionChangedTrigger_Always + } +} +extension WinUI.ComboBoxSelectionChangedTrigger: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ContentDialogButton { + public static var none : WinUI.ContentDialogButton { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton_None + } + public static var primary : WinUI.ContentDialogButton { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton_Primary + } + public static var secondary : WinUI.ContentDialogButton { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton_Secondary + } + public static var close : WinUI.ContentDialogButton { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogButton_Close + } +} +extension WinUI.ContentDialogButton: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ContentDialogPlacement { + public static var popup : WinUI.ContentDialogPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogPlacement_Popup + } + public static var inPlace : WinUI.ContentDialogPlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogPlacement_InPlace + } +} +extension WinUI.ContentDialogPlacement: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ContentDialogResult { + public static var none : WinUI.ContentDialogResult { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult_None + } + public static var primary : WinUI.ContentDialogResult { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult_Primary + } + public static var secondary : WinUI.ContentDialogResult { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult_Secondary + } +} +extension WinUI.ContentDialogResult: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ElementRealizationOptions { + public static var none : WinUI.ElementRealizationOptions { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CElementRealizationOptions_None + } + public static var forceCreate : WinUI.ElementRealizationOptions { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CElementRealizationOptions_ForceCreate + } + public static var suppressAutoRecycle : WinUI.ElementRealizationOptions { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CElementRealizationOptions_SuppressAutoRecycle + } +} +extension WinUI.ElementRealizationOptions: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.IncrementalLoadingTrigger { + public static var none : WinUI.IncrementalLoadingTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIncrementalLoadingTrigger_None + } + public static var edge : WinUI.IncrementalLoadingTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIncrementalLoadingTrigger_Edge + } +} +extension WinUI.IncrementalLoadingTrigger: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.IndexBasedLayoutOrientation { + public static var none : WinUI.IndexBasedLayoutOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIndexBasedLayoutOrientation_None + } + public static var topToBottom : WinUI.IndexBasedLayoutOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIndexBasedLayoutOrientation_TopToBottom + } + public static var leftToRight : WinUI.IndexBasedLayoutOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CIndexBasedLayoutOrientation_LeftToRight + } +} +extension WinUI.IndexBasedLayoutOrientation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.InfoBarCloseReason { + public static var closeButton : WinUI.InfoBarCloseReason { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarCloseReason_CloseButton + } + public static var programmatic : WinUI.InfoBarCloseReason { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarCloseReason_Programmatic + } +} +extension WinUI.InfoBarCloseReason: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.InfoBarSeverity { + public static var informational : WinUI.InfoBarSeverity { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity_Informational + } + public static var success : WinUI.InfoBarSeverity { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity_Success + } + public static var warning : WinUI.InfoBarSeverity { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity_Warning + } + public static var error : WinUI.InfoBarSeverity { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CInfoBarSeverity_Error + } +} +extension WinUI.InfoBarSeverity: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ItemCollectionTransitionOperation { + public static var add : WinUI.ItemCollectionTransitionOperation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionOperation_Add + } + public static var remove : WinUI.ItemCollectionTransitionOperation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionOperation_Remove + } + public static var move : WinUI.ItemCollectionTransitionOperation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionOperation_Move + } +} +extension WinUI.ItemCollectionTransitionOperation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ItemCollectionTransitionTriggers { + public static var collectionChangeAdd : WinUI.ItemCollectionTransitionTriggers { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers_CollectionChangeAdd + } + public static var collectionChangeRemove : WinUI.ItemCollectionTransitionTriggers { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers_CollectionChangeRemove + } + public static var collectionChangeReset : WinUI.ItemCollectionTransitionTriggers { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers_CollectionChangeReset + } + public static var layoutTransition : WinUI.ItemCollectionTransitionTriggers { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CItemCollectionTransitionTriggers_LayoutTransition + } +} +extension WinUI.ItemCollectionTransitionTriggers: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.LightDismissOverlayMode { + public static var auto : WinUI.LightDismissOverlayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode_Auto + } + public static var on : WinUI.LightDismissOverlayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode_On + } + public static var off : WinUI.LightDismissOverlayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CLightDismissOverlayMode_Off + } +} +extension WinUI.LightDismissOverlayMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ListViewReorderMode { + public static var disabled : WinUI.ListViewReorderMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewReorderMode_Disabled + } + public static var enabled : WinUI.ListViewReorderMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewReorderMode_Enabled + } +} +extension WinUI.ListViewReorderMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ListViewSelectionMode { + public static var none : WinUI.ListViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode_None + } + public static var single : WinUI.ListViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode_Single + } + public static var multiple : WinUI.ListViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode_Multiple + } + public static var extended : WinUI.ListViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CListViewSelectionMode_Extended + } +} +extension WinUI.ListViewSelectionMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.Orientation { + public static var vertical : WinUI.Orientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation_Vertical + } + public static var horizontal : WinUI.Orientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_COrientation_Horizontal + } +} +extension WinUI.Orientation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PasswordRevealMode { + public static var peek : WinUI.PasswordRevealMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPasswordRevealMode_Peek + } + public static var hidden : WinUI.PasswordRevealMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPasswordRevealMode_Hidden + } + public static var visible : WinUI.PasswordRevealMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPasswordRevealMode_Visible + } +} +extension WinUI.PasswordRevealMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PipsPagerButtonVisibility { + public static var visible : WinUI.PipsPagerButtonVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility_Visible + } + public static var visibleOnPointerOver : WinUI.PipsPagerButtonVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility_VisibleOnPointerOver + } + public static var collapsed : WinUI.PipsPagerButtonVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPipsPagerButtonVisibility_Collapsed + } +} +extension WinUI.PipsPagerButtonVisibility: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.RequiresPointer { + public static var never : WinUI.RequiresPointer { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CRequiresPointer_Never + } + public static var whenEngaged : WinUI.RequiresPointer { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CRequiresPointer_WhenEngaged + } + public static var whenFocused : WinUI.RequiresPointer { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CRequiresPointer_WhenFocused + } +} +extension WinUI.RequiresPointer: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollBarVisibility { + public static var disabled : WinUI.ScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility_Disabled + } + public static var auto : WinUI.ScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility_Auto + } + public static var hidden : WinUI.ScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility_Hidden + } + public static var visible : WinUI.ScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollBarVisibility_Visible + } +} +extension WinUI.ScrollBarVisibility: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollIntoViewAlignment { + public static var `default` : WinUI.ScrollIntoViewAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollIntoViewAlignment_Default + } + public static var leading : WinUI.ScrollIntoViewAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollIntoViewAlignment_Leading + } +} +extension WinUI.ScrollIntoViewAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollMode { + public static var disabled : WinUI.ScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode_Disabled + } + public static var enabled : WinUI.ScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode_Enabled + } + public static var auto : WinUI.ScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollMode_Auto + } +} +extension WinUI.ScrollMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingAnimationMode { + public static var disabled : WinUI.ScrollingAnimationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode_Disabled + } + public static var enabled : WinUI.ScrollingAnimationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode_Enabled + } + public static var auto : WinUI.ScrollingAnimationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingAnimationMode_Auto + } +} +extension WinUI.ScrollingAnimationMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingChainMode { + public static var auto : WinUI.ScrollingChainMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode_Auto + } + public static var always : WinUI.ScrollingChainMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode_Always + } + public static var never : WinUI.ScrollingChainMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingChainMode_Never + } +} +extension WinUI.ScrollingChainMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingContentOrientation { + public static var vertical : WinUI.ScrollingContentOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation_Vertical + } + public static var horizontal : WinUI.ScrollingContentOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation_Horizontal + } + public static var none : WinUI.ScrollingContentOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation_None + } + public static var both : WinUI.ScrollingContentOrientation { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingContentOrientation_Both + } +} +extension WinUI.ScrollingContentOrientation: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingInputKinds { + public static var none : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_None + } + public static var touch : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_Touch + } + public static var pen : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_Pen + } + public static var mouseWheel : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_MouseWheel + } + public static var keyboard : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_Keyboard + } + public static var gamepad : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_Gamepad + } + public static var all : WinUI.ScrollingInputKinds { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInputKinds_All + } +} +extension WinUI.ScrollingInputKinds: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingInteractionState { + public static var idle : WinUI.ScrollingInteractionState { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState_Idle + } + public static var interaction : WinUI.ScrollingInteractionState { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState_Interaction + } + public static var inertia : WinUI.ScrollingInteractionState { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState_Inertia + } + public static var animation : WinUI.ScrollingInteractionState { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingInteractionState_Animation + } +} +extension WinUI.ScrollingInteractionState: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingRailMode { + public static var enabled : WinUI.ScrollingRailMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode_Enabled + } + public static var disabled : WinUI.ScrollingRailMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingRailMode_Disabled + } +} +extension WinUI.ScrollingRailMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingScrollBarVisibility { + public static var auto : WinUI.ScrollingScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility_Auto + } + public static var visible : WinUI.ScrollingScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility_Visible + } + public static var hidden : WinUI.ScrollingScrollBarVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollBarVisibility_Hidden + } +} +extension WinUI.ScrollingScrollBarVisibility: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingScrollMode { + public static var enabled : WinUI.ScrollingScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode_Enabled + } + public static var disabled : WinUI.ScrollingScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode_Disabled + } + public static var auto : WinUI.ScrollingScrollMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingScrollMode_Auto + } +} +extension WinUI.ScrollingScrollMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingSnapPointsMode { + public static var `default` : WinUI.ScrollingSnapPointsMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode_Default + } + public static var ignore : WinUI.ScrollingSnapPointsMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingSnapPointsMode_Ignore + } +} +extension WinUI.ScrollingSnapPointsMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ScrollingZoomMode { + public static var enabled : WinUI.ScrollingZoomMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingZoomMode_Enabled + } + public static var disabled : WinUI.ScrollingZoomMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CScrollingZoomMode_Disabled + } +} +extension WinUI.ScrollingZoomMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SelectionMode { + public static var single : WinUI.SelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSelectionMode_Single + } + public static var multiple : WinUI.SelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSelectionMode_Multiple + } + public static var extended : WinUI.SelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSelectionMode_Extended + } +} +extension WinUI.SelectionMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SnapPointsType { + public static var none : WinUI.SnapPointsType { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType_None + } + public static var optional : WinUI.SnapPointsType { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType_Optional + } + public static var mandatory : WinUI.SnapPointsType { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType_Mandatory + } + public static var optionalSingle : WinUI.SnapPointsType { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType_OptionalSingle + } + public static var mandatorySingle : WinUI.SnapPointsType { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSnapPointsType_MandatorySingle + } +} +extension WinUI.SnapPointsType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SplitViewDisplayMode { + public static var overlay : WinUI.SplitViewDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode_Overlay + } + public static var inline : WinUI.SplitViewDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode_Inline + } + public static var compactOverlay : WinUI.SplitViewDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode_CompactOverlay + } + public static var compactInline : WinUI.SplitViewDisplayMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewDisplayMode_CompactInline + } +} +extension WinUI.SplitViewDisplayMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SplitViewPanePlacement { + public static var left : WinUI.SplitViewPanePlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewPanePlacement_Left + } + public static var right : WinUI.SplitViewPanePlacement { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CSplitViewPanePlacement_Right + } +} +extension WinUI.SplitViewPanePlacement: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TeachingTipCloseReason { + public static var closeButton : WinUI.TeachingTipCloseReason { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason_CloseButton + } + public static var lightDismiss : WinUI.TeachingTipCloseReason { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason_LightDismiss + } + public static var programmatic : WinUI.TeachingTipCloseReason { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipCloseReason_Programmatic + } +} +extension WinUI.TeachingTipCloseReason: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TeachingTipHeroContentPlacementMode { + public static var auto : WinUI.TeachingTipHeroContentPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipHeroContentPlacementMode_Auto + } + public static var top : WinUI.TeachingTipHeroContentPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipHeroContentPlacementMode_Top + } + public static var bottom : WinUI.TeachingTipHeroContentPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipHeroContentPlacementMode_Bottom + } +} +extension WinUI.TeachingTipHeroContentPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TeachingTipPlacementMode { + public static var auto : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Auto + } + public static var top : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Top + } + public static var bottom : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Bottom + } + public static var left : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Left + } + public static var right : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Right + } + public static var topRight : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_TopRight + } + public static var topLeft : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_TopLeft + } + public static var bottomRight : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_BottomRight + } + public static var bottomLeft : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_BottomLeft + } + public static var leftTop : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_LeftTop + } + public static var leftBottom : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_LeftBottom + } + public static var rightTop : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_RightTop + } + public static var rightBottom : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_RightBottom + } + public static var center : WinUI.TeachingTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipPlacementMode_Center + } +} +extension WinUI.TeachingTipPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TeachingTipTailVisibility { + public static var auto : WinUI.TeachingTipTailVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipTailVisibility_Auto + } + public static var visible : WinUI.TeachingTipTailVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipTailVisibility_Visible + } + public static var collapsed : WinUI.TeachingTipTailVisibility { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTeachingTipTailVisibility_Collapsed + } +} +extension WinUI.TeachingTipTailVisibility: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TreeViewSelectionMode { + public static var none : WinUI.TreeViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTreeViewSelectionMode_None + } + public static var single : WinUI.TreeViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTreeViewSelectionMode_Single + } + public static var multiple : WinUI.TreeViewSelectionMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CTreeViewSelectionMode_Multiple + } +} +extension WinUI.TreeViewSelectionMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.UniformGridLayoutItemsJustification { + public static var start : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_Start + } + public static var center : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_Center + } + public static var end : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_End + } + public static var spaceAround : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_SpaceAround + } + public static var spaceBetween : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_SpaceBetween + } + public static var spaceEvenly : WinUI.UniformGridLayoutItemsJustification { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsJustification_SpaceEvenly + } +} +extension WinUI.UniformGridLayoutItemsJustification: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.UniformGridLayoutItemsStretch { + public static var none : WinUI.UniformGridLayoutItemsStretch { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsStretch_None + } + public static var fill : WinUI.UniformGridLayoutItemsStretch { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsStretch_Fill + } + public static var uniform : WinUI.UniformGridLayoutItemsStretch { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CUniformGridLayoutItemsStretch_Uniform + } +} +extension WinUI.UniformGridLayoutItemsStretch: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ZoomMode { + public static var disabled : WinUI.ZoomMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CZoomMode_Disabled + } + public static var enabled : WinUI.ZoomMode { + __x_ABI_CMicrosoft_CUI_CXaml_CControls_CZoomMode_Enabled + } +} +extension WinUI.ZoomMode: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+ABI.swift new file mode 100644 index 0000000..7063e97 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+ABI.swift @@ -0,0 +1,656 @@ +// 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_CXaml_CData_CIBinding: WindowsFoundation.IID { + .init(Data1: 0x501EA0E8, Data2: 0xEDD4, Data3: 0x59DE, Data4: ( 0x88,0x45,0x76,0xAF,0x2E,0xAB,0xBE,0x00 ))// 501EA0E8-EDD4-59DE-8845-76AF2EABBE00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBase: WindowsFoundation.IID { + .init(Data1: 0x91DDD141, Data2: 0x5944, Data3: 0x50EF, Data4: ( 0xB8,0x5E,0x21,0x8E,0x46,0x3F,0x7A,0x73 ))// 91DDD141-5944-50EF-B85E-218E463F7A73 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBaseFactory: WindowsFoundation.IID { + .init(Data1: 0xC8A866C5, Data2: 0xF6F3, Data3: 0x5F7A, Data4: ( 0x95,0x92,0xD3,0x85,0xAF,0x48,0xBD,0x8F ))// C8A866C5-F6F3-5F7A-9592-D385AF48BD8F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression: WindowsFoundation.IID { + .init(Data1: 0x4C023916, Data2: 0x37BC, Data3: 0x5B07, Data4: ( 0xBC,0x9D,0x15,0xC5,0x47,0xBD,0x9B,0x26 ))// 4C023916-37BC-5B07-BC9D-15C547BD9B26 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBase: WindowsFoundation.IID { + .init(Data1: 0x8825E5A9, Data2: 0xD9A3, Data3: 0x5E87, Data4: ( 0xBC,0xD8,0xC6,0x31,0x33,0xD2,0x90,0x29 ))// 8825E5A9-D9A3-5E87-BCD8-C63133D29029 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBaseFactory: WindowsFoundation.IID { + .init(Data1: 0x41D643B9, Data2: 0x2629, Data3: 0x5451, Data4: ( 0xA7,0x16,0x59,0x6C,0x08,0x48,0xB5,0xDC ))// 41D643B9-2629-5451-A716-596C0848B5DC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionFactory: WindowsFoundation.IID { + .init(Data1: 0x086CAE14, Data2: 0x81A1, Data3: 0x588B, Data4: ( 0xB6,0x19,0x05,0xEE,0x84,0xC0,0xF0,0x89 ))// 086CAE14-81A1-588B-B619-05EE84C0F089 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingFactory: WindowsFoundation.IID { + .init(Data1: 0xCB2DE749, Data2: 0xB115, Data3: 0x5F67, Data4: ( 0xB6,0x4A,0x79,0x7D,0x54,0x88,0x5D,0x5C ))// CB2DE749-B115-5F67-B64A-797D54885D5C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange: WindowsFoundation.IID { + .init(Data1: 0xEBA09846, Data2: 0x2554, Data3: 0x5B86, Data4: ( 0xAC,0x17,0x61,0x4F,0x05,0x10,0x5F,0xA2 ))// EBA09846-2554-5B86-AC17-614F05105FA2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRangeFactory: WindowsFoundation.IID { + .init(Data1: 0x9FC73213, Data2: 0xEDA0, Data3: 0x5238, Data4: ( 0xAA,0x2C,0x40,0x1C,0x99,0x21,0xF0,0xF9 ))// 9FC73213-EDA0-5238-AA2C-401C9921F0F9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChanged: WindowsFoundation.IID { + .init(Data1: 0x90B17601, Data2: 0xB065, Data3: 0x586E, Data4: ( 0x83,0xD9,0x9A,0xDC,0x3A,0x69,0x52,0x84 ))// 90B17601-B065-586E-83D9-9ADC3A695284 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x63D0C952, Data2: 0x396B, Data3: 0x54F4, Data4: ( 0xAF,0x8C,0xBA,0x87,0x24,0xA4,0x27,0xBF ))// 63D0C952-396B-54F4-AF8C-BA8724A427BF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x7C0C27A8, Data2: 0x0B41, Data3: 0x5070, Data4: ( 0xB1,0x60,0xFC,0x9A,0xE9,0x60,0xA3,0x6C ))// 7C0C27A8-0B41-5070-B160-FC9AE960A36C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource: WindowsFoundation.IID { + .init(Data1: 0x7FFC8126, Data2: 0x5DD8, Data3: 0x58BB, Data4: ( 0xB6,0x86,0xC7,0x1E,0xDD,0xEA,0x07,0xB2 ))// 7FFC8126-5DD8-58BB-B686-C71EDDEA07B2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x8518522C, Data2: 0x85E3, Data3: 0x5AE1, Data4: ( 0xB9,0xE9,0x28,0xEA,0x43,0xC2,0x05,0x1E ))// 8518522C-85E3-5AE1-B9E9-28EA43C2051E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverter: WindowsFoundation.IID { + .init(Data1: 0xAFDD2BFF, Data2: 0x10F5, Data3: 0x5173, Data4: ( 0xB7,0xC0,0x35,0x90,0xBD,0x96,0xCB,0x35 ))// AFDD2BFF-10F5-5173-B7C0-3590BD96CB35 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xE3DE52F6, Data2: 0x1E32, Data3: 0x5DA6, Data4: ( 0xBB,0x2D,0xB5,0xB6,0x09,0x6C,0x96,0x2D ))// E3DE52F6-1E32-5DA6-BB2D-B5B6096C962D +} + +public enum __ABI_Microsoft_UI_Xaml_Data { + public class IBinding: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding } + + internal func get_PathImpl() throws -> WinUI.PropertyPath? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Path(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PathImpl(_ value: WinUI.PropertyPath?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Path(pThis, RawPointer(value))) + } + } + + internal func get_ModeImpl() throws -> WinUI.BindingMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CData_CBindingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func put_ModeImpl(_ value: WinUI.BindingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mode(pThis, value)) + } + } + + internal func get_SourceImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_SourceImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Source(pThis, _value)) + } + } + + internal func get_RelativeSourceImpl() throws -> WinUI.RelativeSource? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RelativeSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RelativeSourceImpl(_ value: WinUI.RelativeSource?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RelativeSource(pThis, RawPointer(value))) + } + } + + internal func get_ElementNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ElementNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ElementName(pThis, _value.get())) + } + } + + internal func get_ConverterImpl() throws -> WinUI.AnyIValueConverter? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Converter(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper.unwrapFrom(abi: value) + } + + internal func put_ConverterImpl(_ value: WinUI.AnyIValueConverter?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Converter(pThis, _value)) + } + } + + internal func get_ConverterParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ConverterParameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ConverterParameterImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ConverterParameter(pThis, _value)) + } + } + + internal func get_ConverterLanguageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ConverterLanguage(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ConverterLanguageImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ConverterLanguage(pThis, _value.get())) + } + } + + internal func get_FallbackValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FallbackValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_FallbackValueImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FallbackValue(pThis, _value)) + } + } + + internal func get_TargetNullValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNullValue(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_TargetNullValueImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetNullValue(pThis, _value)) + } + } + + internal func get_UpdateSourceTriggerImpl() throws -> WinUI.UpdateSourceTrigger { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UpdateSourceTrigger(pThis, &value)) + } + return value + } + + internal func put_UpdateSourceTriggerImpl(_ value: WinUI.UpdateSourceTrigger) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UpdateSourceTrigger(pThis, value)) + } + } + + } + + public class IBindingBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBase } + + } + + public class IBindingBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBindingBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBindingBase(value!) + } + + } + + public class IBindingExpression: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression } + + internal func get_DataItemImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataItem(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_ParentBindingImpl() throws -> WinUI.Binding? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ParentBinding(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func UpdateSourceImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.UpdateSource(pThis)) + } + } + + } + + public class IBindingExpressionBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBase } + + } + + public class IBindingExpressionBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBaseFactory } + + } + + public class IBindingExpressionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionFactory } + + } + + public class IBindingFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBinding { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBinding(value!) + } + + } + + public class IItemIndexRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange } + + internal func get_FirstIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FirstIndex(pThis, &value)) + } + return value + } + + internal func get_LengthImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Length(pThis, &value)) + } + return value + } + + internal func get_LastIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LastIndex(pThis, &value)) + } + return value + } + + } + + public class IItemIndexRangeFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRangeFactory } + + internal func CreateInstanceImpl(_ firstIndex: Int32, _ length: UInt32, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IItemIndexRange { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRangeFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, firstIndex, length, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IItemIndexRange(value!) + } + + } + + public class INotifyPropertyChanged: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChanged } + + open func add_PropertyChangedImpl(_ handler: WinUI.PropertyChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Data.PropertyChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChanged.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_PropertyChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_PropertyChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChanged.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_PropertyChanged(pThis, token)) + } + } + + } + + internal static var INotifyPropertyChangedVTable: __x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChangedVtbl = .init( + QueryInterface: { INotifyPropertyChangedWrapper.queryInterface($0, $1, $2) }, + AddRef: { INotifyPropertyChangedWrapper.addRef($0) }, + Release: { INotifyPropertyChangedWrapper.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_Xaml_Data.INotifyPropertyChangedWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Data.INotifyPropertyChanged").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + add_PropertyChanged: { + guard let __unwrapped__instance = INotifyPropertyChangedWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = __ABI_Microsoft_UI_Xaml_Data.PropertyChangedEventHandlerWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.propertyChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_PropertyChanged: { + guard let __unwrapped__instance = INotifyPropertyChangedWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.propertyChanged.removeHandler(token) + return S_OK + } + ) + + public typealias INotifyPropertyChangedWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Data.INotifyPropertyChangedBridge> + public class IPropertyChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgs } + + internal func get_PropertyNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PropertyName(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IPropertyChangedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgsFactory } + + internal func CreateInstanceImpl(_ name: String, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPropertyChangedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let _name = try! HString(name) + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _name.get(), _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPropertyChangedEventArgs(value!) + } + + } + + public class IRelativeSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource } + + internal func get_ModeImpl() throws -> WinUI.RelativeSourceMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CData_CRelativeSourceMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func put_ModeImpl(_ value: WinUI.RelativeSourceMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mode(pThis, value)) + } + } + + } + + public class IRelativeSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSourceFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IRelativeSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IRelativeSource(value!) + } + + } + + public class IValueConverter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverter } + + open func ConvertImpl(_ value: Any?, _ targetType: WinUI.TypeName, _ parameter: Any?, _ language: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + let _targetType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: targetType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + let _language = try! HString(language) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Convert(pThis, _value, _targetType.val, _parameter, _language.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func ConvertBackImpl(_ value: Any?, _ targetType: WinUI.TypeName, _ parameter: Any?, _ language: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + let _targetType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: targetType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + let _language = try! HString(language) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertBack(pThis, _value, _targetType.val, _parameter, _language.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + } + + internal static var IValueConverterVTable: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverterVtbl = .init( + QueryInterface: { IValueConverterWrapper.queryInterface($0, $1, $2) }, + AddRef: { IValueConverterWrapper.addRef($0) }, + Release: { IValueConverterWrapper.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_Xaml_Data.IValueConverterWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Data.IValueConverter").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Convert: { + do { + guard let __unwrapped__instance = IValueConverterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let targetType: WinUI.TypeName = .from(abi: $2) + let parameter: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($3)) + let language: String = .init(from: $4) + let result = try __unwrapped__instance.convert(value, targetType, parameter, language) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($5) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ConvertBack: { + do { + guard let __unwrapped__instance = IValueConverterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let targetType: WinUI.TypeName = .from(abi: $2) + let parameter: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($3)) + let language: String = .init(from: $4) + let result = try __unwrapped__instance.convertBack(value, targetType, parameter, language) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($5) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IValueConverterWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Data.IValueConverterBridge> +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CData_CLoadMoreItemsResult { + public static func from(swift: WinUI.LoadMoreItemsResult) -> __x_ABI_CMicrosoft_CUI_CXaml_CData_CLoadMoreItemsResult { + .init(Count: swift.count) + } + } + // MARK - PropertyChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Data { + public class PropertyChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.PropertyChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias PropertyChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Data.PropertyChangedEventHandlerBridge> + internal static var PropertyChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandlerVtbl = .init( + QueryInterface: { PropertyChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { PropertyChangedEventHandlerWrapper.addRef($0) }, + Release: { PropertyChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = PropertyChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.PropertyChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Data.PropertyChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+Impl.swift new file mode 100644 index 0000000..42dfd1c --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data+Impl.swift @@ -0,0 +1,95 @@ +// 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_Xaml_Data { + public enum INotifyPropertyChangedBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CINotifyPropertyChanged + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChanged + public typealias SwiftProjection = AnyINotifyPropertyChanged + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return INotifyPropertyChangedImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChangedVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class INotifyPropertyChangedImpl: INotifyPropertyChanged, WinRTAbiImpl { + fileprivate typealias Bridge = INotifyPropertyChangedBridge + 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.xaml.data.inotifypropertychanged.propertychanged) + fileprivate lazy var propertyChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PropertyChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PropertyChangedImpl($0) + } + ) + }() + + } + + public enum IValueConverterBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIValueConverter + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IValueConverter + public typealias SwiftProjection = AnyIValueConverter + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IValueConverterImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Data.IValueConverterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IValueConverterImpl: IValueConverter, WinRTAbiImpl { + fileprivate typealias Bridge = IValueConverterBridge + 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.xaml.data.ivalueconverter.convert) + fileprivate func convert(_ value: Any!, _ targetType: WinUI.TypeName, _ parameter: Any!, _ language: String) throws -> Any! { + try _default.ConvertImpl(value, targetType, parameter, language) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.ivalueconverter.convertback) + fileprivate func convertBack(_ value: Any!, _ targetType: WinUI.TypeName, _ parameter: Any!, _ language: String) throws -> Any! { + try _default.ConvertBackImpl(value, targetType, parameter, language) + } + + } + + public class PropertyChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = PropertyChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.PropertyChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data.swift new file mode 100644 index 0000000..5ca5099 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Data.swift @@ -0,0 +1,620 @@ +// 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.xaml.data.bindingmode) +public typealias BindingMode = __x_ABI_CMicrosoft_CUI_CXaml_CData_CBindingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.relativesourcemode) +public typealias RelativeSourceMode = __x_ABI_CMicrosoft_CUI_CXaml_CData_CRelativeSourceMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.updatesourcetrigger) +public typealias UpdateSourceTrigger = __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding) +open class Binding : WinUI.BindingBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBinding + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding + 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_CXaml_CData_CIBinding>?) -> Binding? { + 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 _IBindingFactory : __ABI_Microsoft_UI_Xaml_Data.IBindingFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.Binding")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBindingFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.converter) + public var converter : AnyIValueConverter! { + get { try! _default.get_ConverterImpl() } + set { try! _default.put_ConverterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.converterlanguage) + public var converterLanguage : String { + get { try! _default.get_ConverterLanguageImpl() } + set { try! _default.put_ConverterLanguageImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.converterparameter) + public var converterParameter : Any! { + get { try! _default.get_ConverterParameterImpl() } + set { try! _default.put_ConverterParameterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.elementname) + public var elementName : String { + get { try! _default.get_ElementNameImpl() } + set { try! _default.put_ElementNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.fallbackvalue) + public var fallbackValue : Any! { + get { try! _default.get_FallbackValueImpl() } + set { try! _default.put_FallbackValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.mode) + public var mode : BindingMode { + get { try! _default.get_ModeImpl() } + set { try! _default.put_ModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.path) + public var path : WinUI.PropertyPath! { + get { try! _default.get_PathImpl() } + set { try! _default.put_PathImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.relativesource) + public var relativeSource : RelativeSource! { + get { try! _default.get_RelativeSourceImpl() } + set { try! _default.put_RelativeSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.source) + public var source : Any! { + 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.xaml.data.binding.targetnullvalue) + public var targetNullValue : Any! { + get { try! _default.get_TargetNullValueImpl() } + set { try! _default.put_TargetNullValueImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.binding.updatesourcetrigger) + public var updateSourceTrigger : UpdateSourceTrigger { + get { try! _default.get_UpdateSourceTriggerImpl() } + set { try! _default.put_UpdateSourceTriggerImpl(newValue) } + } + + internal enum IBinding : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Binding + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBinding + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBinding + } + } + internal typealias Composable = IBinding + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingbase) +open class BindingBase : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBase + 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_CXaml_CData_CIBindingBase>?) -> BindingBase? { + 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 _IBindingBaseFactory : __ABI_Microsoft_UI_Xaml_Data.IBindingBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.BindingBase")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBindingBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IBindingBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BindingBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingBase + } + } + internal typealias Composable = IBindingBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingexpression) +open class BindingExpression : WinUI.BindingExpressionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingExpression + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression + 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_CXaml_CData_CIBindingExpression>?) -> BindingExpression? { + 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 _IBindingExpressionFactory : __ABI_Microsoft_UI_Xaml_Data.IBindingExpressionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.BindingExpression")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingexpression.updatesource) + public func updateSource() throws { + try _default.UpdateSourceImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingexpression.dataitem) + public var dataItem : Any! { + get { try! _default.get_DataItemImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingexpression.parentbinding) + public var parentBinding : Binding! { + get { try! _default.get_ParentBindingImpl() } + } + + internal enum IBindingExpression : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BindingExpression + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpression + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingExpression + } + } + internal typealias Composable = IBindingExpression + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.bindingexpressionbase) +open class BindingExpressionBase : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingExpressionBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBase + 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_CXaml_CData_CIBindingExpressionBase>?) -> BindingExpressionBase? { + 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 _IBindingExpressionBaseFactory : __ABI_Microsoft_UI_Xaml_Data.IBindingExpressionBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.BindingExpressionBase")) + + internal enum IBindingExpressionBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BindingExpressionBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIBindingExpressionBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IBindingExpressionBase + } + } + internal typealias Composable = IBindingExpressionBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.itemindexrange) +open class ItemIndexRange : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IItemIndexRange + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange + 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_CXaml_CData_CIItemIndexRange>?) -> ItemIndexRange? { + 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 _IItemIndexRangeFactory : __ABI_Microsoft_UI_Xaml_Data.IItemIndexRangeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.ItemIndexRange")) + + public init(_ firstIndex: Int32, _ length: UInt32) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IItemIndexRangeFactory.CreateInstanceImpl(firstIndex, length, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.itemindexrange.firstindex) + public var firstIndex : Int32 { + get { try! _default.get_FirstIndexImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.itemindexrange.lastindex) + public var lastIndex : Int32 { + get { try! _default.get_LastIndexImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.itemindexrange.length) + public var length : UInt32 { + get { try! _default.get_LengthImpl() } + } + + internal enum IItemIndexRange : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ItemIndexRange + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIItemIndexRange + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IItemIndexRange + } + } + internal typealias Composable = IItemIndexRange + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.propertychangedeventargs) +open class PropertyChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IPropertyChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgs + 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_CXaml_CData_CIPropertyChangedEventArgs>?) -> PropertyChangedEventArgs? { + 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 _IPropertyChangedEventArgsFactory : __ABI_Microsoft_UI_Xaml_Data.IPropertyChangedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.PropertyChangedEventArgs")) + + public init(_ name: String) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IPropertyChangedEventArgsFactory.CreateInstanceImpl(name, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.propertychangedeventargs.propertyname) + public var propertyName : String { + get { try! _default.get_PropertyNameImpl() } + } + + internal enum IPropertyChangedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = PropertyChangedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIPropertyChangedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IPropertyChangedEventArgs + } + } + internal typealias Composable = IPropertyChangedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.relativesource) +open class RelativeSource : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IRelativeSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource + 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_CXaml_CData_CIRelativeSource>?) -> RelativeSource? { + 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 _IRelativeSourceFactory : __ABI_Microsoft_UI_Xaml_Data.IRelativeSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Data.RelativeSource")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IRelativeSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.relativesource.mode) + public var mode : RelativeSourceMode { + get { try! _default.get_ModeImpl() } + set { try! _default.put_ModeImpl(newValue) } + } + + internal enum IRelativeSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = RelativeSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CData_CIRelativeSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Data.IRelativeSource + } + } + internal typealias Composable = IRelativeSource + deinit { + _default = nil + } +} + +public typealias PropertyChangedEventHandler = (Any?, PropertyChangedEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.loadmoreitemsresult) +public struct LoadMoreItemsResult: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.loadmoreitemsresult.count) + public var count: UInt32 = 0 + public init() {} + public init(count: UInt32) { + self.count = count + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CData_CLoadMoreItemsResult) -> LoadMoreItemsResult { + .init(count: abi.Count) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.inotifypropertychanged) +public protocol INotifyPropertyChanged : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.inotifypropertychanged.propertychanged) + var propertyChanged: Event { get } +} + +public extension EventSource where Handler == PropertyChangedEventHandler { + func invoke(_ sender: Any!, _ e: PropertyChangedEventArgs!) { + for handler in getInvocationList() { + handler(sender, e) + } + } +} + +extension INotifyPropertyChanged { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChangedWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChangedWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyINotifyPropertyChanged = any INotifyPropertyChanged + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.ivalueconverter) +public protocol IValueConverter : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.ivalueconverter.convert) + func convert(_ value: Any!, _ targetType: WinUI.TypeName, _ parameter: Any!, _ language: String) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.data.ivalueconverter.convertback) + func convertBack(_ value: Any!, _ targetType: WinUI.TypeName, _ parameter: Any!, _ language: String) throws -> Any! +} + +extension IValueConverter { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Data.IValueConverterWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIValueConverter = any IValueConverter + +extension WinUI.BindingMode { + public static var oneWay : WinUI.BindingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CBindingMode_OneWay + } + public static var oneTime : WinUI.BindingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CBindingMode_OneTime + } + public static var twoWay : WinUI.BindingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CBindingMode_TwoWay + } +} +extension WinUI.BindingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.RelativeSourceMode { + public static var none : WinUI.RelativeSourceMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CRelativeSourceMode_None + } + public static var templatedParent : WinUI.RelativeSourceMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CRelativeSourceMode_TemplatedParent + } + public static var `self` : WinUI.RelativeSourceMode { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CRelativeSourceMode_Self + } +} +extension WinUI.RelativeSourceMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.UpdateSourceTrigger { + public static var `default` : WinUI.UpdateSourceTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger_Default + } + public static var propertyChanged : WinUI.UpdateSourceTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger_PropertyChanged + } + public static var explicit : WinUI.UpdateSourceTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger_Explicit + } + public static var lostFocus : WinUI.UpdateSourceTrigger { + __x_ABI_CMicrosoft_CUI_CXaml_CData_CUpdateSourceTrigger_LostFocus + } +} +extension WinUI.UpdateSourceTrigger: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+ABI.swift new file mode 100644 index 0000000..94dd6e9 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+ABI.swift @@ -0,0 +1,1329 @@ +// 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_CXaml_CDocuments_CIHyperlink: WindowsFoundation.IID { + .init(Data1: 0xAC09BD16, Data2: 0xCDFA, Data3: 0x54C2, Data4: ( 0x8D,0x03,0xA4,0x74,0x18,0x15,0x45,0xB1 ))// AC09BD16-CDFA-54C2-8D03-A474181545B1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkClickEventArgs: WindowsFoundation.IID { + .init(Data1: 0xF8F89552, Data2: 0x873D, Data3: 0x5EF5, Data4: ( 0x82,0xBF,0xC7,0x9A,0x95,0x09,0xB0,0x7C ))// F8F89552-873D-5EF5-82BF-C79A9509B07C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics: WindowsFoundation.IID { + .init(Data1: 0xE13598F4, Data2: 0x7BC7, Data3: 0x5AB9, Data4: ( 0x88,0x5B,0x70,0xF3,0x2F,0x8C,0x95,0x31 ))// E13598F4-7BC7-5AB9-885B-70F32F8C9531 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInline: WindowsFoundation.IID { + .init(Data1: 0x813D427A, Data2: 0x8980, Data3: 0x5A79, Data4: ( 0xA8,0xFA,0xF2,0x79,0x19,0xCF,0xB2,0x4F ))// 813D427A-8980-5A79-A8FA-F27919CFB24F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInlineFactory: WindowsFoundation.IID { + .init(Data1: 0xFD253A36, Data2: 0xFA2B, Data3: 0x5B30, Data4: ( 0x89,0xA8,0x9F,0x57,0x78,0x71,0xEC,0x07 ))// FD253A36-FA2B-5B30-89A8-9F577871EC07 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun: WindowsFoundation.IID { + .init(Data1: 0x1F905239, Data2: 0x37CB, Data3: 0x590B, Data4: ( 0x91,0x32,0x3F,0xFB,0x77,0x41,0x90,0x6E ))// 1F905239-37CB-590B-9132-3FFB7741906E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRunStatics: WindowsFoundation.IID { + .init(Data1: 0x051B3C5B, Data2: 0x7600, Data3: 0x51A5, Data4: ( 0x80,0xC5,0x93,0xEB,0x50,0xFD,0x68,0x4F ))// 051B3C5B-7600-51A5-80C5-93EB50FD684F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan: WindowsFoundation.IID { + .init(Data1: 0x91B93D4D, Data2: 0x4E28, Data3: 0x57B9, Data4: ( 0xBF,0xFB,0x35,0x66,0xC2,0xA3,0xC2,0xA1 ))// 91B93D4D-4E28-57B9-BFFB-3566C2A3C2A1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpanFactory: WindowsFoundation.IID { + .init(Data1: 0xA6E87C16, Data2: 0xC175, Data3: 0x55C8, Data4: ( 0xBB,0xD3,0xCE,0x40,0xF9,0xD0,0xA6,0x80 ))// A6E87C16-C175-55C8-BBD3-CE40F9D0A680 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement: WindowsFoundation.IID { + .init(Data1: 0xA122BA22, Data2: 0x833F, Data3: 0x5220, Data4: ( 0xA4,0x7E,0x6C,0xD5,0x07,0x53,0x1A,0xBE ))// A122BA22-833F-5220-A47E-6CD507531ABE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementFactory: WindowsFoundation.IID { + .init(Data1: 0xDF51FB95, Data2: 0xA5E6, Data3: 0x5B16, Data4: ( 0x8E,0x88,0x9F,0x7C,0xBF,0xA2,0x34,0xB1 ))// DF51FB95-A5E6-5B16-8E88-9F7CBFA234B1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides: WindowsFoundation.IID { + .init(Data1: 0x41B01380, Data2: 0xE49F, Data3: 0x5FDA, Data4: ( 0x8C,0x72,0xAC,0xC1,0xAC,0x1E,0x91,0xDF ))// 41B01380-E49F-5FDA-8C72-ACC1AC1E91DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics: WindowsFoundation.IID { + .init(Data1: 0xC9B55919, Data2: 0xE1FE, Data3: 0x5ACD, Data4: ( 0xBA,0xC7,0xC9,0xD7,0xF4,0x13,0xB3,0x5C ))// C9B55919-E1FE-5ACD-BAC7-C9D7F413B35C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter: WindowsFoundation.IID { + .init(Data1: 0xB756E861, Data2: 0x1D2B, Data3: 0x5F6F, Data4: ( 0x81,0xFD,0xC5,0x1A,0x5B,0xC0,0x68,0xFF ))// B756E861-1D2B-5F6F-81FD-C51A5BC068FF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterFactory: WindowsFoundation.IID { + .init(Data1: 0x69C7311F, Data2: 0xC019, Data3: 0x5B93, Data4: ( 0xB5,0x11,0x81,0x41,0x85,0x43,0xBA,0xB7 ))// 69C7311F-C019-5B93-B511-81418543BAB7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterStatics: WindowsFoundation.IID { + .init(Data1: 0x4975047A, Data2: 0x87AD, Data3: 0x51A2, Data4: ( 0x97,0x7C,0xE7,0x71,0xDE,0x4F,0x40,0x35 ))// 4975047A-87AD-51A2-977C-E771DE4F4035 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer: WindowsFoundation.IID { + .init(Data1: 0x842EB385, Data2: 0xEE41, Data3: 0x5930, Data4: ( 0x97,0x9B,0x43,0x8F,0xA7,0x52,0x5A,0x51 ))// 842EB385-EE41-5930-979B-438FA7525A51 +} + +public enum __ABI_Microsoft_UI_Xaml_Documents { + public class IHyperlink: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink } + + internal func get_NavigateUriImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigateUri(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NavigateUriImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NavigateUri(pThis, RawPointer(value))) + } + } + + internal func get_UnderlineStyleImpl() throws -> WinUI.UnderlineStyle { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CUnderlineStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UnderlineStyle(pThis, &value)) + } + return value + } + + internal func put_UnderlineStyleImpl(_ value: WinUI.UnderlineStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UnderlineStyle(pThis, value)) + } + } + + internal func get_XYFocusLeftImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeft(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusLeftImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeft(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusRightImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRight(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusRightImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRight(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusUpImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUp(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusUpImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUp(pThis, RawPointer(value))) + } + } + + internal func get_XYFocusDownImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDown(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XYFocusDownImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDown(pThis, RawPointer(value))) + } + } + + internal func get_ElementSoundModeImpl() throws -> WinUI.ElementSoundMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundMode(pThis, &value)) + } + return value + } + + internal func put_ElementSoundModeImpl(_ value: WinUI.ElementSoundMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ElementSoundMode(pThis, value)) + } + } + + internal func get_FocusStateImpl() throws -> WinUI.FocusState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusState(pThis, &value)) + } + return value + } + + internal func get_XYFocusUpNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusUpNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusUpNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusDownNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusDownNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusDownNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusLeftNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusLeftNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusLeftNavigationStrategy(pThis, value)) + } + } + + internal func get_XYFocusRightNavigationStrategyImpl() throws -> WinUI.XYFocusNavigationStrategy { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategy(pThis, &value)) + } + return value + } + + internal func put_XYFocusRightNavigationStrategyImpl(_ value: WinUI.XYFocusNavigationStrategy) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusRightNavigationStrategy(pThis, value)) + } + } + + internal func get_IsTabStopImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStop(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTabStopImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTabStop(pThis, .init(from: value))) + } + } + + internal func get_TabIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndex(pThis, &value)) + } + return value + } + + internal func put_TabIndexImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TabIndex(pThis, value)) + } + } + + internal func add_ClickImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Click(pThis, _handler, &token)) + } + return token + } + + internal func remove_ClickImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Click(pThis, token)) + } + } + + internal func add_GotFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.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_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token)) + } + } + + internal func add_LostFocusImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.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_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LostFocus(pThis, token)) + } + } + + internal func FocusImpl(_ value: WinUI.FocusState) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Focus(pThis, value, &result)) + } + return .init(from: result) + } + + } + + public class IHyperlinkClickEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkClickEventArgs } + + } + + public class IHyperlinkStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics } + + internal func get_NavigateUriPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigateUriProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_UnderlineStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UnderlineStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusLeftPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusRightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusUpPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusDownPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementSoundModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementSoundModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FocusStatePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusStateProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusUpNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusUpNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusDownNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusDownNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusLeftNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusLeftNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_XYFocusRightNavigationStrategyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusRightNavigationStrategyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTabStopPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTabStopProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TabIndexPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TabIndexProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IInline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInline } + + } + + public class IInlineFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInlineFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IInline { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInlineFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IInline(value!) + } + + } + + public class IRun: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun } + + internal func get_TextImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Text(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TextImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Text(pThis, _value.get())) + } + } + + internal func get_FlowDirectionImpl() throws -> WinUI.FlowDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirection(pThis, &value)) + } + return value + } + + internal func put_FlowDirectionImpl(_ value: WinUI.FlowDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FlowDirection(pThis, value)) + } + } + + } + + public class IRunStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRunStatics } + + internal func get_FlowDirectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRunStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FlowDirectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISpan: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan } + + internal func get_InlinesImpl() throws -> WinUI.InlineCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Inlines(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_InlinesImpl(_ value: WinUI.InlineCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Inlines(pThis, RawPointer(value))) + } + } + + } + + public class ISpanFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpanFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISpan { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpanFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISpan(value!) + } + + } + + public class ITextElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement } + + internal func get_NameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value)) + } + return .init(from: value) + } + + internal func get_FontSizeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSize(pThis, &value)) + } + return value + } + + internal func put_FontSizeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontSize(pThis, value)) + } + } + + internal func get_FontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FontFamilyImpl(_ value: WinUI.FontFamily?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontFamily(pThis, RawPointer(value))) + } + } + + internal func get_FontWeightImpl() throws -> UWP.FontWeight { + var value: __x_ABI_CWindows_CUI_CText_CFontWeight = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeight(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_FontWeightImpl(_ value: UWP.FontWeight) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontWeight(pThis, .from(swift: value))) + } + } + + internal func get_FontStyleImpl() throws -> UWP.FontStyle { + var value: __x_ABI_CWindows_CUI_CText_CFontStyle = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyle(pThis, &value)) + } + return value + } + + internal func put_FontStyleImpl(_ value: UWP.FontStyle) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStyle(pThis, value)) + } + } + + internal func get_FontStretchImpl() throws -> UWP.FontStretch { + var value: __x_ABI_CWindows_CUI_CText_CFontStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretch(pThis, &value)) + } + return value + } + + internal func put_FontStretchImpl(_ value: UWP.FontStretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FontStretch(pThis, value)) + } + } + + internal func get_CharacterSpacingImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacing(pThis, &value)) + } + return value + } + + internal func put_CharacterSpacingImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CharacterSpacing(pThis, value)) + } + } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func get_LanguageImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Language(pThis, &value)) + } + return .init(from: value) + } + + internal func put_LanguageImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Language(pThis, _value.get())) + } + } + + internal func get_IsTextScaleFactorEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsTextScaleFactorEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsTextScaleFactorEnabled(pThis, .init(from: value))) + } + } + + internal func get_TextDecorationsImpl() throws -> UWP.TextDecorations { + var value: __x_ABI_CWindows_CUI_CText_CTextDecorations = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextDecorations(pThis, &value)) + } + return value + } + + internal func put_TextDecorationsImpl(_ value: UWP.TextDecorations) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TextDecorations(pThis, value)) + } + } + + internal func get_ContentStartImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentStart(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentEndImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentEnd(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementStartImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementStart(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ElementEndImpl() throws -> WinUI.TextPointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ElementEnd(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusOnInteractionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteraction(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowFocusOnInteractionImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowFocusOnInteraction(pThis, .init(from: value))) + } + } + + internal func get_AccessKeyImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKey(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AccessKeyImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKey(pThis, _value.get())) + } + } + + internal func get_ExitDisplayModeOnAccessKeyInvokedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvoked(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExitDisplayModeOnAccessKeyInvokedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitDisplayModeOnAccessKeyInvoked(pThis, .init(from: value))) + } + } + + internal func get_IsAccessKeyScopeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScope(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsAccessKeyScopeImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsAccessKeyScope(pThis, .init(from: value))) + } + } + + internal func get_AccessKeyScopeOwnerImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwner(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_AccessKeyScopeOwnerImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AccessKeyScopeOwner(pThis, RawPointer(value))) + } + } + + internal func get_KeyTipPlacementModeImpl() throws -> WinUI.KeyTipPlacementMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementMode(pThis, &value)) + } + return value + } + + internal func put_KeyTipPlacementModeImpl(_ value: WinUI.KeyTipPlacementMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipPlacementMode(pThis, value)) + } + } + + internal func get_KeyTipHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_KeyTipHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipHorizontalOffset(pThis, value)) + } + } + + internal func get_KeyTipVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_KeyTipVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTipVerticalOffset(pThis, value)) + } + } + + internal func get_XamlRootImpl() throws -> WinUI.XamlRoot? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XamlRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_XamlRootImpl(_ value: WinUI.XamlRoot?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XamlRoot(pThis, RawPointer(value))) + } + } + + internal func add_AccessKeyDisplayRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyDisplayRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayRequested(pThis, token)) + } + } + + internal func add_AccessKeyDisplayDismissedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyDisplayDismissed(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyDisplayDismissedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyDisplayDismissed(pThis, token)) + } + } + + internal func add_AccessKeyInvokedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_AccessKeyInvoked(pThis, _handler, &token)) + } + return token + } + + internal func remove_AccessKeyInvokedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_AccessKeyInvoked(pThis, token)) + } + } + + internal func FindNameImpl(_ name: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindName(pThis, _name.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + } + + public class ITextElementFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementFactory } + + } + + public class ITextElementOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides } + + internal func OnDisconnectVisualChildrenImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDisconnectVisualChildren(pThis)) + } + } + + } + + public class ITextElementStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics } + + internal func get_FontSizePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontSizeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontFamilyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontFamilyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontWeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontWeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStylePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStyleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FontStretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FontStretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CharacterSpacingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CharacterSpacingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LanguagePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LanguageProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsTextScaleFactorEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTextScaleFactorEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TextDecorationsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TextDecorationsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AllowFocusOnInteractionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowFocusOnInteractionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AccessKeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitDisplayModeOnAccessKeyInvokedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitDisplayModeOnAccessKeyInvokedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsAccessKeyScopePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAccessKeyScopeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AccessKeyScopeOwnerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AccessKeyScopeOwnerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipPlacementModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipPlacementModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTipVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTipVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITextHighlighter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter } + + internal func get_RangesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Ranges(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.unwrapFrom(abi: value) + } + + internal func get_ForegroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Foreground(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ForegroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Foreground(pThis, RawPointer(value))) + } + } + + internal func get_BackgroundImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Background(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_BackgroundImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Background(pThis, RawPointer(value))) + } + } + + } + + public class ITextHighlighterFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITextHighlighter { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITextHighlighter(value!) + } + + } + + public class ITextHighlighterStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterStatics } + + internal func get_ForegroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ForegroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BackgroundPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighterStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BackgroundProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITextPointer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer } + + internal func get_ParentImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VisualParentImpl() throws -> WinUI.FrameworkElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VisualParent(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_LogicalDirectionImpl() throws -> WinUI.LogicalDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CLogicalDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_LogicalDirection(pThis, &value)) + } + return value + } + + internal func get_OffsetImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return value + } + + internal func GetCharacterRectImpl(_ direction: WinUI.LogicalDirection) throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCharacterRect(pThis, direction, &result)) + } + return .from(abi: result) + } + + internal func GetPositionAtOffsetImpl(_ offset: Int32, _ direction: WinUI.LogicalDirection) throws -> WinUI.TextPointer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPositionAtOffset(pThis, offset, direction, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + internal typealias ITextElementOverridesWrapper = UnsealedWinRTClassWrapper + internal static var ITextElementOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverridesVtbl = .init( + QueryInterface: { ITextElementOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { ITextElementOverridesWrapper.addRef($0) }, + Release: { ITextElementOverridesWrapper.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_Xaml_Documents.ITextElementOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = ITextElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnDisconnectVisualChildren: { + do { + guard let __unwrapped__instance = ITextElementOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onDisconnectVisualChildren() + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange { + public static func from(swift: WinUI.TextRange) -> __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange { + .init(StartIndex: swift.startIndex, Length: swift.length) + } + } + extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Documents.ITextElementOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+Impl.swift new file mode 100644 index 0000000..fd82385 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents+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_Xaml_Documents { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents.swift new file mode 100644 index 0000000..a5a8385 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Documents.swift @@ -0,0 +1,1108 @@ +// 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.xaml.documents.logicaldirection) +public typealias LogicalDirection = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CLogicalDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.underlinestyle) +public typealias UnderlineStyle = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CUnderlineStyle +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink) +public final class Hyperlink : WinUI.Span { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IHyperlink + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink + 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_CXaml_CDocuments_CIHyperlink>?) -> Hyperlink? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Documents.Hyperlink"))) + } + + private static let _IHyperlinkStatics: __ABI_Microsoft_UI_Xaml_Documents.IHyperlinkStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.Hyperlink")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.elementsoundmodeproperty) + public static var elementSoundModeProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_ElementSoundModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.focusstateproperty) + public static var focusStateProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_FocusStatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.istabstopproperty) + public static var isTabStopProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_IsTabStopPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.navigateuriproperty) + public static var navigateUriProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_NavigateUriPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.tabindexproperty) + public static var tabIndexProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_TabIndexPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.underlinestyleproperty) + public static var underlineStyleProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_UnderlineStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusdownnavigationstrategyproperty) + public static var xyFocusDownNavigationStrategyProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusDownNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusdownproperty) + public static var xyFocusDownProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusDownPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusleftnavigationstrategyproperty) + public static var xyFocusLeftNavigationStrategyProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusLeftNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusleftproperty) + public static var xyFocusLeftProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusLeftPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusrightnavigationstrategyproperty) + public static var xyFocusRightNavigationStrategyProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusRightNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusrightproperty) + public static var xyFocusRightProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusRightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusupnavigationstrategyproperty) + public static var xyFocusUpNavigationStrategyProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusUpNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusupproperty) + public static var xyFocusUpProperty : WinUI.DependencyProperty! { + get { try! _IHyperlinkStatics.get_XYFocusUpPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.focus) + public func focus(_ value: WinUI.FocusState) throws -> Bool { + try _default.FocusImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.elementsoundmode) + public var elementSoundMode : WinUI.ElementSoundMode { + get { try! _default.get_ElementSoundModeImpl() } + set { try! _default.put_ElementSoundModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.focusstate) + public var focusState : WinUI.FocusState { + get { try! _default.get_FocusStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.istabstop) + public var isTabStop : Bool { + get { try! _default.get_IsTabStopImpl() } + set { try! _default.put_IsTabStopImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.navigateuri) + public var navigateUri : WindowsFoundation.Uri! { + get { try! _default.get_NavigateUriImpl() } + set { try! _default.put_NavigateUriImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.tabindex) + public var tabIndex : Int32 { + get { try! _default.get_TabIndexImpl() } + set { try! _default.put_TabIndexImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.underlinestyle) + public var underlineStyle : UnderlineStyle { + get { try! _default.get_UnderlineStyleImpl() } + set { try! _default.put_UnderlineStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusdown) + public var xyFocusDown : WinUI.DependencyObject! { + get { try! _default.get_XYFocusDownImpl() } + set { try! _default.put_XYFocusDownImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusdownnavigationstrategy) + public var xyFocusDownNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusDownNavigationStrategyImpl() } + set { try! _default.put_XYFocusDownNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusleft) + public var xyFocusLeft : WinUI.DependencyObject! { + get { try! _default.get_XYFocusLeftImpl() } + set { try! _default.put_XYFocusLeftImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusleftnavigationstrategy) + public var xyFocusLeftNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusLeftNavigationStrategyImpl() } + set { try! _default.put_XYFocusLeftNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusright) + public var xyFocusRight : WinUI.DependencyObject! { + get { try! _default.get_XYFocusRightImpl() } + set { try! _default.put_XYFocusRightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusrightnavigationstrategy) + public var xyFocusRightNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusRightNavigationStrategyImpl() } + set { try! _default.put_XYFocusRightNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusup) + public var xyFocusUp : WinUI.DependencyObject! { + get { try! _default.get_XYFocusUpImpl() } + set { try! _default.put_XYFocusUpImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.xyfocusupnavigationstrategy) + public var xyFocusUpNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusUpNavigationStrategyImpl() } + set { try! _default.put_XYFocusUpNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.click) + public lazy var click : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ClickImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ClickImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.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.xaml.documents.hyperlink.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) + } + ) + }() + + internal enum ITextElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides + internal typealias Class = Hyperlink + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlink + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IHyperlink + } + } + internal typealias Composable = ITextElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlinkclickeventargs) +public final class HyperlinkClickEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IHyperlinkClickEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIHyperlinkClickEventArgs + 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_CXaml_CDocuments_CIHyperlinkClickEventArgs>?) -> HyperlinkClickEventArgs? { + 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.xaml.documents.inline) +open class Inline : WinUI.TextElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IInline + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInline + 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_CXaml_CDocuments_CIInline>?) -> Inline? { + 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 _IInlineFactory : __ABI_Microsoft_UI_Xaml_Documents.IInlineFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.Inline")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IInlineFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum ITextElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides + internal typealias Class = Inline + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIInline + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IInline + } + } + internal typealias Composable = ITextElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection) +public final class InlineCollection : WinRTClass, IVector, IIterable { + public typealias T = Inline? + private typealias SwiftABI = WinUI.IVectorInline + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline + 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__CXaml__CDocuments__CInline>?) -> InlineCollection? { + 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) + } + // 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.xaml.documents.inlinecollection.getat) + public func getAt(_ index: UInt32) -> Inline? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.indexof) + public func indexOf(_ value: Inline?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.setat) + public func setAt(_ index: UInt32, _ value: Inline?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.insertat) + public func insertAt(_ index: UInt32, _ value: Inline?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.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.xaml.documents.inlinecollection.append) + public func append(_ value: Inline?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableInline! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.inlinecollection.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.xaml.documents.run) +public final class Run : WinUI.Inline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IRun + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun + 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_CXaml_CDocuments_CIRun>?) -> Run? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Documents.Run"))) + } + + private static let _IRunStatics: __ABI_Microsoft_UI_Xaml_Documents.IRunStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.Run")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.run.flowdirectionproperty) + public static var flowDirectionProperty : WinUI.DependencyProperty! { + get { try! _IRunStatics.get_FlowDirectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.run.flowdirection) + public var flowDirection : WinUI.FlowDirection { + get { try! _default.get_FlowDirectionImpl() } + set { try! _default.put_FlowDirectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.run.text) + public var text : String { + get { try! _default.get_TextImpl() } + set { try! _default.put_TextImpl(newValue) } + } + + internal enum ITextElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides + internal typealias Class = Run + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CIRun + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.IRun + } + } + internal typealias Composable = ITextElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.span) +open class Span : WinUI.Inline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ISpan + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan + 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_CXaml_CDocuments_CISpan>?) -> Span? { + 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 _ISpanFactory : __ABI_Microsoft_UI_Xaml_Documents.ISpanFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.Span")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISpanFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.span.inlines) + public var inlines : InlineCollection! { + get { try! _default.get_InlinesImpl() } + set { try! _default.put_InlinesImpl(newValue) } + } + + internal enum ITextElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides + internal typealias Class = Span + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CISpan + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ISpan + } + } + internal typealias Composable = ITextElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement) +open class TextElement : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement + 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_CXaml_CDocuments_CITextElement>?) -> TextElement? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _ITextElementFactory : __ABI_Microsoft_UI_Xaml_Documents.ITextElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.TextElement")) + + private static let _ITextElementStatics: __ABI_Microsoft_UI_Xaml_Documents.ITextElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.TextElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeyproperty) + public class var accessKeyProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_AccessKeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeyscopeownerproperty) + public class var accessKeyScopeOwnerProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_AccessKeyScopeOwnerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.allowfocusoninteractionproperty) + public class var allowFocusOnInteractionProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_AllowFocusOnInteractionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.characterspacingproperty) + public class var characterSpacingProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_CharacterSpacingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.exitdisplaymodeonaccesskeyinvokedproperty) + public class var exitDisplayModeOnAccessKeyInvokedProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_ExitDisplayModeOnAccessKeyInvokedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontfamilyproperty) + public class var fontFamilyProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_FontFamilyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontsizeproperty) + public class var fontSizeProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_FontSizePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontstretchproperty) + public class var fontStretchProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_FontStretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontstyleproperty) + public class var fontStyleProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_FontStylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontweightproperty) + public class var fontWeightProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_FontWeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.isaccesskeyscopeproperty) + public class var isAccessKeyScopeProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_IsAccessKeyScopePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.istextscalefactorenabledproperty) + public class var isTextScaleFactorEnabledProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_IsTextScaleFactorEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytiphorizontaloffsetproperty) + public class var keyTipHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_KeyTipHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytipplacementmodeproperty) + public class var keyTipPlacementModeProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_KeyTipPlacementModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytipverticaloffsetproperty) + public class var keyTipVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_KeyTipVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.languageproperty) + public class var languageProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_LanguagePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.textdecorationsproperty) + public class var textDecorationsProperty : WinUI.DependencyProperty! { + get { try! _ITextElementStatics.get_TextDecorationsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.findname) + public func findName(_ name: String) throws -> Any! { + try _default.FindNameImpl(name) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskey) + public var accessKey : String { + get { try! _default.get_AccessKeyImpl() } + set { try! _default.put_AccessKeyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeyscopeowner) + public var accessKeyScopeOwner : WinUI.DependencyObject! { + get { try! _default.get_AccessKeyScopeOwnerImpl() } + set { try! _default.put_AccessKeyScopeOwnerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.allowfocusoninteraction) + public var allowFocusOnInteraction : Bool { + get { try! _default.get_AllowFocusOnInteractionImpl() } + set { try! _default.put_AllowFocusOnInteractionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.characterspacing) + public var characterSpacing : Int32 { + get { try! _default.get_CharacterSpacingImpl() } + set { try! _default.put_CharacterSpacingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.contentend) + public var contentEnd : TextPointer! { + get { try! _default.get_ContentEndImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.contentstart) + public var contentStart : TextPointer! { + get { try! _default.get_ContentStartImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.elementend) + public var elementEnd : TextPointer! { + get { try! _default.get_ElementEndImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.elementstart) + public var elementStart : TextPointer! { + get { try! _default.get_ElementStartImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.exitdisplaymodeonaccesskeyinvoked) + public var exitDisplayModeOnAccessKeyInvoked : Bool { + get { try! _default.get_ExitDisplayModeOnAccessKeyInvokedImpl() } + set { try! _default.put_ExitDisplayModeOnAccessKeyInvokedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontfamily) + public var fontFamily : WinUI.FontFamily! { + get { try! _default.get_FontFamilyImpl() } + set { try! _default.put_FontFamilyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontsize) + public var fontSize : Double { + get { try! _default.get_FontSizeImpl() } + set { try! _default.put_FontSizeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontstretch) + public var fontStretch : UWP.FontStretch { + get { try! _default.get_FontStretchImpl() } + set { try! _default.put_FontStretchImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontstyle) + public var fontStyle : UWP.FontStyle { + get { try! _default.get_FontStyleImpl() } + set { try! _default.put_FontStyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontweight) + public var fontWeight : UWP.FontWeight { + get { try! _default.get_FontWeightImpl() } + set { try! _default.put_FontWeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.isaccesskeyscope) + public var isAccessKeyScope : Bool { + get { try! _default.get_IsAccessKeyScopeImpl() } + set { try! _default.put_IsAccessKeyScopeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.istextscalefactorenabled) + public var isTextScaleFactorEnabled : Bool { + get { try! _default.get_IsTextScaleFactorEnabledImpl() } + set { try! _default.put_IsTextScaleFactorEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytiphorizontaloffset) + public var keyTipHorizontalOffset : Double { + get { try! _default.get_KeyTipHorizontalOffsetImpl() } + set { try! _default.put_KeyTipHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytipplacementmode) + public var keyTipPlacementMode : WinUI.KeyTipPlacementMode { + get { try! _default.get_KeyTipPlacementModeImpl() } + set { try! _default.put_KeyTipPlacementModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.keytipverticaloffset) + public var keyTipVerticalOffset : Double { + get { try! _default.get_KeyTipVerticalOffsetImpl() } + set { try! _default.put_KeyTipVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.language) + public var language : String { + get { try! _default.get_LanguageImpl() } + set { try! _default.put_LanguageImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.name) + public var name : String { + get { try! _default.get_NameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.textdecorations) + public var textDecorations : UWP.TextDecorations { + get { try! _default.get_TextDecorationsImpl() } + set { try! _default.put_TextDecorationsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.xamlroot) + public var xamlRoot : WinUI.XamlRoot! { + get { try! _default.get_XamlRootImpl() } + set { try! _default.put_XamlRootImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeydisplaydismissed) + public lazy var accessKeyDisplayDismissed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyDisplayDismissedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyDisplayDismissedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeydisplayrequested) + public lazy var accessKeyDisplayRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyDisplayRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyDisplayRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.accesskeyinvoked) + public lazy var accessKeyInvoked : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyInvokedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyInvokedImpl($0) + } + ) + }() + + private lazy var _ITextElementOverrides: __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.ondisconnectvisualchildren) + open func onDisconnectVisualChildren() throws { + try _ITextElementOverrides.OnDisconnectVisualChildrenImpl() + } + + internal enum ITextElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElementOverrides + internal typealias Class = TextElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextElement + } + } + internal typealias Composable = ITextElementOverrides + deinit { + _default = nil + _ITextElementOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter) +open class TextHighlighter : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextHighlighter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter + 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_CXaml_CDocuments_CITextHighlighter>?) -> TextHighlighter? { + 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 _ITextHighlighterFactory : __ABI_Microsoft_UI_Xaml_Documents.ITextHighlighterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.TextHighlighter")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._ITextHighlighterFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITextHighlighterStatics: __ABI_Microsoft_UI_Xaml_Documents.ITextHighlighterStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Documents.TextHighlighter")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter.backgroundproperty) + public class var backgroundProperty : WinUI.DependencyProperty! { + get { try! _ITextHighlighterStatics.get_BackgroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter.foregroundproperty) + public class var foregroundProperty : WinUI.DependencyProperty! { + get { try! _ITextHighlighterStatics.get_ForegroundPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter.background) + public var background : WinUI.Brush! { + get { try! _default.get_BackgroundImpl() } + set { try! _default.put_BackgroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter.foreground) + public var foreground : WinUI.Brush! { + get { try! _default.get_ForegroundImpl() } + set { try! _default.put_ForegroundImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.texthighlighter.ranges) + public var ranges : WindowsFoundation.AnyIVector! { + get { try! _default.get_RangesImpl() } + } + + internal enum ITextHighlighter : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TextHighlighter + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextHighlighter + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextHighlighter + } + } + internal typealias Composable = ITextHighlighter + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer) +public final class TextPointer : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Documents.ITextPointer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CITextPointer + 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_CXaml_CDocuments_CITextPointer>?) -> TextPointer? { + 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.xaml.documents.textpointer.getcharacterrect) + public func getCharacterRect(_ direction: LogicalDirection) throws -> WindowsFoundation.Rect { + try _default.GetCharacterRectImpl(direction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer.getpositionatoffset) + public func getPositionAtOffset(_ offset: Int32, _ direction: LogicalDirection) throws -> TextPointer! { + try _default.GetPositionAtOffsetImpl(offset, direction) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer.logicaldirection) + public var logicalDirection : LogicalDirection { + get { try! _default.get_LogicalDirectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer.offset) + public var offset : Int32 { + get { try! _default.get_OffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer.parent) + public var parent : WinUI.DependencyObject! { + get { try! _default.get_ParentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textpointer.visualparent) + public var visualParent : WinUI.FrameworkElement! { + get { try! _default.get_VisualParentImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textrange) +public struct TextRange: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textrange.startindex) + public var startIndex: Int32 = 0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textrange.length) + public var length: Int32 = 0 + public init() {} + public init(startIndex: Int32, length: Int32) { + self.startIndex = startIndex + self.length = length + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange) -> TextRange { + .init(startIndex: abi.StartIndex, length: abi.Length) + } +} + +extension WinUI.LogicalDirection { + public static var backward : WinUI.LogicalDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CLogicalDirection_Backward + } + public static var forward : WinUI.LogicalDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CLogicalDirection_Forward + } +} +extension WinUI.LogicalDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.UnderlineStyle { + public static var none : WinUI.UnderlineStyle { + __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CUnderlineStyle_None + } + public static var single : WinUI.UnderlineStyle { + __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CUnderlineStyle_Single + } +} +extension WinUI.UnderlineStyle: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+ABI.swift new file mode 100644 index 0000000..18b199a --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+ABI.swift @@ -0,0 +1,444 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource: WindowsFoundation.IID { + .init(Data1: 0x553AF92C, Data2: 0x1381, Data3: 0x51D6, Data4: ( 0xBE,0xE0,0xF3,0x4B,0xEB,0x04,0x2E,0xA8 ))// 553AF92C-1381-51D6-BEE0-F34BEB042EA8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x7D2DB617, Data2: 0x14E7, Data3: 0x5D49, Data4: ( 0xAE,0xEC,0xAE,0x10,0x88,0x7E,0x59,0x5D ))// 7D2DB617-14E7-5D49-AEEC-AE10887E595D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0xCC63D863, Data2: 0x2071, Data3: 0x5F6B, Data4: ( 0xAE,0xF9,0xC0,0xBA,0x35,0xF3,0xB8,0xDF ))// CC63D863-2071-5F6B-AEF9-C0BA35F3B8DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4F5A0E2C, Data2: 0x4DDC, Data3: 0x5C03, Data4: ( 0x93,0x9F,0x6F,0x3B,0xDA,0x56,0x03,0x63 ))// 4F5A0E2C-4DDC-5C03-939F-6F3BDA560363 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview: WindowsFoundation.IID { + .init(Data1: 0xC8AD1EF4, Data2: 0xA93F, Data3: 0x5A25, Data4: ( 0x85,0xBD,0x7C,0x49,0x8D,0x98,0x56,0xD3 ))// C8AD1EF4-A93F-5A25-85BD-7C498D9856D3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics: WindowsFoundation.IID { + .init(Data1: 0x84DA5A6C, Data2: 0x0CFA, Data3: 0x532B, Data4: ( 0x9B,0x15,0xCC,0xD9,0x86,0x37,0x43,0x42 ))// 84DA5A6C-0CFA-532B-9B15-CCD986374342 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager: WindowsFoundation.IID { + .init(Data1: 0x85A2E562, Data2: 0x7E8F, Data3: 0x5333, Data4: ( 0xA1,0x04,0xA3,0xE6,0x72,0xA2,0xFF,0xEE ))// 85A2E562-7E8F-5333-A104-A3E672A2FFEE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2: WindowsFoundation.IID { + .init(Data1: 0xBD67CFF5, Data2: 0xB887, Data3: 0x56DA, Data4: ( 0xB0,0xA2,0xDA,0xD1,0x0A,0x65,0x20,0xE9 ))// BD67CFF5-B887-56DA-B0A2-DAD10A6520E9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics: WindowsFoundation.IID { + .init(Data1: 0x56CB591D, Data2: 0xDE97, Data3: 0x539F, Data4: ( 0x88,0x1D,0x8C,0xCD,0xC4,0x4F,0xA6,0xC4 ))// 56CB591D-DE97-539F-881D-8CCDC44FA6C4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2: WindowsFoundation.IID { + .init(Data1: 0x1062430E, Data2: 0x0898, Data3: 0x5240, Data4: ( 0xBA,0x52,0x89,0xD9,0x22,0x5E,0x7E,0x58 ))// 1062430E-0898-5240-BA52-89D9225E7E58 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IID { + .init(Data1: 0xACCD20E5, Data2: 0x3576, Data3: 0x5262, Data4: ( 0xA3,0xDD,0x99,0x06,0x57,0x68,0x1F,0x1F ))// ACCD20E5-3576-5262-A3DD-990657681F1F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest: WindowsFoundation.IID { + .init(Data1: 0xC883EA8B, Data2: 0x4CE2, Data3: 0x58BE, Data4: ( 0xB5,0x47,0x66,0xDE,0xDF,0x62,0x03,0x12 ))// C883EA8B-4CE2-58BE-B547-66DEDF620312 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory: WindowsFoundation.IID { + .init(Data1: 0x7A5124DD, Data2: 0x2876, Data3: 0x5ED8, Data4: ( 0xB5,0x64,0x58,0x67,0x73,0x1D,0x7F,0x1E ))// 7A5124DD-2876-5ED8-B564-5867731D7F1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult: WindowsFoundation.IID { + .init(Data1: 0xD6BF378E, Data2: 0x2AAC, Data3: 0x5E5B, Data4: ( 0xAC,0x8A,0x6C,0x5D,0x9A,0x4C,0x1C,0xB8 ))// D6BF378E-2AAC-5E5B-AC8A-6C5D9A4C1CB8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory: WindowsFoundation.IID { + .init(Data1: 0xF533F53B, Data2: 0x5C00, Data3: 0x5C88, Data4: ( 0x9A,0x41,0x38,0x88,0xCB,0x86,0xE4,0x95 ))// F533F53B-5C00-5C88-9A41-3888CB86E495 +} + +public enum __ABI_Microsoft_UI_Xaml_Hosting { + public class IDesktopWindowXamlSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource } + + internal func get_ContentImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Content(pThis, RawPointer(value))) + } + } + + internal func get_HasFocusImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasFocus(pThis, &value)) + } + return .init(from: value) + } + + internal func get_SystemBackdropImpl() throws -> WinUI.SystemBackdrop? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SystemBackdrop(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SystemBackdropImpl(_ value: WinUI.SystemBackdrop?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SystemBackdrop(pThis, RawPointer(value))) + } + } + + internal func get_SiteBridgeImpl() throws -> WinAppSDK.DesktopChildSiteBridge? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SiteBridge(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func add_TakeFocusRequestedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_TakeFocusRequested(pThis, _handler, &token)) + } + return token + } + + internal func remove_TakeFocusRequestedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_TakeFocusRequested(pThis, token)) + } + } + + internal func add_GotFocusImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.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_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token)) + } + } + + internal func NavigateFocusImpl(_ request: WinUI.XamlSourceFocusNavigationRequest?) throws -> WinUI.XamlSourceFocusNavigationResult? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.NavigateFocus(pThis, RawPointer(request), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func InitializeImpl(_ parentWindowId: WinAppSDK.WindowId) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Initialize(pThis, .from(swift: parentWindowId))) + } + } + + } + + public class IDesktopWindowXamlSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDesktopWindowXamlSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDesktopWindowXamlSource(value!) + } + + } + + public class IDesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs } + + internal func get_RequestImpl() throws -> WinUI.XamlSourceFocusNavigationRequest? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Request(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs } + + internal func get_RequestImpl() throws -> WinUI.XamlSourceFocusNavigationRequest? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Request(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IElementCompositionPreview: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview } + + } + + public class IElementCompositionPreviewStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics } + + internal func GetElementVisualImpl(_ element: WinUI.UIElement?) throws -> WinAppSDK.Visual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementVisual(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetElementChildVisualImpl(_ element: WinUI.UIElement?) throws -> WinAppSDK.Visual? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetElementChildVisual(pThis, RawPointer(element), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetElementChildVisualImpl(_ element: WinUI.UIElement?, _ visual: WinAppSDK.Visual?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetElementChildVisual(pThis, RawPointer(element), RawPointer(visual))) + } + } + + internal func GetScrollViewerManipulationPropertySetImpl(_ scrollViewer: WinUI.ScrollViewer?) throws -> WinAppSDK.CompositionPropertySet? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetScrollViewerManipulationPropertySet(pThis, RawPointer(scrollViewer), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func SetImplicitShowAnimationImpl(_ element: WinUI.UIElement?, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetImplicitShowAnimation(pThis, RawPointer(element), _animation)) + } + } + + internal func SetImplicitHideAnimationImpl(_ element: WinUI.UIElement?, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetImplicitHideAnimation(pThis, RawPointer(element), _animation)) + } + } + + internal func SetIsTranslationEnabledImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsTranslationEnabled(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func GetPointerPositionPropertySetImpl(_ targetElement: WinUI.UIElement?) throws -> WinAppSDK.CompositionPropertySet? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreviewStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPointerPositionPropertySet(pThis, RawPointer(targetElement), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IWindowsXamlManager: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager } + + } + + public class IWindowsXamlManager2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2 } + + internal func add_XamlShutdownCompletedOnThreadImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_XamlShutdownCompletedOnThread(pThis, _handler, &token)) + } + return token + } + + internal func remove_XamlShutdownCompletedOnThreadImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_XamlShutdownCompletedOnThread(pThis, token)) + } + } + + } + + public class IWindowsXamlManagerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics } + + internal func InitializeForCurrentThreadImpl() throws -> WinUI.WindowsXamlManager? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InitializeForCurrentThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IWindowsXamlManagerStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2 } + + internal func GetForCurrentThreadImpl() throws -> WinUI.WindowsXamlManager? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManagerStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForCurrentThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IXamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs } + + internal func GetDispatcherQueueDeferralImpl() throws -> WindowsFoundation.Deferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDispatcherQueueDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IXamlSourceFocusNavigationRequest: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest } + + internal func get_ReasonImpl() throws -> WinUI.XamlSourceFocusNavigationReason { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Reason(pThis, &value)) + } + return value + } + + internal func get_HintRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HintRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IXamlSourceFocusNavigationRequestFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory } + + internal func CreateInstanceImpl(_ reason: WinUI.XamlSourceFocusNavigationReason) throws -> IXamlSourceFocusNavigationRequest { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, reason, &valueAbi)) + } + } + return IXamlSourceFocusNavigationRequest(value!) + } + + internal func CreateInstanceWithHintRectImpl(_ reason: WinUI.XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect) throws -> IXamlSourceFocusNavigationRequest { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithHintRect(pThis, reason, .from(swift: hintRect), &valueAbi)) + } + } + return IXamlSourceFocusNavigationRequest(value!) + } + + internal func CreateInstanceWithHintRectAndCorrelationIdImpl(_ reason: WinUI.XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) throws -> IXamlSourceFocusNavigationRequest { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequestFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithHintRectAndCorrelationId(pThis, reason, .from(swift: hintRect), .init(from: correlationId), &valueAbi)) + } + } + return IXamlSourceFocusNavigationRequest(value!) + } + + } + + public class IXamlSourceFocusNavigationResult: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult } + + internal func get_WasFocusMovedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_WasFocusMoved(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IXamlSourceFocusNavigationResultFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory } + + internal func CreateInstanceImpl(_ focusMoved: Bool) throws -> IXamlSourceFocusNavigationResult { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResultFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, .init(from: focusMoved), &valueAbi)) + } + } + return IXamlSourceFocusNavigationResult(value!) + } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+Impl.swift new file mode 100644 index 0000000..146d89e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting+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_Xaml_Hosting { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting.swift new file mode 100644 index 0000000..34f97ea --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Hosting.swift @@ -0,0 +1,496 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationreason) +public typealias XamlSourceFocusNavigationReason = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource) +open class DesktopWindowXamlSource : WinRTClass, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource + 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_CXaml_CHosting_CIDesktopWindowXamlSource>?) -> DesktopWindowXamlSource? { + 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 _IDesktopWindowXamlSourceFactory : __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IDesktopWindowXamlSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.navigatefocus) + public func navigateFocus(_ request: XamlSourceFocusNavigationRequest!) throws -> XamlSourceFocusNavigationResult! { + try _default.NavigateFocusImpl(request) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.initialize) + public func initialize(_ parentWindowId: WinAppSDK.WindowId) throws { + try _default.InitializeImpl(parentWindowId) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.content) + public var content : WinUI.UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.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.xaml.hosting.desktopwindowxamlsource.sitebridge) + public var siteBridge : WinAppSDK.DesktopChildSiteBridge! { + get { try! _default.get_SiteBridgeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.systembackdrop) + public var systemBackdrop : WinUI.SystemBackdrop! { + get { try! _default.get_SystemBackdropImpl() } + set { try! _default.put_SystemBackdropImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsource.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.xaml.hosting.desktopwindowxamlsource.takefocusrequested) + public lazy var takeFocusRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_TakeFocusRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_TakeFocusRequestedImpl($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.xaml.hosting.desktopwindowxamlsource.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + internal enum IDesktopWindowXamlSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = DesktopWindowXamlSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSource + } + } + internal typealias Composable = IDesktopWindowXamlSource + deinit { + _default = nil + _IClosable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcegotfocuseventargs) +public final class DesktopWindowXamlSourceGotFocusEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceGotFocusEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs + 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_CXaml_CHosting_CIDesktopWindowXamlSourceGotFocusEventArgs>?) -> DesktopWindowXamlSourceGotFocusEventArgs? { + 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.xaml.hosting.desktopwindowxamlsourcegotfocuseventargs.request) + public var request : XamlSourceFocusNavigationRequest! { + get { try! _default.get_RequestImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.desktopwindowxamlsourcetakefocusrequestedeventargs) +public final class DesktopWindowXamlSourceTakeFocusRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IDesktopWindowXamlSourceTakeFocusRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs + 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_CXaml_CHosting_CIDesktopWindowXamlSourceTakeFocusRequestedEventArgs>?) -> DesktopWindowXamlSourceTakeFocusRequestedEventArgs? { + 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.xaml.hosting.desktopwindowxamlsourcetakefocusrequestedeventargs.request) + public var request : XamlSourceFocusNavigationRequest! { + get { try! _default.get_RequestImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview) +public final class ElementCompositionPreview : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IElementCompositionPreview + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIElementCompositionPreview + 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_CXaml_CHosting_CIElementCompositionPreview>?) -> ElementCompositionPreview? { + 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 _IElementCompositionPreviewStatics: __ABI_Microsoft_UI_Xaml_Hosting.IElementCompositionPreviewStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.ElementCompositionPreview")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getelementvisual) + public static func getElementVisual(_ element: WinUI.UIElement!) -> WinAppSDK.Visual! { + return try! _IElementCompositionPreviewStatics.GetElementVisualImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getelementchildvisual) + public static func getElementChildVisual(_ element: WinUI.UIElement!) -> WinAppSDK.Visual! { + return try! _IElementCompositionPreviewStatics.GetElementChildVisualImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setelementchildvisual) + public static func setElementChildVisual(_ element: WinUI.UIElement!, _ visual: WinAppSDK.Visual!) { + try! _IElementCompositionPreviewStatics.SetElementChildVisualImpl(element, visual) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getscrollviewermanipulationpropertyset) + public static func getScrollViewerManipulationPropertySet(_ scrollViewer: WinUI.ScrollViewer!) -> WinAppSDK.CompositionPropertySet! { + return try! _IElementCompositionPreviewStatics.GetScrollViewerManipulationPropertySetImpl(scrollViewer) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setimplicitshowanimation) + public static func setImplicitShowAnimation(_ element: WinUI.UIElement!, _ animation: WinAppSDK.AnyICompositionAnimationBase!) { + try! _IElementCompositionPreviewStatics.SetImplicitShowAnimationImpl(element, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setimplicithideanimation) + public static func setImplicitHideAnimation(_ element: WinUI.UIElement!, _ animation: WinAppSDK.AnyICompositionAnimationBase!) { + try! _IElementCompositionPreviewStatics.SetImplicitHideAnimationImpl(element, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.setistranslationenabled) + public static func setIsTranslationEnabled(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IElementCompositionPreviewStatics.SetIsTranslationEnabledImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.elementcompositionpreview.getpointerpositionpropertyset) + public static func getPointerPositionPropertySet(_ targetElement: WinUI.UIElement!) -> WinAppSDK.CompositionPropertySet! { + return try! _IElementCompositionPreviewStatics.GetPointerPositionPropertySetImpl(targetElement) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager) +public final class WindowsXamlManager : WinRTClass, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManager + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIWindowsXamlManager + 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_CXaml_CHosting_CIWindowsXamlManager>?) -> WindowsXamlManager? { + 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 _IWindowsXamlManagerStatics: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManagerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.WindowsXamlManager")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.initializeforcurrentthread) + public static func initializeForCurrentThread() -> WindowsXamlManager! { + return try! _IWindowsXamlManagerStatics.InitializeForCurrentThreadImpl() + } + + private static let _IWindowsXamlManagerStatics2: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManagerStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.WindowsXamlManager")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.getforcurrentthread) + public static func getForCurrentThread() -> WindowsXamlManager! { + return try! _IWindowsXamlManagerStatics2.GetForCurrentThreadImpl() + } + + private lazy var _IWindowsXamlManager2: __ABI_Microsoft_UI_Xaml_Hosting.IWindowsXamlManager2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.windowsxamlmanager.xamlshutdowncompletedonthread) + public lazy var xamlShutdownCompletedOnThread : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IWindowsXamlManager2 else { return .init() } + return try! this.add_XamlShutdownCompletedOnThreadImpl($0) + }, + remove: { [weak self] in + try? self?._IWindowsXamlManager2.remove_XamlShutdownCompletedOnThreadImpl($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.xaml.hosting.windowsxamlmanager.close) + public func close() throws { + try _IClosable.CloseImpl() + } + + deinit { + _default = nil + _IWindowsXamlManager2 = nil + _IClosable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlshutdowncompletedonthreadeventargs) +public final class XamlShutdownCompletedOnThreadEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlShutdownCompletedOnThreadEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs + 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_CXaml_CHosting_CIXamlShutdownCompletedOnThreadEventArgs>?) -> XamlShutdownCompletedOnThreadEventArgs? { + 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.xaml.hosting.xamlshutdowncompletedonthreadeventargs.getdispatcherqueuedeferral) + public func getDispatcherQueueDeferral() throws -> WindowsFoundation.Deferral! { + try _default.GetDispatcherQueueDeferralImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest) +public final class XamlSourceFocusNavigationRequest : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationRequest + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationRequest + 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_CXaml_CHosting_CIXamlSourceFocusNavigationRequest>?) -> XamlSourceFocusNavigationRequest? { + 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 _IXamlSourceFocusNavigationRequestFactory: __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationRequestFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest")) + public init(_ reason: XamlSourceFocusNavigationReason) { + super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceImpl(reason)) + } + + public init(_ reason: XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect) { + super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceWithHintRectImpl(reason, hintRect)) + } + + public init(_ reason: XamlSourceFocusNavigationReason, _ hintRect: WindowsFoundation.Rect, _ correlationId: Foundation.UUID) { + super.init(try! Self._IXamlSourceFocusNavigationRequestFactory.CreateInstanceWithHintRectAndCorrelationIdImpl(reason, hintRect, correlationId)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationrequest.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.xaml.hosting.xamlsourcefocusnavigationrequest.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.xaml.hosting.xamlsourcefocusnavigationrequest.reason) + public var reason : XamlSourceFocusNavigationReason { + get { try! _default.get_ReasonImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationresult) +public final class XamlSourceFocusNavigationResult : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationResult + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CIXamlSourceFocusNavigationResult + 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_CXaml_CHosting_CIXamlSourceFocusNavigationResult>?) -> XamlSourceFocusNavigationResult? { + 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 _IXamlSourceFocusNavigationResultFactory: __ABI_Microsoft_UI_Xaml_Hosting.IXamlSourceFocusNavigationResultFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Hosting.XamlSourceFocusNavigationResult")) + public init(_ focusMoved: Bool) { + super.init(try! Self._IXamlSourceFocusNavigationResultFactory.CreateInstanceImpl(focusMoved)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.hosting.xamlsourcefocusnavigationresult.wasfocusmoved) + public var wasFocusMoved : Bool { + get { try! _default.get_WasFocusMovedImpl() } + } + + deinit { + _default = nil + } +} + +extension WinUI.XamlSourceFocusNavigationReason { + public static var programmatic : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Programmatic + } + public static var restore : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Restore + } + public static var first : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_First + } + public static var last : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Last + } + public static var left : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Left + } + public static var up : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Up + } + public static var right : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Right + } + public static var down : WinUI.XamlSourceFocusNavigationReason { + __x_ABI_CMicrosoft_CUI_CXaml_CHosting_CXamlSourceFocusNavigationReason_Down + } +} +extension WinUI.XamlSourceFocusNavigationReason: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+ABI.swift new file mode 100644 index 0000000..f59c46e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+ABI.swift @@ -0,0 +1,2476 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayDismissedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x125A83D8, Data2: 0x7F86, Data3: 0x5EA9, Data4: ( 0x90,0x63,0xB9,0x40,0x7E,0x64,0x45,0x87 ))// 125A83D8-7F86-5EA9-9063-B9407E644587 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xC4ED84D8, Data2: 0x2B27, Data3: 0x59B1, Data4: ( 0x9C,0xF0,0x7F,0x91,0x64,0xDE,0x58,0xCB ))// C4ED84D8-2B27-59B1-9CF0-7F9164DE58CB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xD00C11A4, Data2: 0xF9FB, Data3: 0x5707, Data4: ( 0x96,0x92,0x98,0xB8,0x0B,0xB8,0x54,0x6D ))// D00C11A4-F9FB-5707-9692-98B80BB8546D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE26CA5BB, Data2: 0x34C3, Data3: 0x5C1E, Data4: ( 0x9A,0x16,0x00,0xB8,0x0B,0x07,0xA8,0x99 ))// E26CA5BB-34C3-5C1E-9A16-00B80B07A899 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand: WindowsFoundation.IID { + .init(Data1: 0xE5AF3542, Data2: 0xCA67, Data3: 0x4081, Data4: ( 0x99,0x5B,0x70,0x9D,0xD1,0x37,0x92,0xDF ))// E5AF3542-CA67-4081-995B-709DD13792DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIContextRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xBCEDCB98, Data2: 0x77B5, Data3: 0x53C0, Data4: ( 0x80,0x2E,0xFD,0x52,0xF3,0x80,0x6E,0x51 ))// BCEDCB98-77B5-53C0-802E-FD52F3806E51 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x32B9549D, Data2: 0x11D8, Data3: 0x53A5, Data4: ( 0xA9,0x53,0x02,0x40,0x95,0x37,0xA1,0x1F ))// 32B9549D-11D8-53A5-A953-02409537A11F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions: WindowsFoundation.IID { + .init(Data1: 0x7F88E76B, Data2: 0x7417, Data3: 0x5447, Data4: ( 0xAE,0xD4,0x2F,0xAB,0xD2,0x91,0xBD,0xC6 ))// 7F88E76B-7417-5447-AED4-2FABD291BDC6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManager: WindowsFoundation.IID { + .init(Data1: 0x9FD07BC5, Data2: 0xD2D4, Data3: 0x53FE, Data4: ( 0xA3,0x1A,0x84,0x6D,0xE8,0xB7,0xA2,0x57 ))// 9FD07BC5-D2D4-53FE-A31A-846DE8B7A257 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerGotFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x50ACA341, Data2: 0x4519, Data3: 0x59CF, Data4: ( 0x83,0xB1,0xC9,0xC4,0x5C,0xFD,0xB8,0x16 ))// 50ACA341-4519-59CF-83B1-C9C45CFDB816 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerLostFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFDAF2C3F, Data2: 0xA22E, Data3: 0x5902, Data4: ( 0xAB,0xCE,0xB6,0x07,0x58,0xFB,0xED,0x1E ))// FDAF2C3F-A22E-5902-ABCE-B60758FBED1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics: WindowsFoundation.IID { + .init(Data1: 0xE73DCE04, Data2: 0xE23A, Data3: 0x5FB3, Data4: ( 0x96,0xAB,0x7D,0xF0,0x4C,0x51,0xDF,0xF2 ))// E73DCE04-E23A-5FB3-96AB-7DF04C51DFF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusMovementResult: WindowsFoundation.IID { + .init(Data1: 0xA46259FD, Data2: 0x3EDD, Data3: 0x554B, Data4: ( 0xA1,0x88,0x0A,0x47,0xB7,0x1E,0x4E,0x1A ))// A46259FD-3EDD-554B-A188-0A47B71E4E1A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x37FD3AF0, Data2: 0xBD3C, Data3: 0x5BF5, Data4: ( 0xA9,0xCD,0x71,0xA1,0xE8,0x7A,0xF9,0x50 ))// 37FD3AF0-BD3C-5BF5-A9CD-71A1E87AF950 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8272A4B2, Data2: 0x2221, Data3: 0x551E, Data4: ( 0xB0,0xBB,0x16,0xE2,0x91,0x38,0xAB,0x20 ))// 8272A4B2-2221-551E-B0BB-16E29138AB20 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior: WindowsFoundation.IID { + .init(Data1: 0xD60029B7, Data2: 0xF0CD, Data3: 0x5AEA, Data4: ( 0xAB,0xE5,0x74,0x10,0xD0,0x91,0x18,0xC6 ))// D60029B7-F0CD-5AEA-ABE5-7410D09118C6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior: WindowsFoundation.IID { + .init(Data1: 0x27B4BD03, Data2: 0x9149, Data3: 0x5691, Data4: ( 0xBC,0xE5,0xFA,0x33,0xB3,0x2C,0x4A,0x81 ))// 27B4BD03-9149-5691-BCE5-FA33B32C4A81 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior: WindowsFoundation.IID { + .init(Data1: 0xD4F91CF5, Data2: 0x3317, Data3: 0x5914, Data4: ( 0xB2,0x5A,0xEA,0x6E,0xE5,0x5B,0x96,0xD0 ))// D4F91CF5-3317-5914-B25A-EA6EE55B96D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScope: WindowsFoundation.IID { + .init(Data1: 0x76EA58B1, Data2: 0xE910, Data3: 0x5176, Data4: ( 0x91,0x47,0x69,0x5C,0xC9,0x5E,0x7D,0xA2 ))// 76EA58B1-E910-5176-9147-695CC95E7DA2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeName: WindowsFoundation.IID { + .init(Data1: 0xEE99A66D, Data2: 0x28D0, Data3: 0x53CB, Data4: ( 0x82,0xEE,0x1B,0x6E,0xE5,0x8B,0xCC,0x35 ))// EE99A66D-28D0-53CB-82EE-1B6EE58BCC35 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeNameFactory: WindowsFoundation.IID { + .init(Data1: 0xFEEC2EFD, Data2: 0xBC09, Data3: 0x5CD6, Data4: ( 0x9B,0x47,0x6D,0x35,0xD1,0xD8,0x7C,0x61 ))// FEEC2EFD-BC09-5CD6-9B47-6D35D1D87C61 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xEE357007, Data2: 0xA2D6, Data3: 0x5C75, Data4: ( 0x94,0x31,0x05,0xFD,0x66,0xEC,0x79,0x15 ))// EE357007-A2D6-5C75-9431-05FD66EC7915 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator: WindowsFoundation.IID { + .init(Data1: 0x6F8BF1E2, Data2: 0x4E91, Data3: 0x5CF9, Data4: ( 0xA6,0xBE,0x47,0x70,0xCA,0xF3,0xD7,0x70 ))// 6F8BF1E2-4E91-5CF9-A6BE-4770CAF3D770 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorFactory: WindowsFoundation.IID { + .init(Data1: 0xCA1D410A, Data2: 0xAF2A, Data3: 0x51B9, Data4: ( 0xA1,0xDE,0x6C,0x0A,0xF9,0xF3,0xB5,0x98 ))// CA1D410A-AF2A-51B9-A1DE-6C0AF9F3B598 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x62C9FDB0, Data2: 0xB574, Data3: 0x527D, Data4: ( 0x97,0xEB,0x5C,0x7F,0x67,0x44,0x41,0xE0 ))// 62C9FDB0-B574-527D-97EB-5C7F674441E0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics: WindowsFoundation.IID { + .init(Data1: 0x73E674CA, Data2: 0x73F4, Data3: 0x5E77, Data4: ( 0xB8,0xD6,0xFF,0x78,0x52,0xA6,0x3B,0x0B ))// 73E674CA-73F4-5E77-B8D6-FF7852A63B0B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFA0E5FFA, Data2: 0x2B1B, Data3: 0x52F8, Data4: ( 0xBB,0x66,0xE3,0x5F,0x51,0xE7,0x3C,0xF3 ))// FA0E5FFA-2B1B-52F8-BB66-E35F51E73CF3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xE3BE9E4E, Data2: 0xC5FB, Data3: 0x5859, Data4: ( 0xA8,0x1D,0xCE,0x12,0xFC,0x3A,0x2F,0x4D ))// E3BE9E4E-C5FB-5859-A81D-CE12FC3A2F4D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x51369745, Data2: 0x960F, Data3: 0x54AC, Data4: ( 0x93,0xFA,0x76,0x3D,0x22,0x91,0x0D,0xEA ))// 51369745-960F-54AC-93FA-763D22910DEA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x17D510BE, Data2: 0x5514, Data3: 0x5952, Data4: ( 0x9A,0xFD,0x95,0x9B,0x60,0xAB,0x93,0x94 ))// 17D510BE-5514-5952-9AFD-959B60AB9394 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot: WindowsFoundation.IID { + .init(Data1: 0x286BABA4, Data2: 0x313D, Data3: 0x507C, Data4: ( 0xAD,0xC5,0xF7,0x39,0x73,0x2C,0xEA,0x27 ))// 286BABA4-313D-507C-ADC5-F739732CEA27 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivotFactory: WindowsFoundation.IID { + .init(Data1: 0x67143CCD, Data2: 0xEA6C, Data3: 0x5FE2, Data4: ( 0xBE,0xF2,0xAD,0xCB,0xD7,0xAF,0x52,0xFD ))// 67143CCD-EA6C-5FE2-BEF2-ADCBD7AF52FD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x61857950, Data2: 0x5821, Data3: 0x5652, Data4: ( 0x9F,0xDF,0xC6,0x27,0x7C,0x58,0x86,0xF5 ))// 61857950-5821-5652-9FDF-C6277C5886F5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x5681B0DE, Data2: 0x3FA7, Data3: 0x503E, Data4: ( 0x9C,0x46,0xA8,0x03,0x39,0x76,0x02,0x92 ))// 5681B0DE-3FA7-503E-9C46-A80339760292 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x93A99F86, Data2: 0xF5A0, Data3: 0x5326, Data4: ( 0x91,0xB0,0x85,0x1C,0x89,0x7A,0xF7,0x9F ))// 93A99F86-F5A0-5326-91B0-851C897AF79F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs: WindowsFoundation.IID { + .init(Data1: 0xA2D7153A, Data2: 0xCD2A, Data3: 0x59CB, Data4: ( 0xA5,0x74,0xAC,0x82,0xE3,0x0B,0x92,0x01 ))// A2D7153A-CD2A-59CB-A574-AC82E30B9201 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer: WindowsFoundation.IID { + .init(Data1: 0x1F9AFBF5, Data2: 0x11A3, Data3: 0x5E68, Data4: ( 0xAA,0x1B,0x72,0xFE,0xBF,0xA0,0xAB,0x23 ))// 1F9AFBF5-11A3-5E68-AA1B-72FEBFA0AB23 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x66E78A9A, Data2: 0x1BEC, Data3: 0x5F92, Data4: ( 0xB1,0xA1,0xEA,0x63,0x34,0xEE,0x51,0x1C ))// 66E78A9A-1BEC-5F92-B1A1-EA6334EE511C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9BE0D058, Data2: 0x3D26, Data3: 0x5811, Data4: ( 0xB5,0x0A,0x3B,0xB8,0x0C,0xA7,0x66,0xC9 ))// 9BE0D058-3D26-5811-B50A-3BB80CA766C9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3972FAFB, Data2: 0x2915, Data3: 0x5C62, Data4: ( 0xBB,0x6B,0x54,0xAD,0x84,0xFF,0x40,0x0D ))// 3972FAFB-2915-5C62-BB6B-54AD84FF400D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x73F74B8C, Data2: 0x3709, Data3: 0x547E, Data4: ( 0x8E,0x0C,0x51,0xC0,0x3C,0x89,0x12,0x6A ))// 73F74B8C-3709-547E-8E0C-51C03C89126A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xF7A501B9, Data2: 0xE277, Data3: 0x5611, Data4: ( 0x87,0xB0,0x0E,0x06,0x07,0x62,0x21,0x83 ))// F7A501B9-E277-5611-87B0-0E0607622183 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandler: WindowsFoundation.IID { + .init(Data1: 0xFE23C5BD, Data2: 0x4984, Data3: 0x56B6, Data4: ( 0xB9,0x2B,0xFC,0x9D,0x12,0x16,0xB2,0x4E ))// FE23C5BD-4984-56B6-B92B-FC9D1216B24E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandler: WindowsFoundation.IID { + .init(Data1: 0xDB68E7CC, Data2: 0x9A2B, Data3: 0x527D, Data4: ( 0x99,0x89,0x25,0x28,0x4D,0xAC,0xCC,0x03 ))// DB68E7CC-9A2B-527D-9989-25284DACCC03 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xD51DF8DB, Data2: 0x71CD, Data3: 0x5BFD, Data4: ( 0x84,0x26,0x76,0x72,0x18,0xEE,0x55,0xEC ))// D51DF8DB-71CD-5BFD-8426-767218EE55EC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandler: WindowsFoundation.IID { + .init(Data1: 0x83F2D4CE, Data2: 0x105F, Data3: 0x5392, Data4: ( 0xA3,0x8A,0xB7,0x46,0x7B,0x7C,0x2E,0xA5 ))// 83F2D4CE-105F-5392-A38A-B7467B7C2EA5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandler: WindowsFoundation.IID { + .init(Data1: 0x5DE296BD, Data2: 0x6F1C, Data3: 0x5F60, Data4: ( 0x91,0x80,0x10,0x70,0x52,0x82,0x57,0x6C ))// 5DE296BD-6F1C-5F60-9180-10705282576C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x41060669, Data2: 0x304C, Data3: 0x53AC, Data4: ( 0x9D,0x43,0xBC,0x31,0x12,0x35,0xAA,0xE4 ))// 41060669-304C-53AC-9D43-BC311235AAE4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandler: WindowsFoundation.IID { + .init(Data1: 0x44F528F1, Data2: 0xF0E4, Data3: 0x505C, Data4: ( 0xA0,0xBB,0x0C,0x48,0x39,0xB2,0x9D,0xF5 ))// 44F528F1-F0E4-505C-A0BB-0C4839B29DF5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandler: WindowsFoundation.IID { + .init(Data1: 0xA48A71E1, Data2: 0x8BB4, Data3: 0x5597, Data4: ( 0x9E,0x31,0x90,0x3A,0x3F,0x6A,0x04,0xFB ))// A48A71E1-8BB4-5597-9E31-903A3F6A04FB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x5070E32F, Data2: 0x3DC7, Data3: 0x56CF, Data4: ( 0x8F,0xDD,0xDE,0x1B,0x40,0xD0,0xB4,0x72 ))// 5070E32F-3DC7-56CF-8FDD-DE1B40D0B472 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xB60074F3, Data2: 0x125B, Data3: 0x534E, Data4: ( 0x8F,0x9C,0x97,0x69,0xBD,0x3F,0x0F,0x64 ))// B60074F3-125B-534E-8F9C-9769BD3F0F64 +} + +public enum __ABI_Microsoft_UI_Xaml_Input { + public class IAccessKeyDisplayDismissedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayDismissedEventArgs } + + } + + public class IAccessKeyDisplayRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayRequestedEventArgs } + + internal func get_PressedKeysImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PressedKeys(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IAccessKeyInvokedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyInvokedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyInvokedEventArgs.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_CXaml_CInput_CIAccessKeyInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class ICharacterReceivedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs } + + internal func get_CharacterImpl() throws -> Character { + var value: WCHAR = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Character(pThis, &value)) + } + return .init(from: value) + } + + internal func get_KeyStatusImpl() throws -> UWP.CorePhysicalKeyStatus { + var value: __x_ABI_CWindows_CUI_CCore_CCorePhysicalKeyStatus = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyStatus(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs.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_CXaml_CInput_CICharacterReceivedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class ICommand: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand } + + open func add_CanExecuteChangedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CanExecuteChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_CanExecuteChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CanExecuteChanged(pThis, token)) + } + } + + open func CanExecuteImpl(_ parameter: Any?) throws -> Bool { + var result: boolean = 0 + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CanExecute(pThis, _parameter, &result)) + } + return .init(from: result) + } + + open func ExecuteImpl(_ parameter: Any?) throws { + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Execute(pThis, _parameter)) + } + } + + } + + internal static var ICommandVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommandVtbl = .init( + QueryInterface: { ICommandWrapper.queryInterface($0, $1, $2) }, + AddRef: { ICommandWrapper.addRef($0) }, + Release: { ICommandWrapper.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_Xaml_Input.ICommandWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Input.ICommand").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + add_CanExecuteChanged: { + guard let __unwrapped__instance = ICommandWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.canExecuteChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_CanExecuteChanged: { + guard let __unwrapped__instance = ICommandWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.canExecuteChanged.removeHandler(token) + return S_OK + }, + + CanExecute: { + do { + guard let __unwrapped__instance = ICommandWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let parameter: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.canExecute(parameter) + $2?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + Execute: { + do { + guard let __unwrapped__instance = ICommandWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let parameter: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.execute(parameter) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias ICommandWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ICommandBridge> + public class IContextRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIContextRequestedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIContextRequestedEventArgs.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_CXaml_CInput_CIContextRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func TryGetPositionImpl(_ relativeTo: WinUI.UIElement?, _ point: inout WindowsFoundation.Point) throws -> Bool { + var returnValue: boolean = 0 + var _point: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIContextRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryGetPosition(pThis, RawPointer(relativeTo), &_point, &returnValue)) + } + point = .from(abi: _point) + return .init(from: returnValue) + } + + } + + public class IDoubleTappedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs.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_CXaml_CInput_CIDoubleTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + + public class IFindNextElementOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions } + + internal func get_SearchRootImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SearchRoot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SearchRootImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SearchRoot(pThis, RawPointer(value))) + } + } + + internal func get_ExclusionRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExclusionRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ExclusionRectImpl(_ value: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExclusionRect(pThis, .from(swift: value))) + } + } + + internal func get_HintRectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HintRect(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_HintRectImpl(_ value: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HintRect(pThis, .from(swift: value))) + } + } + + internal func get_XYFocusNavigationStrategyOverrideImpl() throws -> WinUI.XYFocusNavigationStrategyOverride { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XYFocusNavigationStrategyOverride(pThis, &value)) + } + return value + } + + internal func put_XYFocusNavigationStrategyOverrideImpl(_ value: WinUI.XYFocusNavigationStrategyOverride) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_XYFocusNavigationStrategyOverride(pThis, value)) + } + } + + } + + public class IFocusManager: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManager } + + } + + public class IFocusManagerGotFocusEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerGotFocusEventArgs } + + internal func get_NewFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerGotFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerGotFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IFocusManagerLostFocusEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerLostFocusEventArgs } + + internal func get_OldFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerLostFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerLostFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IFocusManagerStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics } + + internal func add_GotFocusImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.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_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GotFocus(pThis, token)) + } + } + + internal func add_LostFocusImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.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_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LostFocus(pThis, token)) + } + } + + internal func add_GettingFocusImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_GettingFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_GettingFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_GettingFocus(pThis, token)) + } + } + + internal func add_LosingFocusImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_LosingFocus(pThis, _handler, &token)) + } + return token + } + + internal func remove_LosingFocusImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_LosingFocus(pThis, token)) + } + } + + internal func TryFocusAsyncImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.FocusState) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryFocusAsync(pThis, RawPointer(element), value, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.unwrapFrom(abi: operation) + } + + internal func TryMoveFocusAsyncImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryMoveFocusAsync(pThis, focusNavigationDirection, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.unwrapFrom(abi: operation) + } + + internal func TryMoveFocusWithOptionsAsyncImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection, _ focusNavigationOptions: WinUI.FindNextElementOptions?) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryMoveFocusWithOptionsAsync(pThis, focusNavigationDirection, RawPointer(focusNavigationOptions), &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.unwrapFrom(abi: operation) + } + + internal func TryMoveFocusWithOptionsImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection, _ focusNavigationOptions: WinUI.FindNextElementOptions?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryMoveFocusWithOptions(pThis, focusNavigationDirection, RawPointer(focusNavigationOptions), &result)) + } + return .init(from: result) + } + + internal func FindNextElementImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindNextElement(pThis, focusNavigationDirection, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindFirstFocusableElementImpl(_ searchScope: WinUI.DependencyObject?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindFirstFocusableElement(pThis, RawPointer(searchScope), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindLastFocusableElementImpl(_ searchScope: WinUI.DependencyObject?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindLastFocusableElement(pThis, RawPointer(searchScope), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindNextElementWithOptionsImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection, _ focusNavigationOptions: WinUI.FindNextElementOptions?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindNextElementWithOptions(pThis, focusNavigationDirection, RawPointer(focusNavigationOptions), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindNextFocusableElementImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindNextFocusableElement(pThis, focusNavigationDirection, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func FindNextFocusableElementWithHintImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection, _ hintRect: WindowsFoundation.Rect) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindNextFocusableElementWithHint(pThis, focusNavigationDirection, .from(swift: hintRect), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func TryMoveFocusImpl(_ focusNavigationDirection: WinUI.FocusNavigationDirection) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryMoveFocus(pThis, focusNavigationDirection, &result)) + } + return .init(from: result) + } + + internal func GetFocusedElementImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElement(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func GetFocusedElementWithRootImpl(_ xamlRoot: WinUI.XamlRoot?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetFocusedElementWithRoot(pThis, RawPointer(xamlRoot), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + } + + public class IFocusMovementResult: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusMovementResult } + + internal func get_SucceededImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusMovementResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Succeeded(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IGettingFocusEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs } + + internal func get_OldFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NewFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NewFocusedElementImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NewFocusedElement(pThis, RawPointer(value))) + } + } + + internal func get_FocusStateImpl() throws -> WinUI.FocusState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusState(pThis, &value)) + } + return value + } + + internal func get_DirectionImpl() throws -> WinUI.FocusNavigationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.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_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_InputDeviceImpl() throws -> WinUI.FocusInputDeviceKind { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputDevice(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.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_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + internal func TryCancelImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryCancel(pThis, &result)) + } + return .init(from: result) + } + + internal func TrySetNewFocusedElementImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TrySetNewFocusedElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + } + + public class IHoldingRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_HoldingStateImpl() throws -> WinAppSDK.HoldingState { + var value: __x_ABI_CMicrosoft_CUI_CInput_CHoldingState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HoldingState(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs.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_CXaml_CInput_CIHoldingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + + public class IInertiaExpansionBehavior: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior } + + internal func get_DesiredDecelerationImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredDeceleration(pThis, &value)) + } + return value + } + + internal func put_DesiredDecelerationImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredDeceleration(pThis, value)) + } + } + + internal func get_DesiredExpansionImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredExpansion(pThis, &value)) + } + return value + } + + internal func put_DesiredExpansionImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredExpansion(pThis, value)) + } + } + + } + + public class IInertiaRotationBehavior: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior } + + internal func get_DesiredDecelerationImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredDeceleration(pThis, &value)) + } + return value + } + + internal func put_DesiredDecelerationImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredDeceleration(pThis, value)) + } + } + + internal func get_DesiredRotationImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredRotation(pThis, &value)) + } + return value + } + + internal func put_DesiredRotationImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredRotation(pThis, value)) + } + } + + } + + public class IInertiaTranslationBehavior: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior } + + internal func get_DesiredDecelerationImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredDeceleration(pThis, &value)) + } + return value + } + + internal func put_DesiredDecelerationImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredDeceleration(pThis, value)) + } + } + + internal func get_DesiredDisplacementImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DesiredDisplacement(pThis, &value)) + } + return value + } + + internal func put_DesiredDisplacementImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DesiredDisplacement(pThis, value)) + } + } + + } + + public class IInputScope: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScope } + + internal func get_NamesImpl() throws -> WindowsFoundation.AnyIVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScope.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Names(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.unwrapFrom(abi: value) + } + + } + + public class IInputScopeName: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeName } + + internal func get_NameValueImpl() throws -> WinUI.InputScopeNameValue { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NameValue(pThis, &value)) + } + return value + } + + internal func put_NameValueImpl(_ value: WinUI.InputScopeNameValue) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NameValue(pThis, value)) + } + } + + } + + public class IInputScopeNameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeNameFactory } + + internal func CreateInstanceImpl(_ nameValue: WinUI.InputScopeNameValue) throws -> IInputScopeName { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeNameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, nameValue, &valueAbi)) + } + } + return IInputScopeName(value!) + } + + } + + public class IKeyRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs } + + internal func get_KeyImpl() throws -> UWP.VirtualKey { + var value: __x_ABI_CWindows_CSystem_CVirtualKey = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &value)) + } + return value + } + + internal func get_KeyStatusImpl() throws -> UWP.CorePhysicalKeyStatus { + var value: __x_ABI_CWindows_CUI_CCore_CCorePhysicalKeyStatus = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyStatus(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs.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_CXaml_CInput_CIKeyRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_OriginalKeyImpl() throws -> UWP.VirtualKey { + var value: __x_ABI_CWindows_CSystem_CVirtualKey = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OriginalKey(pThis, &value)) + } + return value + } + + internal func get_DeviceIdImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DeviceId(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IKeyboardAccelerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator } + + internal func get_KeyImpl() throws -> UWP.VirtualKey { + var value: __x_ABI_CWindows_CSystem_CVirtualKey = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &value)) + } + return value + } + + internal func put_KeyImpl(_ value: UWP.VirtualKey) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Key(pThis, value)) + } + } + + internal func get_ModifiersImpl() throws -> UWP.VirtualKeyModifiers { + var value: __x_ABI_CWindows_CSystem_CVirtualKeyModifiers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Modifiers(pThis, &value)) + } + return value + } + + internal func put_ModifiersImpl(_ value: UWP.VirtualKeyModifiers) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Modifiers(pThis, value)) + } + } + + internal func get_IsEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.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_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsEnabled(pThis, .init(from: value))) + } + } + + internal func get_ScopeOwnerImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScopeOwner(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ScopeOwnerImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScopeOwner(pThis, RawPointer(value))) + } + } + + internal func add_InvokedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Invoked(pThis, _handler, &token)) + } + return token + } + + internal func remove_InvokedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Invoked(pThis, token)) + } + } + + } + + public class IKeyboardAcceleratorFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IKeyboardAccelerator { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IKeyboardAccelerator(value!) + } + + } + + public class IKeyboardAcceleratorInvokedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs.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_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_ElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Element(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyboardAcceleratorImpl() throws -> WinUI.KeyboardAccelerator? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyboardAccelerator(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IKeyboardAcceleratorStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics } + + internal func get_KeyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ModifiersPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ModifiersProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScopeOwnerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScopeOwnerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ILosingFocusEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs } + + internal func get_OldFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_NewFocusedElementImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewFocusedElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_NewFocusedElementImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_NewFocusedElement(pThis, RawPointer(value))) + } + } + + internal func get_FocusStateImpl() throws -> WinUI.FocusState { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CFocusState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FocusState(pThis, &value)) + } + return value + } + + internal func get_DirectionImpl() throws -> WinUI.FocusNavigationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.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_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_InputDeviceImpl() throws -> WinUI.FocusInputDeviceKind { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputDevice(pThis, &value)) + } + return value + } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.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_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_CorrelationIdImpl() throws -> Foundation.UUID { + var value: WindowsFoundation.GUID = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CorrelationId(pThis, &value)) + } + return .init(from: value) + } + + internal func TryCancelImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryCancel(pThis, &result)) + } + return .init(from: result) + } + + internal func TrySetNewFocusedElementImpl(_ element: WinUI.DependencyObject?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TrySetNewFocusedElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + } + + public class IManipulationCompletedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs } + + internal func get_ContainerImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_IsInertialImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertial(pThis, &value)) + } + return .init(from: value) + } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(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_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.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_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .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_CXaml_CInput_CIManipulationCompletedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + } + + public class IManipulationDeltaRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs } + + internal func get_ContainerImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_IsInertialImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInertial(pThis, &value)) + } + return .init(from: value) + } + + internal func get_DeltaImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Delta(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(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_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.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_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .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_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IManipulationInertiaStartingRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs } + + internal func get_ContainerImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExpansionBehaviorImpl() throws -> WinUI.InertiaExpansionBehavior? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExpansionBehavior(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ExpansionBehaviorImpl(_ value: WinUI.InertiaExpansionBehavior?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExpansionBehavior(pThis, RawPointer(value))) + } + } + + internal func get_RotationBehaviorImpl() throws -> WinUI.InertiaRotationBehavior? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationBehavior(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RotationBehaviorImpl(_ value: WinUI.InertiaRotationBehavior?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RotationBehavior(pThis, RawPointer(value))) + } + } + + internal func get_TranslationBehaviorImpl() throws -> WinUI.InertiaTranslationBehavior? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslationBehavior(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TranslationBehaviorImpl(_ value: WinUI.InertiaTranslationBehavior?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TranslationBehavior(pThis, RawPointer(value))) + } + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.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_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .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_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_DeltaImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Delta(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(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_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Velocities(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IManipulationPivot: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot } + + internal func get_CenterImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Center(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_CenterImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Center(pThis, .from(swift: value))) + } + } + + internal func get_RadiusImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Radius(pThis, &value)) + } + return value + } + + internal func put_RadiusImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Radius(pThis, value)) + } + } + + } + + public class IManipulationPivotFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivotFactory } + + internal func CreateInstanceWithCenterAndRadiusImpl(_ center: WindowsFoundation.Point, _ radius: Double) throws -> IManipulationPivot { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivotFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithCenterAndRadius(pThis, .from(swift: center), radius, &valueAbi)) + } + } + return IManipulationPivot(value!) + } + + } + + public class IManipulationStartedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs } + + internal func get_ContainerImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PositionImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Position(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs.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_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .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_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_CumulativeImpl() throws -> WinAppSDK.ManipulationDelta { + var value: __x_ABI_CMicrosoft_CUI_CInput_CManipulationDelta = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Cumulative(pThis, &value)) + } + return .from(abi: value) + } + + internal func CompleteImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Complete(pThis)) + } + } + + } + + public class IManipulationStartedRoutedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IManipulationStartedRoutedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IManipulationStartedRoutedEventArgs(value!) + } + + } + + public class IManipulationStartingRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs } + + internal func get_ModeImpl() throws -> WinUI.ManipulationModes { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Mode(pThis, &value)) + } + return value + } + + internal func put_ModeImpl(_ value: WinUI.ManipulationModes) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Mode(pThis, value)) + } + } + + internal func get_ContainerImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Container(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContainerImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Container(pThis, RawPointer(value))) + } + } + + internal func get_PivotImpl() throws -> WinUI.ManipulationPivot? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Pivot(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PivotImpl(_ value: WinUI.ManipulationPivot?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Pivot(pThis, RawPointer(value))) + } + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs.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_CXaml_CInput_CIManipulationStartingRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class INoFocusCandidateFoundEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs } + + internal func get_DirectionImpl() throws -> WinUI.FocusNavigationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs.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_CXaml_CInput_CINoFocusCandidateFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_InputDeviceImpl() throws -> WinUI.FocusInputDeviceKind { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InputDevice(pThis, &value)) + } + return value + } + + } + + public class IPointer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer } + + internal func get_PointerIdImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerId(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_CXaml_CInput_CIPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_IsInContactImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInContact(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsInRangeImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsInRange(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IPointerRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs } + + internal func get_PointerImpl() throws -> WinUI.Pointer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Pointer(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyModifiersImpl() throws -> UWP.VirtualKeyModifiers { + var value: __x_ABI_CWindows_CSystem_CVirtualKeyModifiers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyModifiers(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.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_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_IsGeneratedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsGenerated(pThis, &value)) + } + return .init(from: value) + } + + internal func GetCurrentPointImpl(_ relativeTo: WinUI.UIElement?) throws -> WinAppSDK.PointerPoint? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrentPoint(pThis, RawPointer(relativeTo), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetIntermediatePointsImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.AnyIVector? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIntermediatePoints(pThis, RawPointer(relativeTo), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.unwrapFrom(abi: result) + } + + } + + public class IProcessKeyboardAcceleratorEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs } + + internal func get_KeyImpl() throws -> UWP.VirtualKey { + var value: __x_ABI_CWindows_CSystem_CVirtualKey = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &value)) + } + return value + } + + internal func get_ModifiersImpl() throws -> UWP.VirtualKeyModifiers { + var value: __x_ABI_CWindows_CSystem_CVirtualKeyModifiers = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Modifiers(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs.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_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + } + + public class IRightTappedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs.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_CXaml_CInput_CIRightTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + + public class ITappedRoutedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs } + + internal func get_PointerDeviceTypeImpl() throws -> WinAppSDK.PointerDeviceType { + var value: __x_ABI_CMicrosoft_CUI_CInput_CPointerDeviceType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointerDeviceType(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs.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_CXaml_CInput_CITappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func GetPositionImpl(_ relativeTo: WinUI.UIElement?) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPosition(pThis, RawPointer(relativeTo), &result)) + } + return .from(abi: result) + } + + } + +} +// MARK - DoubleTappedEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class DoubleTappedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.DoubleTappedRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias DoubleTappedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.DoubleTappedEventHandlerBridge> + internal static var DoubleTappedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandlerVtbl = .init( + QueryInterface: { DoubleTappedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DoubleTappedEventHandlerWrapper.addRef($0) }, + Release: { DoubleTappedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DoubleTappedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.DoubleTappedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.DoubleTappedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - HoldingEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class HoldingEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.HoldingRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias HoldingEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.HoldingEventHandlerBridge> + internal static var HoldingEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandlerVtbl = .init( + QueryInterface: { HoldingEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { HoldingEventHandlerWrapper.addRef($0) }, + Release: { HoldingEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = HoldingEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.HoldingRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.HoldingEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - KeyEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class KeyEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.KeyRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias KeyEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.KeyEventHandlerBridge> + internal static var KeyEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandlerVtbl = .init( + QueryInterface: { KeyEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { KeyEventHandlerWrapper.addRef($0) }, + Release: { KeyEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = KeyEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.KeyRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.KeyEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ManipulationCompletedEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class ManipulationCompletedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ManipulationCompletedRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ManipulationCompletedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ManipulationCompletedEventHandlerBridge> + internal static var ManipulationCompletedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandlerVtbl = .init( + QueryInterface: { ManipulationCompletedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ManipulationCompletedEventHandlerWrapper.addRef($0) }, + Release: { ManipulationCompletedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ManipulationCompletedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ManipulationCompletedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ManipulationCompletedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ManipulationDeltaEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class ManipulationDeltaEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ManipulationDeltaRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ManipulationDeltaEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ManipulationDeltaEventHandlerBridge> + internal static var ManipulationDeltaEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandlerVtbl = .init( + QueryInterface: { ManipulationDeltaEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ManipulationDeltaEventHandlerWrapper.addRef($0) }, + Release: { ManipulationDeltaEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ManipulationDeltaEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ManipulationDeltaRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ManipulationDeltaEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ManipulationInertiaStartingEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class ManipulationInertiaStartingEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ManipulationInertiaStartingRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ManipulationInertiaStartingEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ManipulationInertiaStartingEventHandlerBridge> + internal static var ManipulationInertiaStartingEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandlerVtbl = .init( + QueryInterface: { ManipulationInertiaStartingEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ManipulationInertiaStartingEventHandlerWrapper.addRef($0) }, + Release: { ManipulationInertiaStartingEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ManipulationInertiaStartingEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ManipulationInertiaStartingRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ManipulationInertiaStartingEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ManipulationStartedEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class ManipulationStartedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ManipulationStartedRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ManipulationStartedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ManipulationStartedEventHandlerBridge> + internal static var ManipulationStartedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandlerVtbl = .init( + QueryInterface: { ManipulationStartedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ManipulationStartedEventHandlerWrapper.addRef($0) }, + Release: { ManipulationStartedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ManipulationStartedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ManipulationStartedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ManipulationStartedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - ManipulationStartingEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class ManipulationStartingEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.ManipulationStartingRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias ManipulationStartingEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.ManipulationStartingEventHandlerBridge> + internal static var ManipulationStartingEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandlerVtbl = .init( + QueryInterface: { ManipulationStartingEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { ManipulationStartingEventHandlerWrapper.addRef($0) }, + Release: { ManipulationStartingEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = ManipulationStartingEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.ManipulationStartingRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ManipulationStartingEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - PointerEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class PointerEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.PointerRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias PointerEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.PointerEventHandlerBridge> + internal static var PointerEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandlerVtbl = .init( + QueryInterface: { PointerEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { PointerEventHandlerWrapper.addRef($0) }, + Release: { PointerEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = PointerEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.PointerRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.PointerEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - RightTappedEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class RightTappedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.RightTappedRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias RightTappedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.RightTappedEventHandlerBridge> + internal static var RightTappedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandlerVtbl = .init( + QueryInterface: { RightTappedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { RightTappedEventHandlerWrapper.addRef($0) }, + Release: { RightTappedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = RightTappedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.RightTappedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.RightTappedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - TappedEventHandler +extension __ABI_Microsoft_UI_Xaml_Input { + public class TappedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.TappedRoutedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias TappedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Input.TappedEventHandlerBridge> + internal static var TappedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandlerVtbl = .init( + QueryInterface: { TappedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { TappedEventHandlerWrapper.addRef($0) }, + Release: { TappedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = TappedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.TappedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.TappedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+Impl.swift new file mode 100644 index 0000000..3217a5d --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input+Impl.swift @@ -0,0 +1,210 @@ +// 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_Xaml_Input { + public enum ICommandBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICommand + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ICommand + public typealias SwiftProjection = AnyICommand + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return ICommandImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Input.ICommandVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class ICommandImpl: ICommand, WinRTAbiImpl { + fileprivate typealias Bridge = ICommandBridge + 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.xaml.input.icommand.canexecute) + fileprivate func canExecute(_ parameter: Any!) throws -> Bool { + try _default.CanExecuteImpl(parameter) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand.execute) + fileprivate func execute(_ parameter: Any!) throws { + try _default.ExecuteImpl(parameter) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand.canexecutechanged) + fileprivate lazy var canExecuteChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CanExecuteChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CanExecuteChangedImpl($0) + } + ) + }() + + } + + public class DoubleTappedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DoubleTappedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.DoubleTappedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class HoldingEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = HoldingEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.HoldingEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class KeyEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = KeyEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.KeyEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ManipulationCompletedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ManipulationCompletedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ManipulationCompletedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ManipulationDeltaEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ManipulationDeltaEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ManipulationDeltaEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ManipulationInertiaStartingEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ManipulationInertiaStartingEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ManipulationInertiaStartingEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ManipulationStartedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ManipulationStartedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class ManipulationStartingEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = ManipulationStartingEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ManipulationStartingEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class PointerEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = PointerEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.PointerEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class RightTappedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = RightTappedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.RightTappedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class TappedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = TappedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.TappedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input.swift new file mode 100644 index 0000000..491fe1d --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Input.swift @@ -0,0 +1,2283 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusinputdevicekind) +public typealias FocusInputDeviceKind = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusnavigationdirection) +public typealias FocusNavigationDirection = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inputscopenamevalue) +public typealias InputScopeNameValue = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keytipplacementmode) +public typealias KeyTipPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardacceleratorplacementmode) +public typealias KeyboardAcceleratorPlacementMode = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardAcceleratorPlacementMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardnavigationmode) +public typealias KeyboardNavigationMode = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationmodes) +public typealias ManipulationModes = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.xyfocuskeyboardnavigationmode) +public typealias XYFocusKeyboardNavigationMode = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.xyfocusnavigationstrategy) +public typealias XYFocusNavigationStrategy = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.xyfocusnavigationstrategyoverride) +public typealias XYFocusNavigationStrategyOverride = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.accesskeydisplaydismissedeventargs) +public final class AccessKeyDisplayDismissedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IAccessKeyDisplayDismissedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayDismissedEventArgs + 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_CXaml_CInput_CIAccessKeyDisplayDismissedEventArgs>?) -> AccessKeyDisplayDismissedEventArgs? { + 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.Xaml.Input.AccessKeyDisplayDismissedEventArgs"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.accesskeydisplayrequestedeventargs) +public final class AccessKeyDisplayRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IAccessKeyDisplayRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyDisplayRequestedEventArgs + 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_CXaml_CInput_CIAccessKeyDisplayRequestedEventArgs>?) -> AccessKeyDisplayRequestedEventArgs? { + 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.Xaml.Input.AccessKeyDisplayRequestedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.accesskeydisplayrequestedeventargs.pressedkeys) + public var pressedKeys : String { + get { try! _default.get_PressedKeysImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.accesskeyinvokedeventargs) +public final class AccessKeyInvokedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IAccessKeyInvokedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIAccessKeyInvokedEventArgs + 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_CXaml_CInput_CIAccessKeyInvokedEventArgs>?) -> AccessKeyInvokedEventArgs? { + 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.Xaml.Input.AccessKeyInvokedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.accesskeyinvokedeventargs.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.xaml.input.characterreceivedroutedeventargs) +public final class CharacterReceivedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ICharacterReceivedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CICharacterReceivedRoutedEventArgs + 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_CXaml_CInput_CICharacterReceivedRoutedEventArgs>?) -> CharacterReceivedRoutedEventArgs? { + 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.xaml.input.characterreceivedroutedeventargs.character) + public var character : Character { + get { try! _default.get_CharacterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.characterreceivedroutedeventargs.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.xaml.input.characterreceivedroutedeventargs.keystatus) + public var keyStatus : UWP.CorePhysicalKeyStatus { + get { try! _default.get_KeyStatusImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.contextrequestedeventargs) +public final class ContextRequestedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IContextRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIContextRequestedEventArgs + 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_CXaml_CInput_CIContextRequestedEventArgs>?) -> ContextRequestedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.ContextRequestedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.contextrequestedeventargs.trygetposition) + public func tryGetPosition(_ relativeTo: WinUI.UIElement!, _ point: inout WindowsFoundation.Point) throws -> Bool { + try _default.TryGetPositionImpl(relativeTo, &point) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.contextrequestedeventargs.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.xaml.input.doubletappedroutedeventargs) +public final class DoubleTappedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IDoubleTappedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIDoubleTappedRoutedEventArgs + 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_CXaml_CInput_CIDoubleTappedRoutedEventArgs>?) -> DoubleTappedRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.DoubleTappedRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.doubletappedroutedeventargs.getposition) + public func getPosition(_ relativeTo: WinUI.UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.doubletappedroutedeventargs.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.xaml.input.doubletappedroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.findnextelementoptions) +public final class FindNextElementOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IFindNextElementOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFindNextElementOptions + 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_CXaml_CInput_CIFindNextElementOptions>?) -> FindNextElementOptions? { + 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.Xaml.Input.FindNextElementOptions"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.findnextelementoptions.exclusionrect) + public var exclusionRect : WindowsFoundation.Rect { + get { try! _default.get_ExclusionRectImpl() } + set { try! _default.put_ExclusionRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.findnextelementoptions.hintrect) + public var hintRect : WindowsFoundation.Rect { + get { try! _default.get_HintRectImpl() } + set { try! _default.put_HintRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.findnextelementoptions.searchroot) + public var searchRoot : WinUI.DependencyObject! { + get { try! _default.get_SearchRootImpl() } + set { try! _default.put_SearchRootImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.findnextelementoptions.xyfocusnavigationstrategyoverride) + public var xyFocusNavigationStrategyOverride : XYFocusNavigationStrategyOverride { + get { try! _default.get_XYFocusNavigationStrategyOverrideImpl() } + set { try! _default.put_XYFocusNavigationStrategyOverrideImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager) +public final class FocusManager : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IFocusManager + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManager + 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_CXaml_CInput_CIFocusManager>?) -> FocusManager? { + 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 _IFocusManagerStatics: __ABI_Microsoft_UI_Xaml_Input.IFocusManagerStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.FocusManager")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.tryfocusasync) + public static func tryFocusAsync(_ element: WinUI.DependencyObject!, _ value: WinUI.FocusState) -> WindowsFoundation.AnyIAsyncOperation! { + return try! _IFocusManagerStatics.TryFocusAsyncImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.trymovefocusasync) + public static func tryMoveFocusAsync(_ focusNavigationDirection: FocusNavigationDirection) -> WindowsFoundation.AnyIAsyncOperation! { + return try! _IFocusManagerStatics.TryMoveFocusAsyncImpl(focusNavigationDirection) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.trymovefocusasync) + public static func tryMoveFocusAsync(_ focusNavigationDirection: FocusNavigationDirection, _ focusNavigationOptions: FindNextElementOptions!) -> WindowsFoundation.AnyIAsyncOperation! { + return try! _IFocusManagerStatics.TryMoveFocusWithOptionsAsyncImpl(focusNavigationDirection, focusNavigationOptions) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.trymovefocus) + public static func tryMoveFocus(_ focusNavigationDirection: FocusNavigationDirection, _ focusNavigationOptions: FindNextElementOptions!) -> Bool { + return try! _IFocusManagerStatics.TryMoveFocusWithOptionsImpl(focusNavigationDirection, focusNavigationOptions) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findnextelement) + public static func findNextElement(_ focusNavigationDirection: FocusNavigationDirection) -> WinUI.DependencyObject! { + return try! _IFocusManagerStatics.FindNextElementImpl(focusNavigationDirection) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findfirstfocusableelement) + public static func findFirstFocusableElement(_ searchScope: WinUI.DependencyObject!) -> WinUI.DependencyObject! { + return try! _IFocusManagerStatics.FindFirstFocusableElementImpl(searchScope) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findlastfocusableelement) + public static func findLastFocusableElement(_ searchScope: WinUI.DependencyObject!) -> WinUI.DependencyObject! { + return try! _IFocusManagerStatics.FindLastFocusableElementImpl(searchScope) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findnextelement) + public static func findNextElement(_ focusNavigationDirection: FocusNavigationDirection, _ focusNavigationOptions: FindNextElementOptions!) -> WinUI.DependencyObject! { + return try! _IFocusManagerStatics.FindNextElementWithOptionsImpl(focusNavigationDirection, focusNavigationOptions) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findnextfocusableelement) + public static func findNextFocusableElement(_ focusNavigationDirection: FocusNavigationDirection) -> WinUI.UIElement! { + return try! _IFocusManagerStatics.FindNextFocusableElementImpl(focusNavigationDirection) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.findnextfocusableelement) + public static func findNextFocusableElement(_ focusNavigationDirection: FocusNavigationDirection, _ hintRect: WindowsFoundation.Rect) -> WinUI.UIElement! { + return try! _IFocusManagerStatics.FindNextFocusableElementWithHintImpl(focusNavigationDirection, hintRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.trymovefocus) + public static func tryMoveFocus(_ focusNavigationDirection: FocusNavigationDirection) -> Bool { + return try! _IFocusManagerStatics.TryMoveFocusImpl(focusNavigationDirection) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.getfocusedelement) + public static func getFocusedElement() -> Any! { + return try! _IFocusManagerStatics.GetFocusedElementImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.getfocusedelement) + public static func getFocusedElement(_ xamlRoot: WinUI.XamlRoot!) -> Any! { + return try! _IFocusManagerStatics.GetFocusedElementWithRootImpl(xamlRoot) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.gettingfocus) + public static var gettingFocus : Event> = { + .init( + add: { try! _IFocusManagerStatics.add_GettingFocusImpl($0) }, + remove: { try? _IFocusManagerStatics.remove_GettingFocusImpl($0) } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.gotfocus) + public static var gotFocus : Event> = { + .init( + add: { try! _IFocusManagerStatics.add_GotFocusImpl($0) }, + remove: { try? _IFocusManagerStatics.remove_GotFocusImpl($0) } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.losingfocus) + public static var losingFocus : Event> = { + .init( + add: { try! _IFocusManagerStatics.add_LosingFocusImpl($0) }, + remove: { try? _IFocusManagerStatics.remove_LosingFocusImpl($0) } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager.lostfocus) + public static var lostFocus : Event> = { + .init( + add: { try! _IFocusManagerStatics.add_LostFocusImpl($0) }, + remove: { try? _IFocusManagerStatics.remove_LostFocusImpl($0) } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanagergotfocuseventargs) +public final class FocusManagerGotFocusEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IFocusManagerGotFocusEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerGotFocusEventArgs + 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_CXaml_CInput_CIFocusManagerGotFocusEventArgs>?) -> FocusManagerGotFocusEventArgs? { + 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.xaml.input.focusmanagergotfocuseventargs.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.xaml.input.focusmanagergotfocuseventargs.newfocusedelement) + public var newFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_NewFocusedElementImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanagerlostfocuseventargs) +public final class FocusManagerLostFocusEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IFocusManagerLostFocusEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusManagerLostFocusEventArgs + 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_CXaml_CInput_CIFocusManagerLostFocusEventArgs>?) -> FocusManagerLostFocusEventArgs? { + 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.xaml.input.focusmanagerlostfocuseventargs.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.xaml.input.focusmanagerlostfocuseventargs.oldfocusedelement) + public var oldFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_OldFocusedElementImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmovementresult) +public final class FocusMovementResult : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IFocusMovementResult + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIFocusMovementResult + 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_CXaml_CInput_CIFocusMovementResult>?) -> FocusMovementResult? { + 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.xaml.input.focusmovementresult.succeeded) + public var succeeded : Bool { + get { try! _default.get_SucceededImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs) +public final class GettingFocusEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IGettingFocusEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIGettingFocusEventArgs + 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_CXaml_CInput_CIGettingFocusEventArgs>?) -> GettingFocusEventArgs? { + 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.xaml.input.gettingfocuseventargs.trycancel) + public func tryCancel() throws -> Bool { + try _default.TryCancelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.trysetnewfocusedelement) + public func trySetNewFocusedElement(_ element: WinUI.DependencyObject!) throws -> Bool { + try _default.TrySetNewFocusedElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.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.xaml.input.gettingfocuseventargs.direction) + public var direction : FocusNavigationDirection { + get { try! _default.get_DirectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.focusstate) + public var focusState : WinUI.FocusState { + get { try! _default.get_FocusStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.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.xaml.input.gettingfocuseventargs.inputdevice) + public var inputDevice : FocusInputDeviceKind { + get { try! _default.get_InputDeviceImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.newfocusedelement) + public var newFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_NewFocusedElementImpl() } + set { try! _default.put_NewFocusedElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.gettingfocuseventargs.oldfocusedelement) + public var oldFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_OldFocusedElementImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.holdingroutedeventargs) +public final class HoldingRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IHoldingRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIHoldingRoutedEventArgs + 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_CXaml_CInput_CIHoldingRoutedEventArgs>?) -> HoldingRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.HoldingRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.holdingroutedeventargs.getposition) + public func getPosition(_ relativeTo: WinUI.UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.holdingroutedeventargs.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.xaml.input.holdingroutedeventargs.holdingstate) + public var holdingState : WinAppSDK.HoldingState { + get { try! _default.get_HoldingStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.holdingroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiaexpansionbehavior) +public final class InertiaExpansionBehavior : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IInertiaExpansionBehavior + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaExpansionBehavior + 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_CXaml_CInput_CIInertiaExpansionBehavior>?) -> InertiaExpansionBehavior? { + 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.xaml.input.inertiaexpansionbehavior.desireddeceleration) + public var desiredDeceleration : Double { + get { try! _default.get_DesiredDecelerationImpl() } + set { try! _default.put_DesiredDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiaexpansionbehavior.desiredexpansion) + public var desiredExpansion : Double { + get { try! _default.get_DesiredExpansionImpl() } + set { try! _default.put_DesiredExpansionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiarotationbehavior) +public final class InertiaRotationBehavior : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IInertiaRotationBehavior + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaRotationBehavior + 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_CXaml_CInput_CIInertiaRotationBehavior>?) -> InertiaRotationBehavior? { + 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.xaml.input.inertiarotationbehavior.desireddeceleration) + public var desiredDeceleration : Double { + get { try! _default.get_DesiredDecelerationImpl() } + set { try! _default.put_DesiredDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiarotationbehavior.desiredrotation) + public var desiredRotation : Double { + get { try! _default.get_DesiredRotationImpl() } + set { try! _default.put_DesiredRotationImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiatranslationbehavior) +public final class InertiaTranslationBehavior : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IInertiaTranslationBehavior + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInertiaTranslationBehavior + 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_CXaml_CInput_CIInertiaTranslationBehavior>?) -> InertiaTranslationBehavior? { + 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.xaml.input.inertiatranslationbehavior.desireddeceleration) + public var desiredDeceleration : Double { + get { try! _default.get_DesiredDecelerationImpl() } + set { try! _default.put_DesiredDecelerationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inertiatranslationbehavior.desireddisplacement) + public var desiredDisplacement : Double { + get { try! _default.get_DesiredDisplacementImpl() } + set { try! _default.put_DesiredDisplacementImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inputscope) +public final class InputScope : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IInputScope + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScope + 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_CXaml_CInput_CIInputScope>?) -> InputScope? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.InputScope"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inputscope.names) + public var names : WindowsFoundation.AnyIVector! { + get { try! _default.get_NamesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inputscopename) +public final class InputScopeName : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IInputScopeName + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIInputScopeName + 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_CXaml_CInput_CIInputScopeName>?) -> InputScopeName? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.InputScopeName"))) + } + + private static let _IInputScopeNameFactory: __ABI_Microsoft_UI_Xaml_Input.IInputScopeNameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.InputScopeName")) + public init(_ nameValue: InputScopeNameValue) { + super.init(fromAbi: try! Self._IInputScopeNameFactory.CreateInstanceImpl(nameValue)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.inputscopename.namevalue) + public var nameValue : InputScopeNameValue { + get { try! _default.get_NameValueImpl() } + set { try! _default.put_NameValueImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyroutedeventargs) +public final class KeyRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IKeyRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyRoutedEventArgs + 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_CXaml_CInput_CIKeyRoutedEventArgs>?) -> KeyRoutedEventArgs? { + 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.xaml.input.keyroutedeventargs.deviceid) + public var deviceId : String { + get { try! _default.get_DeviceIdImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyroutedeventargs.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.xaml.input.keyroutedeventargs.key) + public var key : UWP.VirtualKey { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyroutedeventargs.keystatus) + public var keyStatus : UWP.CorePhysicalKeyStatus { + get { try! _default.get_KeyStatusImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyroutedeventargs.originalkey) + public var originalKey : UWP.VirtualKey { + get { try! _default.get_OriginalKeyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator) +open class KeyboardAccelerator : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IKeyboardAccelerator + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator + 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_CXaml_CInput_CIKeyboardAccelerator>?) -> KeyboardAccelerator? { + 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 _IKeyboardAcceleratorFactory : __ABI_Microsoft_UI_Xaml_Input.IKeyboardAcceleratorFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.KeyboardAccelerator")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IKeyboardAcceleratorFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IKeyboardAcceleratorStatics: __ABI_Microsoft_UI_Xaml_Input.IKeyboardAcceleratorStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.KeyboardAccelerator")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.isenabledproperty) + public class var isEnabledProperty : WinUI.DependencyProperty! { + get { try! _IKeyboardAcceleratorStatics.get_IsEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.keyproperty) + public class var keyProperty : WinUI.DependencyProperty! { + get { try! _IKeyboardAcceleratorStatics.get_KeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.modifiersproperty) + public class var modifiersProperty : WinUI.DependencyProperty! { + get { try! _IKeyboardAcceleratorStatics.get_ModifiersPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.scopeownerproperty) + public class var scopeOwnerProperty : WinUI.DependencyProperty! { + get { try! _IKeyboardAcceleratorStatics.get_ScopeOwnerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.isenabled) + public var isEnabled : Bool { + get { try! _default.get_IsEnabledImpl() } + set { try! _default.put_IsEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.key) + public var key : UWP.VirtualKey { + get { try! _default.get_KeyImpl() } + set { try! _default.put_KeyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.modifiers) + public var modifiers : UWP.VirtualKeyModifiers { + get { try! _default.get_ModifiersImpl() } + set { try! _default.put_ModifiersImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.scopeowner) + public var scopeOwner : WinUI.DependencyObject! { + get { try! _default.get_ScopeOwnerImpl() } + set { try! _default.put_ScopeOwnerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardaccelerator.invoked) + public lazy var invoked : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_InvokedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_InvokedImpl($0) + } + ) + }() + + internal enum IKeyboardAccelerator : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = KeyboardAccelerator + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAccelerator + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IKeyboardAccelerator + } + } + internal typealias Composable = IKeyboardAccelerator + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardacceleratorinvokedeventargs) +public final class KeyboardAcceleratorInvokedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IKeyboardAcceleratorInvokedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs + 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_CXaml_CInput_CIKeyboardAcceleratorInvokedEventArgs>?) -> KeyboardAcceleratorInvokedEventArgs? { + 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.xaml.input.keyboardacceleratorinvokedeventargs.element) + public var element : WinUI.DependencyObject! { + get { try! _default.get_ElementImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.keyboardacceleratorinvokedeventargs.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.xaml.input.keyboardacceleratorinvokedeventargs.keyboardaccelerator) + public var keyboardAccelerator : KeyboardAccelerator! { + get { try! _default.get_KeyboardAcceleratorImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs) +public final class LosingFocusEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ILosingFocusEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CILosingFocusEventArgs + 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_CXaml_CInput_CILosingFocusEventArgs>?) -> LosingFocusEventArgs? { + 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.xaml.input.losingfocuseventargs.trycancel) + public func tryCancel() throws -> Bool { + try _default.TryCancelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.trysetnewfocusedelement) + public func trySetNewFocusedElement(_ element: WinUI.DependencyObject!) throws -> Bool { + try _default.TrySetNewFocusedElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.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.xaml.input.losingfocuseventargs.direction) + public var direction : FocusNavigationDirection { + get { try! _default.get_DirectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.focusstate) + public var focusState : WinUI.FocusState { + get { try! _default.get_FocusStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.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.xaml.input.losingfocuseventargs.inputdevice) + public var inputDevice : FocusInputDeviceKind { + get { try! _default.get_InputDeviceImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.newfocusedelement) + public var newFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_NewFocusedElementImpl() } + set { try! _default.put_NewFocusedElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.losingfocuseventargs.oldfocusedelement) + public var oldFocusedElement : WinUI.DependencyObject! { + get { try! _default.get_OldFocusedElementImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationcompletedroutedeventargs) +public final class ManipulationCompletedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationCompletedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationCompletedRoutedEventArgs + 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_CXaml_CInput_CIManipulationCompletedRoutedEventArgs>?) -> ManipulationCompletedRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationcompletedroutedeventargs.container) + public var container : WinUI.UIElement! { + get { try! _default.get_ContainerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationcompletedroutedeventargs.cumulative) + public var cumulative : WinAppSDK.ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationcompletedroutedeventargs.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.xaml.input.manipulationcompletedroutedeventargs.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.xaml.input.manipulationcompletedroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationcompletedroutedeventargs.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.xaml.input.manipulationcompletedroutedeventargs.velocities) + public var velocities : WinAppSDK.ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs) +public final class ManipulationDeltaRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationDeltaRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationDeltaRoutedEventArgs + 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_CXaml_CInput_CIManipulationDeltaRoutedEventArgs>?) -> ManipulationDeltaRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.complete) + public func complete() throws { + try _default.CompleteImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.container) + public var container : WinUI.UIElement! { + get { try! _default.get_ContainerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.cumulative) + public var cumulative : WinAppSDK.ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.delta) + public var delta : WinAppSDK.ManipulationDelta { + get { try! _default.get_DeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.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.xaml.input.manipulationdeltaroutedeventargs.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.xaml.input.manipulationdeltaroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationdeltaroutedeventargs.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.xaml.input.manipulationdeltaroutedeventargs.velocities) + public var velocities : WinAppSDK.ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs) +public final class ManipulationInertiaStartingRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationInertiaStartingRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs + 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_CXaml_CInput_CIManipulationInertiaStartingRoutedEventArgs>?) -> ManipulationInertiaStartingRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.container) + public var container : WinUI.UIElement! { + get { try! _default.get_ContainerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.cumulative) + public var cumulative : WinAppSDK.ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.delta) + public var delta : WinAppSDK.ManipulationDelta { + get { try! _default.get_DeltaImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.expansionbehavior) + public var expansionBehavior : InertiaExpansionBehavior! { + get { try! _default.get_ExpansionBehaviorImpl() } + set { try! _default.put_ExpansionBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.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.xaml.input.manipulationinertiastartingroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.rotationbehavior) + public var rotationBehavior : InertiaRotationBehavior! { + get { try! _default.get_RotationBehaviorImpl() } + set { try! _default.put_RotationBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.translationbehavior) + public var translationBehavior : InertiaTranslationBehavior! { + get { try! _default.get_TranslationBehaviorImpl() } + set { try! _default.put_TranslationBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationinertiastartingroutedeventargs.velocities) + public var velocities : WinAppSDK.ManipulationVelocities { + get { try! _default.get_VelocitiesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationpivot) +public final class ManipulationPivot : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationPivot + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationPivot + 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_CXaml_CInput_CIManipulationPivot>?) -> ManipulationPivot? { + 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.Xaml.Input.ManipulationPivot"))) + } + + private static let _IManipulationPivotFactory: __ABI_Microsoft_UI_Xaml_Input.IManipulationPivotFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.ManipulationPivot")) + public init(_ center: WindowsFoundation.Point, _ radius: Double) { + super.init(try! Self._IManipulationPivotFactory.CreateInstanceWithCenterAndRadiusImpl(center, radius)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationpivot.center) + public var center : WindowsFoundation.Point { + 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.xaml.input.manipulationpivot.radius) + public var radius : Double { + 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.xaml.input.manipulationstartedroutedeventargs) +open class ManipulationStartedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationStartedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs + 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_CXaml_CInput_CIManipulationStartedRoutedEventArgs>?) -> ManipulationStartedRoutedEventArgs? { + 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 _IManipulationStartedRoutedEventArgsFactory : __ABI_Microsoft_UI_Xaml_Input.IManipulationStartedRoutedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Input.ManipulationStartedRoutedEventArgs")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IManipulationStartedRoutedEventArgsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartedroutedeventargs.complete) + public func complete() throws { + try _default.CompleteImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartedroutedeventargs.container) + public var container : WinUI.UIElement! { + get { try! _default.get_ContainerImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartedroutedeventargs.cumulative) + public var cumulative : WinAppSDK.ManipulationDelta { + get { try! _default.get_CumulativeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartedroutedeventargs.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.xaml.input.manipulationstartedroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartedroutedeventargs.position) + public var position : WindowsFoundation.Point { + get { try! _default.get_PositionImpl() } + } + + internal enum IManipulationStartedRoutedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ManipulationStartedRoutedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartedRoutedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationStartedRoutedEventArgs + } + } + internal typealias Composable = IManipulationStartedRoutedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartingroutedeventargs) +public final class ManipulationStartingRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IManipulationStartingRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIManipulationStartingRoutedEventArgs + 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_CXaml_CInput_CIManipulationStartingRoutedEventArgs>?) -> ManipulationStartingRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.ManipulationStartingRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartingroutedeventargs.container) + public var container : WinUI.UIElement! { + get { try! _default.get_ContainerImpl() } + set { try! _default.put_ContainerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartingroutedeventargs.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.xaml.input.manipulationstartingroutedeventargs.mode) + public var mode : ManipulationModes { + get { try! _default.get_ModeImpl() } + set { try! _default.put_ModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.manipulationstartingroutedeventargs.pivot) + public var pivot : ManipulationPivot! { + get { try! _default.get_PivotImpl() } + set { try! _default.put_PivotImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.nofocuscandidatefoundeventargs) +public final class NoFocusCandidateFoundEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.INoFocusCandidateFoundEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CINoFocusCandidateFoundEventArgs + 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_CXaml_CInput_CINoFocusCandidateFoundEventArgs>?) -> NoFocusCandidateFoundEventArgs? { + 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.xaml.input.nofocuscandidatefoundeventargs.direction) + public var direction : FocusNavigationDirection { + get { try! _default.get_DirectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.nofocuscandidatefoundeventargs.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.xaml.input.nofocuscandidatefoundeventargs.inputdevice) + public var inputDevice : FocusInputDeviceKind { + get { try! _default.get_InputDeviceImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointer) +public final class Pointer : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IPointer + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointer + 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_CXaml_CInput_CIPointer>?) -> Pointer? { + 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.xaml.input.pointer.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.xaml.input.pointer.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.xaml.input.pointer.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointer.pointerid) + public var pointerId : UInt32 { + get { try! _default.get_PointerIdImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointerroutedeventargs) +public final class PointerRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IPointerRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIPointerRoutedEventArgs + 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_CXaml_CInput_CIPointerRoutedEventArgs>?) -> PointerRoutedEventArgs? { + 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.xaml.input.pointerroutedeventargs.getcurrentpoint) + public func getCurrentPoint(_ relativeTo: WinUI.UIElement!) throws -> WinAppSDK.PointerPoint! { + try _default.GetCurrentPointImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointerroutedeventargs.getintermediatepoints) + public func getIntermediatePoints(_ relativeTo: WinUI.UIElement!) throws -> WindowsFoundation.AnyIVector! { + try _default.GetIntermediatePointsImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointerroutedeventargs.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.xaml.input.pointerroutedeventargs.isgenerated) + public var isGenerated : Bool { + get { try! _default.get_IsGeneratedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointerroutedeventargs.keymodifiers) + public var keyModifiers : UWP.VirtualKeyModifiers { + get { try! _default.get_KeyModifiersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.pointerroutedeventargs.pointer) + public var pointer : Pointer! { + get { try! _default.get_PointerImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.processkeyboardacceleratoreventargs) +public final class ProcessKeyboardAcceleratorEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IProcessKeyboardAcceleratorEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs + 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_CXaml_CInput_CIProcessKeyboardAcceleratorEventArgs>?) -> ProcessKeyboardAcceleratorEventArgs? { + 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.xaml.input.processkeyboardacceleratoreventargs.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.xaml.input.processkeyboardacceleratoreventargs.key) + public var key : UWP.VirtualKey { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.processkeyboardacceleratoreventargs.modifiers) + public var modifiers : UWP.VirtualKeyModifiers { + get { try! _default.get_ModifiersImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.righttappedroutedeventargs) +public final class RightTappedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.IRightTappedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CIRightTappedRoutedEventArgs + 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_CXaml_CInput_CIRightTappedRoutedEventArgs>?) -> RightTappedRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.RightTappedRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.righttappedroutedeventargs.getposition) + public func getPosition(_ relativeTo: WinUI.UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.righttappedroutedeventargs.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.xaml.input.righttappedroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.tappedroutedeventargs) +public final class TappedRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Input.ITappedRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInput_CITappedRoutedEventArgs + 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_CXaml_CInput_CITappedRoutedEventArgs>?) -> TappedRoutedEventArgs? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Input.TappedRoutedEventArgs"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.tappedroutedeventargs.getposition) + public func getPosition(_ relativeTo: WinUI.UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.tappedroutedeventargs.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.xaml.input.tappedroutedeventargs.pointerdevicetype) + public var pointerDeviceType : WinAppSDK.PointerDeviceType { + get { try! _default.get_PointerDeviceTypeImpl() } + } + + deinit { + _default = nil + } +} + +public typealias DoubleTappedEventHandler = (Any?, DoubleTappedRoutedEventArgs?) -> () +public typealias HoldingEventHandler = (Any?, HoldingRoutedEventArgs?) -> () +public typealias KeyEventHandler = (Any?, KeyRoutedEventArgs?) -> () +public typealias ManipulationCompletedEventHandler = (Any?, ManipulationCompletedRoutedEventArgs?) -> () +public typealias ManipulationDeltaEventHandler = (Any?, ManipulationDeltaRoutedEventArgs?) -> () +public typealias ManipulationInertiaStartingEventHandler = (Any?, ManipulationInertiaStartingRoutedEventArgs?) -> () +public typealias ManipulationStartedEventHandler = (Any?, ManipulationStartedRoutedEventArgs?) -> () +public typealias ManipulationStartingEventHandler = (Any?, ManipulationStartingRoutedEventArgs?) -> () +public typealias PointerEventHandler = (Any?, PointerRoutedEventArgs?) -> () +public typealias RightTappedEventHandler = (Any?, RightTappedRoutedEventArgs?) -> () +public typealias TappedEventHandler = (Any?, TappedRoutedEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand) +public protocol ICommand : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand.canexecute) + func canExecute(_ parameter: Any!) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand.execute) + func execute(_ parameter: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.icommand.canexecutechanged) + var canExecuteChanged: Event> { get } +} + +extension ICommand { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Input.ICommandWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyICommand = any ICommand + +extension WinUI.FocusInputDeviceKind { + public static var none : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_None + } + public static var mouse : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_Mouse + } + public static var touch : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_Touch + } + public static var pen : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_Pen + } + public static var keyboard : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_Keyboard + } + public static var gameController : WinUI.FocusInputDeviceKind { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusInputDeviceKind_GameController + } +} +extension WinUI.FocusInputDeviceKind: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FocusNavigationDirection { + public static var next : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Next + } + public static var previous : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Previous + } + public static var up : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Up + } + public static var down : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Down + } + public static var left : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Left + } + public static var right : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_Right + } + public static var none : WinUI.FocusNavigationDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CFocusNavigationDirection_None + } +} +extension WinUI.FocusNavigationDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.InputScopeNameValue { + public static var `default` : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Default + } + public static var url : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Url + } + public static var emailSmtpAddress : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_EmailSmtpAddress + } + public static var personalFullName : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_PersonalFullName + } + public static var currencyAmountAndSymbol : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_CurrencyAmountAndSymbol + } + public static var currencyAmount : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_CurrencyAmount + } + public static var dateMonthNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_DateMonthNumber + } + public static var dateDayNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_DateDayNumber + } + public static var dateYear : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_DateYear + } + public static var digits : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Digits + } + public static var number : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Number + } + public static var password : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Password + } + public static var telephoneNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TelephoneNumber + } + public static var telephoneCountryCode : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TelephoneCountryCode + } + public static var telephoneAreaCode : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TelephoneAreaCode + } + public static var telephoneLocalNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TelephoneLocalNumber + } + public static var timeHour : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TimeHour + } + public static var timeMinutesOrSeconds : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_TimeMinutesOrSeconds + } + public static var numberFullWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_NumberFullWidth + } + public static var alphanumericHalfWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_AlphanumericHalfWidth + } + public static var alphanumericFullWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_AlphanumericFullWidth + } + public static var hiragana : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Hiragana + } + public static var katakanaHalfWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_KatakanaHalfWidth + } + public static var katakanaFullWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_KatakanaFullWidth + } + public static var hanja : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Hanja + } + public static var hangulHalfWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_HangulHalfWidth + } + public static var hangulFullWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_HangulFullWidth + } + public static var search : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Search + } + public static var formula : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Formula + } + public static var searchIncremental : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_SearchIncremental + } + public static var chineseHalfWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_ChineseHalfWidth + } + public static var chineseFullWidth : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_ChineseFullWidth + } + public static var nativeScript : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_NativeScript + } + public static var text : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Text + } + public static var chat : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Chat + } + public static var nameOrPhoneNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_NameOrPhoneNumber + } + public static var emailNameOrAddress : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_EmailNameOrAddress + } + public static var maps : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_Maps + } + public static var numericPassword : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_NumericPassword + } + public static var numericPin : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_NumericPin + } + public static var alphanumericPin : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_AlphanumericPin + } + public static var formulaNumber : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_FormulaNumber + } + public static var chatWithoutEmoji : WinUI.InputScopeNameValue { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CInputScopeNameValue_ChatWithoutEmoji + } +} +extension WinUI.InputScopeNameValue: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.KeyTipPlacementMode { + public static var auto : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Auto + } + public static var bottom : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Bottom + } + public static var top : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Top + } + public static var left : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Left + } + public static var right : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Right + } + public static var center : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Center + } + public static var hidden : WinUI.KeyTipPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyTipPlacementMode_Hidden + } +} +extension WinUI.KeyTipPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.KeyboardAcceleratorPlacementMode { + public static var auto : WinUI.KeyboardAcceleratorPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardAcceleratorPlacementMode_Auto + } + public static var hidden : WinUI.KeyboardAcceleratorPlacementMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardAcceleratorPlacementMode_Hidden + } +} +extension WinUI.KeyboardAcceleratorPlacementMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.KeyboardNavigationMode { + public static var local : WinUI.KeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode_Local + } + public static var cycle : WinUI.KeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode_Cycle + } + public static var once : WinUI.KeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CKeyboardNavigationMode_Once + } +} +extension WinUI.KeyboardNavigationMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ManipulationModes { + public static var none : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_None + } + public static var translateX : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_TranslateX + } + public static var translateY : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_TranslateY + } + public static var translateRailsX : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_TranslateRailsX + } + public static var translateRailsY : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_TranslateRailsY + } + public static var rotate : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_Rotate + } + public static var scale : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_Scale + } + public static var translateInertia : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_TranslateInertia + } + public static var rotateInertia : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_RotateInertia + } + public static var scaleInertia : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_ScaleInertia + } + public static var all : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_All + } + public static var system : WinUI.ManipulationModes { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CManipulationModes_System + } +} +extension WinUI.ManipulationModes: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.XYFocusKeyboardNavigationMode { + public static var auto : WinUI.XYFocusKeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode_Auto + } + public static var enabled : WinUI.XYFocusKeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode_Enabled + } + public static var disabled : WinUI.XYFocusKeyboardNavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusKeyboardNavigationMode_Disabled + } +} +extension WinUI.XYFocusKeyboardNavigationMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.XYFocusNavigationStrategy { + public static var auto : WinUI.XYFocusNavigationStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy_Auto + } + public static var projection : WinUI.XYFocusNavigationStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy_Projection + } + public static var navigationDirectionDistance : WinUI.XYFocusNavigationStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy_NavigationDirectionDistance + } + public static var rectilinearDistance : WinUI.XYFocusNavigationStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategy_RectilinearDistance + } +} +extension WinUI.XYFocusNavigationStrategy: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.XYFocusNavigationStrategyOverride { + public static var none : WinUI.XYFocusNavigationStrategyOverride { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride_None + } + public static var auto : WinUI.XYFocusNavigationStrategyOverride { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride_Auto + } + public static var projection : WinUI.XYFocusNavigationStrategyOverride { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride_Projection + } + public static var navigationDirectionDistance : WinUI.XYFocusNavigationStrategyOverride { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride_NavigationDirectionDistance + } + public static var rectilinearDistance : WinUI.XYFocusNavigationStrategyOverride { + __x_ABI_CMicrosoft_CUI_CXaml_CInput_CXYFocusNavigationStrategyOverride_RectilinearDistance + } +} +extension WinUI.XYFocusNavigationStrategyOverride: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+ABI.swift new file mode 100644 index 0000000..dae4dc2 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+ABI.swift @@ -0,0 +1,651 @@ +// 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_CXaml_CInterop_CIBindableIterable: WindowsFoundation.IID { + .init(Data1: 0x036D2C08, Data2: 0xDF29, Data3: 0x41AF, Data4: ( 0x8A,0xA2,0xD7,0x74,0xBE,0x62,0xBA,0x6F ))// 036D2C08-DF29-41AF-8AA2-D774BE62BA6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator: WindowsFoundation.IID { + .init(Data1: 0x6A1D6C07, Data2: 0x076D, Data3: 0x49F2, Data4: ( 0x83,0x14,0xF5,0x2C,0x9C,0x9A,0x83,0x31 ))// 6A1D6C07-076D-49F2-8314-F52C9C9A8331 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector: WindowsFoundation.IID { + .init(Data1: 0x393DE7DE, Data2: 0x6FD0, Data3: 0x4C0D, Data4: ( 0xBB,0x71,0x47,0x24,0x4A,0x11,0x3E,0x93 ))// 393DE7DE-6FD0-4C0D-BB71-47244A113E93 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView: WindowsFoundation.IID { + .init(Data1: 0x346DD6E7, Data2: 0x976E, Data3: 0x4BC3, Data4: ( 0x81,0x5D,0xEC,0xE2,0x43,0xBC,0x0F,0x33 ))// 346DD6E7-976E-4BC3-815D-ECE243BC0F33 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChanged: WindowsFoundation.IID { + .init(Data1: 0x530155E1, Data2: 0x28A5, Data3: 0x5693, Data4: ( 0x87,0xCE,0x30,0x72,0x4D,0x95,0xA0,0x6D ))// 530155E1-28A5-5693-87CE-30724D95A06D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xDA049FF2, Data2: 0xD2E0, Data3: 0x5FE8, Data4: ( 0x8C,0x7B,0xF8,0x7F,0x26,0x06,0x0B,0x6F ))// DA049FF2-D2E0-5FE8-8C7B-F87F26060B6F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgsFactory: WindowsFoundation.IID { + .init(Data1: 0x5108EBA4, Data2: 0x4892, Data3: 0x5A20, Data4: ( 0x83,0x74,0xA9,0x68,0x15,0xE0,0xFD,0x27 ))// 5108EBA4-4892-5A20-8374-A96815E0FD27 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x8B0909DC, Data2: 0x2005, Data3: 0x5D93, Data4: ( 0xBF,0x8A,0x72,0x5F,0x01,0x7B,0xAA,0x8D ))// 8B0909DC-2005-5D93-BF8A-725F017BAA8D +} + +public enum __ABI_Microsoft_UI_Xaml_Interop { + public class IBindableIterable: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterable } + + open func FirstImpl() throws -> WinUI.AnyIBindableIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Interop.IBindableIteratorWrapper.unwrapFrom(abi: result) + } + + } + + internal static var IBindableIterableVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterableVtbl = .init( + QueryInterface: { IBindableIterableWrapper.queryInterface($0, $1, $2) }, + AddRef: { IBindableIterableWrapper.addRef($0) }, + Release: { IBindableIterableWrapper.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_Xaml_Interop.IBindableIterableWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Interop.IBindableIterable").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + First: { + do { + guard let __unwrapped__instance = IBindableIterableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.first() + let resultWrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableIteratorWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IBindableIterableWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.IBindableIterableBridge> + public class IBindableIterator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator } + + open func get_CurrentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + open func get_HasCurrentImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HasCurrent(pThis, &value)) + } + return .init(from: value) + } + + open func MoveNextImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + + } + + internal static var IBindableIteratorVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIteratorVtbl = .init( + QueryInterface: { IBindableIteratorWrapper.queryInterface($0, $1, $2) }, + AddRef: { IBindableIteratorWrapper.addRef($0) }, + Release: { IBindableIteratorWrapper.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_Xaml_Interop.IBindableIteratorWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Interop.IBindableIterator").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_Current: { + guard let __unwrapped__instance = IBindableIteratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.current + let valueWrapper = __ABI_.AnyWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = IBindableIteratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.hasCurrent + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + MoveNext: { + do { + guard let __unwrapped__instance = IBindableIteratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.moveNext() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IBindableIteratorWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.IBindableIteratorBridge> + public class IBindableVector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector } + + open func GetAtImpl(_ index: UInt32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func get_SizeImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return value + } + + open func GetViewImpl() throws -> WinUI.AnyIBindableVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorViewWrapper.unwrapFrom(abi: result) + } + + open func IndexOfImpl(_ value: Any?, _ index: inout UInt32) throws -> Bool { + var returnValue: boolean = 0 + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, _value, &index, &returnValue)) + } + return .init(from: returnValue) + } + + open func SetAtImpl(_ index: UInt32, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, _value)) + } + } + + open func InsertAtImpl(_ index: UInt32, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, _value)) + } + } + + open func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + open func AppendImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, _value)) + } + } + + open func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + open func ClearImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + + } + + internal static var IBindableVectorVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorVtbl = .init( + QueryInterface: { IBindableVectorWrapper.queryInterface($0, $1, $2) }, + AddRef: { IBindableVectorWrapper.addRef($0) }, + Release: { IBindableVectorWrapper.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_Xaml_Interop.IBindableVectorWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Interop.IBindableVector").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = try __unwrapped__instance.getAt(index) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + get_Size: { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.size + $1?.initialize(to: value) + return S_OK + }, + + GetView: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getView() + let resultWrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorViewWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + IndexOf: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + var index: UInt32 = 0 + let returnValue = try __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: returnValue)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetAt: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.setAt(index, value) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + InsertAt: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.insertAt(index, value) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RemoveAt: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + try __unwrapped__instance.removeAt(index) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + Append: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.append(value) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RemoveAtEnd: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.removeAtEnd() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + Clear: { + do { + guard let __unwrapped__instance = IBindableVectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.clear() + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IBindableVectorWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.IBindableVectorBridge> + public class IBindableVectorView: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView } + + open func GetAtImpl(_ index: UInt32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func get_SizeImpl() throws -> UInt32 { + var value: UINT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value)) + } + return value + } + + open func IndexOfImpl(_ value: Any?, _ index: inout UInt32) throws -> Bool { + var returnValue: boolean = 0 + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, _value, &index, &returnValue)) + } + return .init(from: returnValue) + } + + } + + internal static var IBindableVectorViewVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorViewVtbl = .init( + QueryInterface: { IBindableVectorViewWrapper.queryInterface($0, $1, $2) }, + AddRef: { IBindableVectorViewWrapper.addRef($0) }, + Release: { IBindableVectorViewWrapper.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_Xaml_Interop.IBindableVectorViewWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Interop.IBindableVectorView").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetAt: { + do { + guard let __unwrapped__instance = IBindableVectorViewWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = try __unwrapped__instance.getAt(index) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + get_Size: { + guard let __unwrapped__instance = IBindableVectorViewWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.size + $1?.initialize(to: value) + return S_OK + }, + + IndexOf: { + do { + guard let __unwrapped__instance = IBindableVectorViewWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + var index: UInt32 = 0 + let returnValue = try __unwrapped__instance.indexOf(value, &index) + $2?.initialize(to: index) + $3?.initialize(to: .init(from: returnValue)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IBindableVectorViewWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.IBindableVectorViewBridge> + public class INotifyCollectionChanged: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChanged } + + open func add_CollectionChangedImpl(_ handler: WinUI.NotifyCollectionChangedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Interop.NotifyCollectionChangedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChanged.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_CollectionChanged(pThis, _handler, &token)) + } + return token + } + + open func remove_CollectionChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChanged.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_CollectionChanged(pThis, token)) + } + } + + } + + internal static var INotifyCollectionChangedVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedVtbl = .init( + QueryInterface: { INotifyCollectionChangedWrapper.queryInterface($0, $1, $2) }, + AddRef: { INotifyCollectionChangedWrapper.addRef($0) }, + Release: { INotifyCollectionChangedWrapper.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_Xaml_Interop.INotifyCollectionChangedWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Interop.INotifyCollectionChanged").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + add_CollectionChanged: { + guard let __unwrapped__instance = INotifyCollectionChangedWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = __ABI_Microsoft_UI_Xaml_Interop.NotifyCollectionChangedEventHandlerWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let token = __unwrapped__instance.collectionChanged.addHandler(handler) + $2?.initialize(to: .from(swift: token)) + return S_OK + }, + + remove_CollectionChanged: { + guard let __unwrapped__instance = INotifyCollectionChangedWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.collectionChanged.removeHandler(token) + return S_OK + } + ) + + public typealias INotifyCollectionChangedWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedBridge> + public class INotifyCollectionChangedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs } + + internal func get_ActionImpl() throws -> WinUI.NotifyCollectionChangedAction { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Action(pThis, &value)) + } + return value + } + + internal func get_NewItemsImpl() throws -> WinUI.AnyIBindableVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewItems(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper.unwrapFrom(abi: value) + } + + internal func get_OldItemsImpl() throws -> WinUI.AnyIBindableVector? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldItems(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper.unwrapFrom(abi: value) + } + + internal func get_NewStartingIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NewStartingIndex(pThis, &value)) + } + return value + } + + internal func get_OldStartingIndexImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OldStartingIndex(pThis, &value)) + } + return value + } + + } + + public class INotifyCollectionChangedEventArgsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgsFactory } + + internal func CreateInstanceWithAllParametersImpl(_ action: WinUI.NotifyCollectionChangedAction, _ newItems: WinUI.AnyIBindableVector?, _ oldItems: WinUI.AnyIBindableVector?, _ newIndex: Int32, _ oldIndex: Int32, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> INotifyCollectionChangedEventArgs { + let (value) = try ComPtrs.initialize { valueAbi in + let newItemsWrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper(newItems) + let _newItems = try! newItemsWrapper?.toABI { $0 } + let oldItemsWrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper(oldItems) + let _oldItems = try! oldItemsWrapper?.toABI { $0 } + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithAllParameters(pThis, action, _newItems, _oldItems, newIndex, oldIndex, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return INotifyCollectionChangedEventArgs(value!) + } + + } + +} +// MARK - NotifyCollectionChangedEventHandler +extension __ABI_Microsoft_UI_Xaml_Interop { + public class NotifyCollectionChangedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.NotifyCollectionChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias NotifyCollectionChangedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Interop.NotifyCollectionChangedEventHandlerBridge> + internal static var NotifyCollectionChangedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandlerVtbl = .init( + QueryInterface: { NotifyCollectionChangedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { NotifyCollectionChangedEventHandlerWrapper.addRef($0) }, + Release: { NotifyCollectionChangedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = NotifyCollectionChangedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.NotifyCollectionChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.NotifyCollectionChangedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+Impl.swift new file mode 100644 index 0000000..84d00d9 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop+Impl.swift @@ -0,0 +1,257 @@ +// 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_Xaml_Interop { + public enum IBindableIterableBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterable + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterable + public typealias SwiftProjection = AnyIBindableIterable + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IBindableIterableImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.IBindableIterableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IBindableIterableImpl: IBindableIterable, WinRTAbiImpl { + fileprivate typealias Bridge = IBindableIterableBridge + 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.xaml.interop.ibindableiterable.first) + fileprivate func first() throws -> AnyIBindableIterator! { + try _default.FirstImpl() + } + + } + + public enum IBindableIteratorBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableIterator + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterator + public typealias SwiftProjection = AnyIBindableIterator + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IBindableIteratorImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.IBindableIteratorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IBindableIteratorImpl: IBindableIterator, WinRTAbiImpl { + fileprivate typealias Bridge = IBindableIteratorBridge + 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.xaml.interop.ibindableiterator.movenext) + fileprivate func moveNext() throws -> Bool { + try _default.MoveNextImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator.current) + fileprivate var current : Any! { + get { try! _default.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator.hascurrent) + fileprivate var hasCurrent : Bool { + get { try! _default.get_HasCurrentImpl() } + } + + } + + public enum IBindableVectorBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVector + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.IBindableVector + public typealias SwiftProjection = AnyIBindableVector + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IBindableVectorImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.IBindableVectorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IBindableVectorImpl: IBindableVector, WinRTAbiImpl { + fileprivate typealias Bridge = IBindableVectorBridge + 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.xaml.interop.ibindablevector.getat) + fileprivate func getAt(_ index: UInt32) throws -> Any! { + try _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.getview) + fileprivate func getView() throws -> AnyIBindableVectorView! { + try _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.indexof) + fileprivate func indexOf(_ value: Any!, _ index: inout UInt32) throws -> Bool { + try _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.setat) + fileprivate func setAt(_ index: UInt32, _ value: Any!) throws { + try _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: Any!) throws { + try _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.removeat) + fileprivate func removeAt(_ index: UInt32) throws { + try _default.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.append) + fileprivate func append(_ value: Any!) throws { + try _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.removeatend) + fileprivate func removeAtEnd() throws { + try _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.clear) + fileprivate func clear() throws { + try _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IBindableIterable: __ABI_Microsoft_UI_Xaml_Interop.IBindableIterable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.first) + fileprivate func first() throws -> AnyIBindableIterator! { + try _IBindableIterable.FirstImpl() + } + + } + + public enum IBindableVectorViewBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CIBindableVectorView + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorView + public typealias SwiftProjection = AnyIBindableVectorView + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IBindableVectorViewImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.IBindableVectorViewVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IBindableVectorViewImpl: IBindableVectorView, WinRTAbiImpl { + fileprivate typealias Bridge = IBindableVectorViewBridge + 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.xaml.interop.ibindablevectorview.getat) + fileprivate func getAt(_ index: UInt32) throws -> Any! { + try _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.indexof) + fileprivate func indexOf(_ value: Any!, _ index: inout UInt32) throws -> Bool { + try _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.size) + fileprivate var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IBindableIterable: __ABI_Microsoft_UI_Xaml_Interop.IBindableIterable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.first) + fileprivate func first() throws -> AnyIBindableIterator! { + try _IBindableIterable.FirstImpl() + } + + } + + public enum INotifyCollectionChangedBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChanged + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChanged + public typealias SwiftProjection = AnyINotifyCollectionChanged + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return INotifyCollectionChangedImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class INotifyCollectionChangedImpl: INotifyCollectionChanged, WinRTAbiImpl { + fileprivate typealias Bridge = INotifyCollectionChangedBridge + 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.xaml.interop.inotifycollectionchanged.collectionchanged) + fileprivate lazy var collectionChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CollectionChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CollectionChangedImpl($0) + } + ) + }() + + } + + public class NotifyCollectionChangedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = NotifyCollectionChangedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.NotifyCollectionChangedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop.swift new file mode 100644 index 0000000..e3c7d98 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Interop.swift @@ -0,0 +1,243 @@ +// 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.xaml.interop.notifycollectionchangedaction) +public typealias NotifyCollectionChangedAction = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs) +open class NotifyCollectionChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs + 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_CXaml_CInterop_CINotifyCollectionChangedEventArgs>?) -> NotifyCollectionChangedEventArgs? { + 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 _INotifyCollectionChangedEventArgsFactory : __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Interop.NotifyCollectionChangedEventArgs")) + + public init(_ action: NotifyCollectionChangedAction, _ newItems: AnyIBindableVector!, _ oldItems: AnyIBindableVector!, _ newIndex: Int32, _ oldIndex: Int32) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._INotifyCollectionChangedEventArgsFactory.CreateInstanceWithAllParametersImpl(action, newItems, oldItems, newIndex, oldIndex, baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs.action) + public var action : NotifyCollectionChangedAction { + get { try! _default.get_ActionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs.newitems) + public var newItems : AnyIBindableVector! { + get { try! _default.get_NewItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs.newstartingindex) + public var newStartingIndex : Int32 { + get { try! _default.get_NewStartingIndexImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs.olditems) + public var oldItems : AnyIBindableVector! { + get { try! _default.get_OldItemsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.notifycollectionchangedeventargs.oldstartingindex) + public var oldStartingIndex : Int32 { + get { try! _default.get_OldStartingIndexImpl() } + } + + internal enum INotifyCollectionChangedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = NotifyCollectionChangedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CINotifyCollectionChangedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedEventArgs + } + } + internal typealias Composable = INotifyCollectionChangedEventArgs + deinit { + _default = nil + } +} + +public typealias NotifyCollectionChangedEventHandler = (Any?, NotifyCollectionChangedEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterable) +public protocol IBindableIterable : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterable.first) + func first() throws -> WinUI.AnyIBindableIterator! +} + +extension IBindableIterable { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIBindableIterable = any IBindableIterable + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator) +public protocol IBindableIterator : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator.movenext) + func moveNext() throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator.current) + var current: Any! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindableiterator.hascurrent) + var hasCurrent: Bool { get } +} + +extension IBindableIterator { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Interop.IBindableIteratorWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableIteratorWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIBindableIterator = any IBindableIterator + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector) +public protocol IBindableVector : IBindableIterable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.getat) + func getAt(_ index: UInt32) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.getview) + func getView() throws -> WinUI.AnyIBindableVectorView! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.indexof) + func indexOf(_ value: Any!, _ index: inout UInt32) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.setat) + func setAt(_ index: UInt32, _ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.insertat) + func insertAt(_ index: UInt32, _ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.removeat) + func removeAt(_ index: UInt32) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.append) + func append(_ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.removeatend) + func removeAtEnd() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.clear) + func clear() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevector.size) + var size: UInt32 { get } +} + +extension IBindableVector { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIBindableVector = any IBindableVector + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview) +public protocol IBindableVectorView : IBindableIterable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.getat) + func getAt(_ index: UInt32) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.indexof) + func indexOf(_ value: Any!, _ index: inout UInt32) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.ibindablevectorview.size) + var size: UInt32 { get } +} + +extension IBindableVectorView { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorViewWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorViewWrapper(self) + return wrapper!.queryInterface(iid) + case __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.IBindableIterableWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIBindableVectorView = any IBindableVectorView + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.inotifycollectionchanged) +public protocol INotifyCollectionChanged : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.interop.inotifycollectionchanged.collectionchanged) + var collectionChanged: Event { get } +} + +public extension EventSource where Handler == NotifyCollectionChangedEventHandler { + func invoke(_ sender: Any!, _ e: NotifyCollectionChangedEventArgs!) { + for handler in getInvocationList() { + handler(sender, e) + } + } +} + +extension INotifyCollectionChanged { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyINotifyCollectionChanged = any INotifyCollectionChanged + +extension WinUI.NotifyCollectionChangedAction { + public static var add : WinUI.NotifyCollectionChangedAction { + __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction_Add + } + public static var remove : WinUI.NotifyCollectionChangedAction { + __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction_Remove + } + public static var replace : WinUI.NotifyCollectionChangedAction { + __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction_Replace + } + public static var move : WinUI.NotifyCollectionChangedAction { + __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction_Move + } + public static var reset : WinUI.NotifyCollectionChangedAction { + __x_ABI_CMicrosoft_CUI_CXaml_CInterop_CNotifyCollectionChangedAction_Reset + } +} +extension WinUI.NotifyCollectionChangedAction: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+ABI.swift new file mode 100644 index 0000000..698efa8 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+ABI.swift @@ -0,0 +1,1048 @@ +// 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_CXaml_CMarkup_CIComponentConnector: WindowsFoundation.IID { + .init(Data1: 0xAD401812, Data2: 0xB091, Data3: 0x51D0, Data4: ( 0xB9,0x15,0x2D,0x68,0x2C,0xD2,0xAF,0x10 ))// AD401812-B091-51D0-B915-2D682CD2AF10 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponent: WindowsFoundation.IID { + .init(Data1: 0x1743DDF7, Data2: 0x38BA, Data3: 0x58C9, Data4: ( 0xA2,0xA6,0xB0,0xAE,0x28,0x71,0x3B,0xEE ))// 1743DDF7-38BA-58C9-A2A6-B0AE28713BEE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelper: WindowsFoundation.IID { + .init(Data1: 0x607A9BF2, Data2: 0x5A6D, Data3: 0x5C89, Data4: ( 0xA7,0x56,0xBB,0x44,0xF2,0x4F,0x28,0xF8 ))// 607A9BF2-5A6D-5C89-A756-BB44F24F28F8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics: WindowsFoundation.IID { + .init(Data1: 0x93C7DAD3, Data2: 0xF9C2, Data3: 0x5372, Data4: ( 0x84,0xDC,0x9E,0x9C,0x46,0x61,0xD0,0x83 ))// 93C7DAD3-F9C2-5372-84DC-9E9C4661D083 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember: WindowsFoundation.IID { + .init(Data1: 0xBF3A2913, Data2: 0x5C63, Data3: 0x50EC, Data4: ( 0x86,0x60,0x61,0x80,0x9B,0xE7,0xB9,0xB9 ))// BF3A2913-5C63-50EC-8660-61809BE7B9B9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider: WindowsFoundation.IID { + .init(Data1: 0xA96251F0, Data2: 0x2214, Data3: 0x5D53, Data4: ( 0x87,0x46,0xCE,0x99,0xA2,0x59,0x3C,0xD7 ))// A96251F0-2214-5D53-8746-CE99A2593CD7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReader: WindowsFoundation.IID { + .init(Data1: 0x54CE54C8, Data2: 0x38C6, Data3: 0x50D9, Data4: ( 0xAC,0x98,0x4B,0x03,0xED,0xDB,0xDE,0x9F ))// 54CE54C8-38C6-50D9-AC98-4B03EDDBDE9F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReaderStatics: WindowsFoundation.IID { + .init(Data1: 0x82A4CD9E, Data2: 0x435E, Data3: 0x5AEB, Data4: ( 0x8C,0x4F,0x30,0x0C,0xEC,0xE4,0x5C,0xAE ))// 82A4CD9E-435E-5AEB-8C4F-300CECE45CAE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType: WindowsFoundation.IID { + .init(Data1: 0xD24219DF, Data2: 0x7EC9, Data3: 0x57F1, Data4: ( 0xA2,0x7B,0x6A,0xF2,0x51,0xD9,0xC5,0xBC ))// D24219DF-7EC9-57F1-A27B-6AF251D9C5BC +} + +public enum __ABI_Microsoft_UI_Xaml_Markup { + public class IComponentConnector: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIComponentConnector } + + open func ConnectImpl(_ connectionId: Int32, _ target: Any?) throws { + let targetWrapper = __ABI_.AnyWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIComponentConnector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Connect(pThis, connectionId, _target)) + } + } + + open func GetBindingConnectorImpl(_ connectionId: Int32, _ target: Any?) throws -> WinUI.AnyIComponentConnector? { + let (result) = try ComPtrs.initialize { resultAbi in + let targetWrapper = __ABI_.AnyWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIComponentConnector.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetBindingConnector(pThis, connectionId, _target, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IComponentConnectorWrapper.unwrapFrom(abi: result) + } + + } + + internal static var IComponentConnectorVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIComponentConnectorVtbl = .init( + QueryInterface: { IComponentConnectorWrapper.queryInterface($0, $1, $2) }, + AddRef: { IComponentConnectorWrapper.addRef($0) }, + Release: { IComponentConnectorWrapper.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_Xaml_Markup.IComponentConnectorWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Markup.IComponentConnector").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Connect: { + do { + guard let __unwrapped__instance = IComponentConnectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let connectionId: Int32 = $1 + let target: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.connect(connectionId, target) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetBindingConnector: { + do { + guard let __unwrapped__instance = IComponentConnectorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let connectionId: Int32 = $1 + let target: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + let result = try __unwrapped__instance.getBindingConnector(connectionId, target) + let resultWrapper = __ABI_Microsoft_UI_Xaml_Markup.IComponentConnectorWrapper(result) + resultWrapper?.copyTo($3) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IComponentConnectorWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Markup.IComponentConnectorBridge> + public class IDataTemplateComponent: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponent } + + open func RecycleImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponent.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Recycle(pThis)) + } + } + + open func ProcessBindingsImpl(_ item: Any?, _ itemIndex: Int32, _ phase: Int32, _ nextPhase: inout Int32) throws { + let itemWrapper = __ABI_.AnyWrapper(item) + let _item = try! itemWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponent.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ProcessBindings(pThis, _item, itemIndex, phase, &nextPhase)) + } + } + + } + + internal static var IDataTemplateComponentVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponentVtbl = .init( + QueryInterface: { IDataTemplateComponentWrapper.queryInterface($0, $1, $2) }, + AddRef: { IDataTemplateComponentWrapper.addRef($0) }, + Release: { IDataTemplateComponentWrapper.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_Xaml_Markup.IDataTemplateComponentWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Markup.IDataTemplateComponent").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + Recycle: { + do { + guard let __unwrapped__instance = IDataTemplateComponentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.recycle() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + ProcessBindings: { + do { + guard let __unwrapped__instance = IDataTemplateComponentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let item: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let itemIndex: Int32 = $2 + let phase: Int32 = $3 + var nextPhase: Int32 = 0 + try __unwrapped__instance.processBindings(item, itemIndex, phase, &nextPhase) + $4?.initialize(to: nextPhase) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IDataTemplateComponentWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Markup.IDataTemplateComponentBridge> + public class IXamlBindingHelper: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelper } + + } + + public class IXamlBindingHelperStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics } + + internal func get_DataTemplateComponentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataTemplateComponentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetDataTemplateComponentImpl(_ element: WinUI.DependencyObject?) throws -> WinUI.AnyIDataTemplateComponent? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDataTemplateComponent(pThis, RawPointer(element), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponentWrapper.unwrapFrom(abi: result) + } + + internal func SetDataTemplateComponentImpl(_ element: WinUI.DependencyObject?, _ value: WinUI.AnyIDataTemplateComponent?) throws { + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponentWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetDataTemplateComponent(pThis, RawPointer(element), _value)) + } + } + + internal func SuspendRenderingImpl(_ target: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SuspendRendering(pThis, RawPointer(target))) + } + } + + internal func ResumeRenderingImpl(_ target: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ResumeRendering(pThis, RawPointer(target))) + } + } + + internal func ConvertValueImpl(_ type: WinUI.TypeName, _ value: Any?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _type = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: type) + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ConvertValue(pThis, _type.val, _value, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func SetPropertyFromStringImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: String) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromString(pThis, _dependencyObject, RawPointer(propertyToSet), _value.get())) + } + } + + internal func SetPropertyFromBooleanImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Bool) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromBoolean(pThis, _dependencyObject, RawPointer(propertyToSet), .init(from: value))) + } + } + + internal func SetPropertyFromChar16Impl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Character) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromChar16(pThis, _dependencyObject, RawPointer(propertyToSet), .init(from: value))) + } + } + + internal func SetPropertyFromDateTimeImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.DateTime) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromDateTime(pThis, _dependencyObject, RawPointer(propertyToSet), .from(swift: value))) + } + } + + internal func SetPropertyFromDoubleImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Double) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromDouble(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromInt32Impl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Int32) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromInt32(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromUInt32Impl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: UInt32) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromUInt32(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromInt64Impl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Int64) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromInt64(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromUInt64Impl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: UInt64) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromUInt64(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromSingleImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Float) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromSingle(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromPointImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.Point) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromPoint(pThis, _dependencyObject, RawPointer(propertyToSet), .from(swift: value))) + } + } + + internal func SetPropertyFromRectImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.Rect) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromRect(pThis, _dependencyObject, RawPointer(propertyToSet), .from(swift: value))) + } + } + + internal func SetPropertyFromSizeImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.Size) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromSize(pThis, _dependencyObject, RawPointer(propertyToSet), .from(swift: value))) + } + } + + internal func SetPropertyFromTimeSpanImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.TimeSpan) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromTimeSpan(pThis, _dependencyObject, RawPointer(propertyToSet), .from(swift: value))) + } + } + + internal func SetPropertyFromByteImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: UInt8) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromByte(pThis, _dependencyObject, RawPointer(propertyToSet), value)) + } + } + + internal func SetPropertyFromUriImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: WindowsFoundation.Uri?) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromUri(pThis, _dependencyObject, RawPointer(propertyToSet), RawPointer(value))) + } + } + + internal func SetPropertyFromObjectImpl(_ dependencyObject: Any?, _ propertyToSet: WinUI.DependencyProperty?, _ value: Any?) throws { + let dependencyObjectWrapper = __ABI_.AnyWrapper(dependencyObject) + let _dependencyObject = try! dependencyObjectWrapper?.toABI { $0 } + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetPropertyFromObject(pThis, _dependencyObject, RawPointer(propertyToSet), _value)) + } + } + + } + + public class IXamlMember: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember } + + open func get_IsAttachableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAttachable(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsDependencyPropertyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDependencyProperty(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsReadOnlyImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsReadOnly(pThis, &value)) + } + return .init(from: value) + } + + open func get_NameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Name(pThis, &value)) + } + return .init(from: value) + } + + open func get_TargetTypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetType(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func get_TypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Type(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func GetValueImpl(_ instance: Any?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let instanceWrapper = __ABI_.AnyWrapper(instance) + let _instance = try! instanceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetValue(pThis, _instance, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func SetValueImpl(_ instance: Any?, _ value: Any?) throws { + let instanceWrapper = __ABI_.AnyWrapper(instance) + let _instance = try! instanceWrapper?.toABI { $0 } + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetValue(pThis, _instance, _value)) + } + } + + } + + internal static var IXamlMemberVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMemberVtbl = .init( + QueryInterface: { IXamlMemberWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlMemberWrapper.addRef($0) }, + Release: { IXamlMemberWrapper.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_Xaml_Markup.IXamlMemberWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Markup.IXamlMember").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_IsAttachable: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isAttachable + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsDependencyProperty: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isDependencyProperty + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsReadOnly: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isReadOnly + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_Name: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.name + $1?.initialize(to: try! HString(value).detach()) + return S_OK + }, + + get_TargetType: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.targetType + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_Type: { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.type + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + GetValue: { + do { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let instance: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = try __unwrapped__instance.getValue(instance) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetValue: { + do { + guard let __unwrapped__instance = IXamlMemberWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let instance: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.setValue(instance, value) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IXamlMemberWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Markup.IXamlMemberBridge> + public class IXamlMetadataProvider: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider } + + open func GetXamlTypeImpl(_ type: WinUI.TypeName) throws -> WinUI.AnyIXamlType? { + let (result) = try ComPtrs.initialize { resultAbi in + let _type = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: type) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetXamlType(pThis, _type.val, &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: result) + } + + open func GetXamlTypeByFullNameImpl(_ fullName: String) throws -> WinUI.AnyIXamlType? { + let (result) = try ComPtrs.initialize { resultAbi in + let _fullName = try! HString(fullName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetXamlTypeByFullName(pThis, _fullName.get(), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: result) + } + + } + + internal static var IXamlMetadataProviderVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProviderVtbl = .init( + QueryInterface: { IXamlMetadataProviderWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlMetadataProviderWrapper.addRef($0) }, + Release: { IXamlMetadataProviderWrapper.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_Xaml_Markup.IXamlMetadataProviderWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Markup.IXamlMetadataProvider").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetXamlType: { + do { + guard let __unwrapped__instance = IXamlMetadataProviderWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let type: WinUI.TypeName = .from(abi: $1) + let result = try __unwrapped__instance.getXamlType(type) + let resultWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetXamlTypeByFullName: { + do { + guard let __unwrapped__instance = IXamlMetadataProviderWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let fullName: String = .init(from: $1) + let result = try __unwrapped__instance.getXamlType(fullName) + let resultWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetXmlnsDefinitions: { _, _, _ in return failWith(err: E_NOTIMPL) } + ) + + public typealias IXamlMetadataProviderWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderBridge> + public class IXamlReader: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReader } + + } + + public class IXamlReaderStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReaderStatics } + + internal func LoadImpl(_ xaml: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _xaml = try! HString(xaml) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReaderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Load(pThis, _xaml.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func LoadWithInitialTemplateValidationImpl(_ xaml: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _xaml = try! HString(xaml) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReaderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.LoadWithInitialTemplateValidation(pThis, _xaml.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + } + + public class IXamlType: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType } + + open func get_BaseTypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BaseType(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func get_ContentPropertyImpl() throws -> WinUI.AnyIXamlMember? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentProperty(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper.unwrapFrom(abi: value) + } + + open func get_FullNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FullName(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsArrayImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsArray(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsCollectionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsCollection(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsConstructibleImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsConstructible(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsDictionaryImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsDictionary(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsMarkupExtensionImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsMarkupExtension(pThis, &value)) + } + return .init(from: value) + } + + open func get_IsBindableImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsBindable(pThis, &value)) + } + return .init(from: value) + } + + open func get_ItemTypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemType(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func get_KeyTypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyType(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func get_BoxedTypeImpl() throws -> WinUI.AnyIXamlType? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BoxedType(pThis, &valueAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.unwrapFrom(abi: value) + } + + open func get_UnderlyingTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UnderlyingType(pThis, &value)) + } + return .from(abi: value) + } + + open func ActivateInstanceImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.ActivateInstance(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func CreateFromStringImpl(_ value: String) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateFromString(pThis, _value.get(), &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + open func GetMemberImpl(_ name: String) throws -> WinUI.AnyIXamlMember? { + let (result) = try ComPtrs.initialize { resultAbi in + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetMember(pThis, _name.get(), &resultAbi)) + } + } + return __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper.unwrapFrom(abi: result) + } + + open func AddToVectorImpl(_ instance: Any?, _ value: Any?) throws { + let instanceWrapper = __ABI_.AnyWrapper(instance) + let _instance = try! instanceWrapper?.toABI { $0 } + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddToVector(pThis, _instance, _value)) + } + } + + open func AddToMapImpl(_ instance: Any?, _ key: Any?, _ value: Any?) throws { + let instanceWrapper = __ABI_.AnyWrapper(instance) + let _instance = try! instanceWrapper?.toABI { $0 } + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddToMap(pThis, _instance, _key, _value)) + } + } + + open func RunInitializerImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RunInitializer(pThis)) + } + } + + } + + internal static var IXamlTypeVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlTypeVtbl = .init( + QueryInterface: { IXamlTypeWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlTypeWrapper.addRef($0) }, + Release: { IXamlTypeWrapper.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_Xaml_Markup.IXamlTypeWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Microsoft.UI.Xaml.Markup.IXamlType").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_BaseType: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.baseType + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_ContentProperty: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.contentProperty + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_FullName: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.fullName + $1?.initialize(to: try! HString(value).detach()) + return S_OK + }, + + get_IsArray: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isArray + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsCollection: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isCollection + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsConstructible: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isConstructible + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsDictionary: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isDictionary + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsMarkupExtension: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isMarkupExtension + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_IsBindable: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.isBindable + $1?.initialize(to: .init(from: value)) + return S_OK + }, + + get_ItemType: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.itemType + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_KeyType: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.keyType + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_BoxedType: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.boxedType + let valueWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(value) + valueWrapper?.copyTo($1) + return S_OK + }, + + get_UnderlyingType: { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.underlyingType + let _value = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: value) + $1?.initialize(to: _value.detach()) + return S_OK + }, + + ActivateInstance: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.activateInstance() + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + CreateFromString: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: String = .init(from: $1) + let result = try __unwrapped__instance.createFromString(value) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + GetMember: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let name: String = .init(from: $1) + let result = try __unwrapped__instance.getMember(name) + let resultWrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + AddToVector: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let instance: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + try __unwrapped__instance.addToVector(instance, value) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + AddToMap: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let instance: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($3)) + try __unwrapped__instance.addToMap(instance, key, value) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + RunInitializer: { + do { + guard let __unwrapped__instance = IXamlTypeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.runInitializer() + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + + public typealias IXamlTypeWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Markup.IXamlTypeBridge> + public class _ABI_XmlnsDefinition { + public var val: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CXmlnsDefinition = .init() + public init() { } + public init(from swift: WinUI.XmlnsDefinition) { + val.XmlNamespace = try! HString(swift.xmlNamespace).detach() + val.Namespace = try! HString(swift.namespace).detach() + } + + public func detach() -> __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CXmlnsDefinition { + let result = val + val.XmlNamespace = nil + val.Namespace = nil + return result + } + + deinit { + WindowsDeleteString(val.XmlNamespace) + WindowsDeleteString(val.Namespace) + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+Impl.swift new file mode 100644 index 0000000..4b61fbb --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup+Impl.swift @@ -0,0 +1,298 @@ +// 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_Xaml_Markup { + public enum IComponentConnectorBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIComponentConnector + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IComponentConnector + public typealias SwiftProjection = AnyIComponentConnector + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IComponentConnectorImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Markup.IComponentConnectorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IComponentConnectorImpl: IComponentConnector, WinRTAbiImpl { + fileprivate typealias Bridge = IComponentConnectorBridge + 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.xaml.markup.icomponentconnector.connect) + fileprivate func connect(_ connectionId: Int32, _ target: Any!) throws { + try _default.ConnectImpl(connectionId, target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.icomponentconnector.getbindingconnector) + fileprivate func getBindingConnector(_ connectionId: Int32, _ target: Any!) throws -> AnyIComponentConnector! { + try _default.GetBindingConnectorImpl(connectionId, target) + } + + } + + public enum IDataTemplateComponentBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIDataTemplateComponent + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponent + public typealias SwiftProjection = AnyIDataTemplateComponent + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IDataTemplateComponentImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponentVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IDataTemplateComponentImpl: IDataTemplateComponent, WinRTAbiImpl { + fileprivate typealias Bridge = IDataTemplateComponentBridge + 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.xaml.markup.idatatemplatecomponent.recycle) + fileprivate func recycle() throws { + try _default.RecycleImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.idatatemplatecomponent.processbindings) + fileprivate func processBindings(_ item: Any!, _ itemIndex: Int32, _ phase: Int32, _ nextPhase: inout Int32) throws { + try _default.ProcessBindingsImpl(item, itemIndex, phase, &nextPhase) + } + + } + + public enum IXamlMemberBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMember + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlMember + public typealias SwiftProjection = AnyIXamlMember + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IXamlMemberImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Markup.IXamlMemberVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IXamlMemberImpl: IXamlMember, WinRTAbiImpl { + fileprivate typealias Bridge = IXamlMemberBridge + 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.xaml.markup.ixamlmember.getvalue) + fileprivate func getValue(_ instance: Any!) throws -> Any! { + try _default.GetValueImpl(instance) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.setvalue) + fileprivate func setValue(_ instance: Any!, _ value: Any!) throws { + try _default.SetValueImpl(instance, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isattachable) + fileprivate var isAttachable : Bool { + get { try! _default.get_IsAttachableImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isdependencyproperty) + fileprivate var isDependencyProperty : Bool { + get { try! _default.get_IsDependencyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isreadonly) + fileprivate var isReadOnly : Bool { + get { try! _default.get_IsReadOnlyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.name) + fileprivate var name : String { + get { try! _default.get_NameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.targettype) + fileprivate var targetType : AnyIXamlType! { + get { try! _default.get_TargetTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.type) + fileprivate var type : AnyIXamlType! { + get { try! _default.get_TypeImpl() } + } + + } + + public enum IXamlMetadataProviderBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProvider + public typealias SwiftProjection = AnyIXamlMetadataProvider + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IXamlMetadataProviderImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IXamlMetadataProviderImpl: IXamlMetadataProvider, WinRTAbiImpl { + fileprivate typealias Bridge = IXamlMetadataProviderBridge + 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.xaml.markup.ixamlmetadataprovider.getxamltype) + fileprivate func getXamlType(_ type: WinUI.TypeName) throws -> AnyIXamlType! { + try _default.GetXamlTypeImpl(type) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmetadataprovider.getxamltype) + fileprivate func getXamlType(_ fullName: String) throws -> AnyIXamlType! { + try _default.GetXamlTypeByFullNameImpl(fullName) + } + + } + + public enum IXamlTypeBridge : AbiInterfaceBridge { + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlType + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlType + public typealias SwiftProjection = AnyIXamlType + public static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return IXamlTypeImpl(abi) + } + + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Markup.IXamlTypeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } + } + + fileprivate class IXamlTypeImpl: IXamlType, WinRTAbiImpl { + fileprivate typealias Bridge = IXamlTypeBridge + 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.xaml.markup.ixamltype.activateinstance) + fileprivate func activateInstance() throws -> Any! { + try _default.ActivateInstanceImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.createfromstring) + fileprivate func createFromString(_ value: String) throws -> Any! { + try _default.CreateFromStringImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.getmember) + fileprivate func getMember(_ name: String) throws -> AnyIXamlMember! { + try _default.GetMemberImpl(name) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.addtovector) + fileprivate func addToVector(_ instance: Any!, _ value: Any!) throws { + try _default.AddToVectorImpl(instance, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.addtomap) + fileprivate func addToMap(_ instance: Any!, _ key: Any!, _ value: Any!) throws { + try _default.AddToMapImpl(instance, key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.runinitializer) + fileprivate func runInitializer() throws { + try _default.RunInitializerImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.basetype) + fileprivate var baseType : AnyIXamlType! { + get { try! _default.get_BaseTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.boxedtype) + fileprivate var boxedType : AnyIXamlType! { + get { try! _default.get_BoxedTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.contentproperty) + fileprivate var contentProperty : AnyIXamlMember! { + get { try! _default.get_ContentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.fullname) + fileprivate var fullName : String { + get { try! _default.get_FullNameImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isarray) + fileprivate var isArray : Bool { + get { try! _default.get_IsArrayImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isbindable) + fileprivate var isBindable : Bool { + get { try! _default.get_IsBindableImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.iscollection) + fileprivate var isCollection : Bool { + get { try! _default.get_IsCollectionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isconstructible) + fileprivate var isConstructible : Bool { + get { try! _default.get_IsConstructibleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isdictionary) + fileprivate var isDictionary : Bool { + get { try! _default.get_IsDictionaryImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.ismarkupextension) + fileprivate var isMarkupExtension : Bool { + get { try! _default.get_IsMarkupExtensionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.itemtype) + fileprivate var itemType : AnyIXamlType! { + get { try! _default.get_ItemTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.keytype) + fileprivate var keyType : AnyIXamlType! { + get { try! _default.get_KeyTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.underlyingtype) + fileprivate var underlyingType : WinUI.TypeName { + get { try! _default.get_UnderlyingTypeImpl() } + } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup.swift new file mode 100644 index 0000000..c6d754d --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Markup.swift @@ -0,0 +1,353 @@ +// 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.xaml.markup.xamlbindinghelper) +public final class XamlBindingHelper : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlBindingHelper + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlBindingHelper + 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_CXaml_CMarkup_CIXamlBindingHelper>?) -> XamlBindingHelper? { + 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 _IXamlBindingHelperStatics: __ABI_Microsoft_UI_Xaml_Markup.IXamlBindingHelperStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Markup.XamlBindingHelper")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.getdatatemplatecomponent) + public static func getDataTemplateComponent(_ element: WinUI.DependencyObject!) -> AnyIDataTemplateComponent! { + return try! _IXamlBindingHelperStatics.GetDataTemplateComponentImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setdatatemplatecomponent) + public static func setDataTemplateComponent(_ element: WinUI.DependencyObject!, _ value: AnyIDataTemplateComponent!) { + try! _IXamlBindingHelperStatics.SetDataTemplateComponentImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.suspendrendering) + public static func suspendRendering(_ target: WinUI.UIElement!) { + try! _IXamlBindingHelperStatics.SuspendRenderingImpl(target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.resumerendering) + public static func resumeRendering(_ target: WinUI.UIElement!) { + try! _IXamlBindingHelperStatics.ResumeRenderingImpl(target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.convertvalue) + public static func convertValue(_ type: WinUI.TypeName, _ value: Any!) -> Any! { + return try! _IXamlBindingHelperStatics.ConvertValueImpl(type, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromstring) + public static func setPropertyFromString(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: String) { + try! _IXamlBindingHelperStatics.SetPropertyFromStringImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromboolean) + public static func setPropertyFromBoolean(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Bool) { + try! _IXamlBindingHelperStatics.SetPropertyFromBooleanImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromchar16) + public static func setPropertyFromChar16(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Character) { + try! _IXamlBindingHelperStatics.SetPropertyFromChar16Impl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromdatetime) + public static func setPropertyFromDateTime(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.DateTime) { + try! _IXamlBindingHelperStatics.SetPropertyFromDateTimeImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromdouble) + public static func setPropertyFromDouble(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Double) { + try! _IXamlBindingHelperStatics.SetPropertyFromDoubleImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromint32) + public static func setPropertyFromInt32(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Int32) { + try! _IXamlBindingHelperStatics.SetPropertyFromInt32Impl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromuint32) + public static func setPropertyFromUInt32(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: UInt32) { + try! _IXamlBindingHelperStatics.SetPropertyFromUInt32Impl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromint64) + public static func setPropertyFromInt64(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Int64) { + try! _IXamlBindingHelperStatics.SetPropertyFromInt64Impl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromuint64) + public static func setPropertyFromUInt64(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: UInt64) { + try! _IXamlBindingHelperStatics.SetPropertyFromUInt64Impl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromsingle) + public static func setPropertyFromSingle(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Float) { + try! _IXamlBindingHelperStatics.SetPropertyFromSingleImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfrompoint) + public static func setPropertyFromPoint(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.Point) { + try! _IXamlBindingHelperStatics.SetPropertyFromPointImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromrect) + public static func setPropertyFromRect(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.Rect) { + try! _IXamlBindingHelperStatics.SetPropertyFromRectImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromsize) + public static func setPropertyFromSize(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.Size) { + try! _IXamlBindingHelperStatics.SetPropertyFromSizeImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromtimespan) + public static func setPropertyFromTimeSpan(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.TimeSpan) { + try! _IXamlBindingHelperStatics.SetPropertyFromTimeSpanImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfrombyte) + public static func setPropertyFromByte(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: UInt8) { + try! _IXamlBindingHelperStatics.SetPropertyFromByteImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromuri) + public static func setPropertyFromUri(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: WindowsFoundation.Uri!) { + try! _IXamlBindingHelperStatics.SetPropertyFromUriImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.setpropertyfromobject) + public static func setPropertyFromObject(_ dependencyObject: Any!, _ propertyToSet: WinUI.DependencyProperty!, _ value: Any!) { + try! _IXamlBindingHelperStatics.SetPropertyFromObjectImpl(dependencyObject, propertyToSet, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlbindinghelper.datatemplatecomponentproperty) + public static var dataTemplateComponentProperty : WinUI.DependencyProperty! { + get { try! _IXamlBindingHelperStatics.get_DataTemplateComponentPropertyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlreader) +public final class XamlReader : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlReader + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlReader + 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_CXaml_CMarkup_CIXamlReader>?) -> XamlReader? { + 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 _IXamlReaderStatics: __ABI_Microsoft_UI_Xaml_Markup.IXamlReaderStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Markup.XamlReader")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlreader.load) + public static func load(_ xaml: String) -> Any! { + return try! _IXamlReaderStatics.LoadImpl(xaml) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xamlreader.loadwithinitialtemplatevalidation) + public static func loadWithInitialTemplateValidation(_ xaml: String) -> Any! { + return try! _IXamlReaderStatics.LoadWithInitialTemplateValidationImpl(xaml) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xmlnsdefinition) +public struct XmlnsDefinition: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xmlnsdefinition.xmlnamespace) + public var xmlNamespace: String = "" + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.xmlnsdefinition.namespace) + public var namespace: String = "" + public init() {} + public init(xmlNamespace: String, namespace: String) { + self.xmlNamespace = xmlNamespace + self.namespace = namespace + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CXmlnsDefinition) -> XmlnsDefinition { + .init(xmlNamespace: .init(from: abi.XmlNamespace), namespace: .init(from: abi.Namespace)) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.icomponentconnector) +public protocol IComponentConnector : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.icomponentconnector.connect) + func connect(_ connectionId: Int32, _ target: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.icomponentconnector.getbindingconnector) + func getBindingConnector(_ connectionId: Int32, _ target: Any!) throws -> WinUI.AnyIComponentConnector! +} + +extension IComponentConnector { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IComponentConnectorWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Markup.IComponentConnectorWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIComponentConnector = any IComponentConnector + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.idatatemplatecomponent) +public protocol IDataTemplateComponent : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.idatatemplatecomponent.recycle) + func recycle() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.idatatemplatecomponent.processbindings) + func processBindings(_ item: Any!, _ itemIndex: Int32, _ phase: Int32, _ nextPhase: inout Int32) throws +} + +extension IDataTemplateComponent { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponentWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponentWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIDataTemplateComponent = any IDataTemplateComponent + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember) +public protocol IXamlMember : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.getvalue) + func getValue(_ instance: Any!) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.setvalue) + func setValue(_ instance: Any!, _ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isattachable) + var isAttachable: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isdependencyproperty) + var isDependencyProperty: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.isreadonly) + var isReadOnly: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.name) + var name: String { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.targettype) + var targetType: WinUI.AnyIXamlType! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmember.type) + var type: WinUI.AnyIXamlType! { get } +} + +extension IXamlMember { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlMemberWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIXamlMember = any IXamlMember + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmetadataprovider) +public protocol IXamlMetadataProvider : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmetadataprovider.getxamltype) + func getXamlType(_ type: WinUI.TypeName) throws -> WinUI.AnyIXamlType! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamlmetadataprovider.getxamltype) + func getXamlType(_ fullName: String) throws -> WinUI.AnyIXamlType! +} + +extension IXamlMetadataProvider { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIXamlMetadataProvider = any IXamlMetadataProvider + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype) +public protocol IXamlType : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.activateinstance) + func activateInstance() throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.createfromstring) + func createFromString(_ value: String) throws -> Any! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.getmember) + func getMember(_ name: String) throws -> WinUI.AnyIXamlMember! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.addtovector) + func addToVector(_ instance: Any!, _ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.addtomap) + func addToMap(_ instance: Any!, _ key: Any!, _ value: Any!) throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.runinitializer) + func runInitializer() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.basetype) + var baseType: WinUI.AnyIXamlType! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.boxedtype) + var boxedType: WinUI.AnyIXamlType! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.contentproperty) + var contentProperty: WinUI.AnyIXamlMember! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.fullname) + var fullName: String { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isarray) + var isArray: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isbindable) + var isBindable: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.iscollection) + var isCollection: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isconstructible) + var isConstructible: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.isdictionary) + var isDictionary: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.ismarkupextension) + var isMarkupExtension: Bool { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.itemtype) + var itemType: WinUI.AnyIXamlType! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.keytype) + var keyType: WinUI.AnyIXamlType! { get } + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.markup.ixamltype.underlyingtype) + var underlyingType: WinUI.TypeName { get } +} + +extension IXamlType { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Markup.IXamlTypeWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIXamlType = any IXamlType + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+ABI.swift new file mode 100644 index 0000000..af5431e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+ABI.swift @@ -0,0 +1,2526 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush: WindowsFoundation.IID { + .init(Data1: 0x3A8C760A, Data2: 0x941F, Data3: 0x58BC, Data4: ( 0xA6,0xD4,0xAA,0x7A,0x0D,0xD1,0xD0,0x36 ))// 3A8C760A-941F-58BC-A6D4-AA7A0DD1D036 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush2: WindowsFoundation.IID { + .init(Data1: 0x23FAD570, Data2: 0x43ED, Data3: 0x5A73, Data4: ( 0x9D,0xE7,0xA3,0x03,0x55,0x3D,0x54,0x14 ))// 23FAD570-43ED-5A73-9DE7-A303553D5414 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushFactory: WindowsFoundation.IID { + .init(Data1: 0x80173353, Data2: 0x611D, Data3: 0x5A02, Data4: ( 0x88,0x64,0x1A,0xAA,0x27,0x9D,0xFF,0x1C ))// 80173353-611D-5A02-8864-1AAA279DFF1C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics: WindowsFoundation.IID { + .init(Data1: 0x9D9D366B, Data2: 0x00A3, Data3: 0x5F3E, Data4: ( 0x98,0xB8,0x1D,0xF7,0xFE,0xC1,0x82,0x8C ))// 9D9D366B-00A3-5F3E-98B8-1DF7FEC1828C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics2: WindowsFoundation.IID { + .init(Data1: 0x6E3EB0BD, Data2: 0x20A1, Data3: 0x52EA, Data4: ( 0xAE,0xDE,0x47,0x80,0x61,0x01,0x22,0x79 ))// 6E3EB0BD-20A1-52EA-AEDE-478061012279 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush: WindowsFoundation.IID { + .init(Data1: 0x2DE3CB83, Data2: 0x1329, Data3: 0x5679, Data4: ( 0x88,0xF8,0xC8,0x22,0xBC,0x54,0x42,0xCB ))// 2DE3CB83-1329-5679-88F8-C822BC5442CB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushFactory: WindowsFoundation.IID { + .init(Data1: 0xB5258717, Data2: 0x6C49, Data3: 0x5BA5, Data4: ( 0x87,0xFD,0x35,0xDF,0x38,0x26,0x47,0xA5 ))// B5258717-6C49-5BA5-87FD-35DF382647A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides: WindowsFoundation.IID { + .init(Data1: 0xB6B08394, Data2: 0xBACF, Data3: 0x53DB, Data4: ( 0x9A,0xC7,0xBE,0x1C,0x69,0x3E,0x35,0x13 ))// B6B08394-BACF-53DB-9AC7-BE1C693E3513 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushStatics: WindowsFoundation.IID { + .init(Data1: 0x5B854F50, Data2: 0xF818, Data3: 0x5F01, Data4: ( 0x91,0xB0,0x28,0x13,0x2D,0x3F,0x59,0x57 ))// 5B854F50-F818-5F01-91B0-28132D3F5957 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheMode: WindowsFoundation.IID { + .init(Data1: 0x2FF1A1CB, Data2: 0x0F48, Data3: 0x53FD, Data4: ( 0xB1,0xDE,0xE2,0x22,0x3D,0xFB,0x2F,0xF6 ))// 2FF1A1CB-0F48-53FD-B1DE-E2223DFB2FF6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheModeFactory: WindowsFoundation.IID { + .init(Data1: 0xE257811E, Data2: 0xDCC5, Data3: 0x51D8, Data4: ( 0x82,0x9A,0x3E,0x94,0x00,0x19,0x8A,0x41 ))// E257811E-DCC5-51D8-829A-3E9400198A41 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform: WindowsFoundation.IID { + .init(Data1: 0x55C5F8F3, Data2: 0x20E4, Data3: 0x5B80, Data4: ( 0xA0,0x46,0xCE,0x4D,0x0F,0x62,0xF2,0xFE ))// 55C5F8F3-20E4-5B80-A046-CE4D0F62F2FE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics: WindowsFoundation.IID { + .init(Data1: 0x7701385B, Data2: 0x8EAB, Data3: 0x5071, Data4: ( 0xBF,0xA5,0xB4,0x53,0xE1,0xE5,0x2B,0x43 ))// 7701385B-8EAB-5071-BFA5-B453E1E52B43 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTarget: WindowsFoundation.IID { + .init(Data1: 0x7D938324, Data2: 0xE3AD, Data3: 0x597C, Data4: ( 0x93,0xF6,0x52,0x07,0x25,0x41,0x0E,0x68 ))// 7D938324-E3AD-597C-93F6-520725410E68 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics: WindowsFoundation.IID { + .init(Data1: 0x12A4BE6F, Data2: 0x6DB1, Data3: 0x5165, Data4: ( 0xB6,0x22,0xD5,0x7A,0xB7,0x82,0x74,0x5B ))// 12A4BE6F-6DB1-5165-B622-D57AB782745B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamily: WindowsFoundation.IID { + .init(Data1: 0x18FA5BC1, Data2: 0x7294, Data3: 0x527C, Data4: ( 0xBB,0x02,0xB2,0x13,0xE0,0xB3,0xA2,0xA3 ))// 18FA5BC1-7294-527C-BB02-B213E0B3A2A3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyFactory: WindowsFoundation.IID { + .init(Data1: 0x61B88A77, Data2: 0xD0F9, Data3: 0x5E9E, Data4: ( 0x8C,0x28,0xED,0xA0,0x1F,0xED,0xE2,0x2E ))// 61B88A77-D0F9-5E9E-8C28-EDA01FEDE22E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyStatics: WindowsFoundation.IID { + .init(Data1: 0xB3EADCEB, Data2: 0xC471, Data3: 0x58FE, Data4: ( 0x93,0xD0,0xD7,0x1B,0x04,0xA7,0xFD,0x54 ))// B3EADCEB-C471-58FE-93D0-D71B04A7FD54 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform: WindowsFoundation.IID { + .init(Data1: 0x04EEDEEB, Data2: 0x31E5, Data3: 0x54C0, Data4: ( 0xAE,0x3F,0x8B,0xD0,0x66,0x45,0xD3,0x39 ))// 04EEDEEB-31E5-54C0-AE3F-8BD06645D339 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformFactory: WindowsFoundation.IID { + .init(Data1: 0x2F1025A3, Data2: 0x5391, Data3: 0x5D1B, Data4: ( 0x83,0x82,0x3C,0xAA,0xA1,0xD2,0x6A,0x96 ))// 2F1025A3-5391-5D1B-8382-3CAAA1D26A96 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides: WindowsFoundation.IID { + .init(Data1: 0xCE8970F1, Data2: 0x83F8, Data3: 0x543F, Data4: ( 0x9C,0xF5,0x43,0x9C,0x46,0x16,0x01,0xF1 ))// CE8970F1-83F8-543F-9CF5-439C461601F1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry: WindowsFoundation.IID { + .init(Data1: 0xDC102DCC, Data2: 0x3BE2, Data3: 0x5414, Data4: ( 0x85,0x99,0x94,0xB6,0xE7,0x6E,0xF3,0x9B ))// DC102DCC-3BE2-5414-8599-94B6E76EF39B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryFactory: WindowsFoundation.IID { + .init(Data1: 0x4EDCD536, Data2: 0x7949, Data3: 0x548A, Data4: ( 0xA9,0xB1,0x6F,0xF0,0x3B,0x95,0x1C,0xF3 ))// 4EDCD536-7949-548A-A9B1-6FF03B951CF3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryStatics: WindowsFoundation.IID { + .init(Data1: 0x349F78D0, Data2: 0x4978, Data3: 0x5742, Data4: ( 0xB7,0xD2,0xB3,0x4E,0xA2,0xC9,0x56,0x00 ))// 349F78D0-4978-5742-B7D2-B34EA2C95600 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush: WindowsFoundation.IID { + .init(Data1: 0x77C347FA, Data2: 0xC4C4, Data3: 0x5174, Data4: ( 0xA9,0x45,0x65,0xCA,0xB3,0xAA,0x1C,0x75 ))// 77C347FA-C4C4-5174-A945-65CAB3AA1C75 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushFactory: WindowsFoundation.IID { + .init(Data1: 0x64FF6177, Data2: 0x1EDA, Data3: 0x565B, Data4: ( 0xB7,0xAA,0xAC,0x50,0x15,0x2E,0x31,0x36 ))// 64FF6177-1EDA-565B-B7AA-AC50152E3136 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics: WindowsFoundation.IID { + .init(Data1: 0x4D3697D7, Data2: 0xC6DB, Data3: 0x501C, Data4: ( 0x8F,0xA2,0xDA,0x30,0xB8,0xC8,0xCA,0x3B ))// 4D3697D7-C6DB-501C-8FA2-DA30B8C8CA3B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop: WindowsFoundation.IID { + .init(Data1: 0x48BCB039, Data2: 0xE8E1, Data3: 0x5743, Data4: ( 0x94,0xC3,0xF7,0x66,0x01,0x1D,0x3B,0x5D ))// 48BCB039-E8E1-5743-94C3-F766011D3B5D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStopStatics: WindowsFoundation.IID { + .init(Data1: 0x0B566C1B, Data2: 0x37DE, Data3: 0x5BFD, Data4: ( 0xB4,0x19,0x0F,0x7C,0x4C,0x0A,0x05,0x23 ))// 0B566C1B-37DE-5BFD-B419-0F7C4C0A0523 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSource: WindowsFoundation.IID { + .init(Data1: 0x6C2038F6, Data2: 0xD6D5, Data3: 0x55E9, Data4: ( 0x9B,0x9E,0x08,0x2F,0x12,0xDB,0xFF,0x60 ))// 6C2038F6-D6D5-55E9-9B9E-082F12DBFF60 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x0B1E64A3, Data2: 0xE353, Data3: 0x5901, Data4: ( 0xB8,0x4B,0xAE,0x98,0x42,0xAE,0xA5,0xCD ))// 0B1E64A3-E353-5901-B84B-AE9842AEA5CD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegment: WindowsFoundation.IID { + .init(Data1: 0x0C618E54, Data2: 0xD883, Data3: 0x588C, Data4: ( 0x88,0x75,0xBD,0x8D,0xFD,0x6A,0x6A,0x3E ))// 0C618E54-D883-588C-8875-BD8DFD6A6A3E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegmentStatics: WindowsFoundation.IID { + .init(Data1: 0xC3EC48A9, Data2: 0xB9C0, Data3: 0x561F, Data4: ( 0x99,0x25,0xD1,0xD1,0xB2,0xA6,0xBA,0xE6 ))// C3EC48A9-B9C0-561F-9925-D1D1B2A6BAE6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush: WindowsFoundation.IID { + .init(Data1: 0xC0AB9638, Data2: 0x1BD9, Data3: 0x5FA4, Data4: ( 0x96,0x49,0x48,0xCF,0xA1,0x2F,0x0D,0x1E ))// C0AB9638-1BD9-5FA4-9649-48CFA12F0D1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushFactory: WindowsFoundation.IID { + .init(Data1: 0xC0BA7DE3, Data2: 0xCCFD, Data3: 0x534C, Data4: ( 0x88,0x2F,0x3A,0xB3,0x9A,0xE7,0x23,0xF3 ))// C0BA7DE3-CCFD-534C-882F-3AB39AE723F3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushStatics: WindowsFoundation.IID { + .init(Data1: 0xDF029E84, Data2: 0xF6BE, Data3: 0x5B7E, Data4: ( 0xBA,0x22,0x3B,0x4E,0x7A,0x6B,0xCE,0xEE ))// DF029E84-F6BE-5B7E-BA22-3B4E7A6BCEEE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xFE0FFB86, Data2: 0x74B0, Data3: 0x5031, Data4: ( 0xAC,0xCC,0xB3,0x4D,0x03,0x82,0xA6,0x37 ))// FE0FFB86-74B0-5031-ACCC-B34D0382A637 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdrop: WindowsFoundation.IID { + .init(Data1: 0xC156A404, Data2: 0x3DAC, Data3: 0x593A, Data4: ( 0xB1,0xF3,0x7A,0x33,0xC2,0x89,0xDC,0x83 ))// C156A404-3DAC-593A-B1F3-7A33C289DC83 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropFactory: WindowsFoundation.IID { + .init(Data1: 0x774379CE, Data2: 0x74BD, Data3: 0x59D4, Data4: ( 0x84,0x9D,0xD9,0x9C,0x41,0x84,0xD8,0x38 ))// 774379CE-74BD-59D4-849D-D99C4184D838 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropStatics: WindowsFoundation.IID { + .init(Data1: 0xA63ABDCE, Data2: 0xC796, Data3: 0x5509, Data4: ( 0x9F,0x4D,0x07,0x2B,0xC1,0xE5,0x99,0xF1 ))// A63ABDCE-C796-5509-9F4D-072BC1E599F1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure: WindowsFoundation.IID { + .init(Data1: 0x0EE00712, Data2: 0xBF65, Data3: 0x5F27, Data4: ( 0x9C,0x06,0x14,0xAB,0xDF,0x66,0x56,0xD7 ))// 0EE00712-BF65-5F27-9C06-14ABDF6656D7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics: WindowsFoundation.IID { + .init(Data1: 0x93BC33C4, Data2: 0x879A, Data3: 0x5EDB, Data4: ( 0xB8,0xD7,0x7E,0xCB,0x86,0x1A,0x73,0x14 ))// 93BC33C4-879A-5EDB-B8D7-7ECB861A7314 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry: WindowsFoundation.IID { + .init(Data1: 0x11B9D95D, Data2: 0xD3D9, Data3: 0x5337, Data4: ( 0xA0,0x5C,0x73,0xA2,0x7A,0x2B,0x51,0x24 ))// 11B9D95D-D3D9-5337-A05C-73A27A2B5124 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometryStatics: WindowsFoundation.IID { + .init(Data1: 0xD7F408FE, Data2: 0x6C3A, Data3: 0x5CCE, Data4: ( 0x91,0xCC,0xC5,0xA9,0x5D,0x4B,0x34,0x5A ))// D7F408FE-6C3A-5CCE-91CC-C5A95D4B345A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegment: WindowsFoundation.IID { + .init(Data1: 0xB922EBBE, Data2: 0x08F0, Data3: 0x57E9, Data4: ( 0x87,0x85,0x7E,0x57,0x09,0x7F,0x3B,0xD4 ))// B922EBBE-08F0-57E9-8785-7E57097F3BD4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegmentFactory: WindowsFoundation.IID { + .init(Data1: 0x0559A4FF, Data2: 0xAC4B, Data3: 0x5BB7, Data4: ( 0xB5,0x41,0xD3,0x73,0x96,0x0E,0x08,0x3B ))// 0559A4FF-AC4B-5BB7-B541-D373960E083B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegment: WindowsFoundation.IID { + .init(Data1: 0xD7F760A0, Data2: 0xB93A, Data3: 0x562A, Data4: ( 0x81,0x18,0x63,0x30,0xED,0x22,0xC3,0x07 ))// D7F760A0-B93A-562A-8118-6330ED22C307 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegmentStatics: WindowsFoundation.IID { + .init(Data1: 0x738EF089, Data2: 0xA80F, Data3: 0x53E0, Data4: ( 0x81,0x6F,0xF7,0x87,0xA4,0x46,0x19,0x07 ))// 738EF089-A80F-53E0-816F-F787A4461907 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjection: WindowsFoundation.IID { + .init(Data1: 0xC95364B3, Data2: 0x6058, Data3: 0x5EE5, Data4: ( 0x9E,0x28,0xD3,0x8B,0x76,0x79,0xFC,0xD4 ))// C95364B3-6058-5EE5-9E28-D38B7679FCD4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjectionFactory: WindowsFoundation.IID { + .init(Data1: 0x870EA34F, Data2: 0xDB61, Data3: 0x5B75, Data4: ( 0x89,0xAD,0xE0,0x48,0x0C,0x80,0x29,0x37 ))// 870EA34F-DB61-5B75-89AD-E0480C802937 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometry: WindowsFoundation.IID { + .init(Data1: 0xB6143890, Data2: 0xA5F5, Data3: 0x54E0, Data4: ( 0xAB,0x42,0xD8,0x8B,0xAB,0x45,0x1F,0x04 ))// B6143890-A5F5-54E0-AB42-D88BAB451F04 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometryStatics: WindowsFoundation.IID { + .init(Data1: 0x1AE7AC26, Data2: 0x8A8B, Data3: 0x55A5, Data4: ( 0xB0,0x35,0x58,0x6E,0x2B,0x64,0x29,0x19 ))// 1AE7AC26-8A8B-55A5-B035-586E2B642919 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRenderedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xB268B885, Data2: 0x118D, Data3: 0x5B66, Data4: ( 0x80,0x99,0x3B,0x6B,0xB8,0x64,0x47,0x26 ))// B268B885-118D-5B66-8099-3B6BB8644726 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadow: WindowsFoundation.IID { + .init(Data1: 0xCC12FD6A, Data2: 0x50AA, Data3: 0x5EB3, Data4: ( 0x9A,0x0E,0xB9,0x38,0xB4,0x54,0xC4,0x39 ))// CC12FD6A-50AA-5EB3-9A0E-B938B454C439 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadowFactory: WindowsFoundation.IID { + .init(Data1: 0xC9115FBB, Data2: 0xFCC3, Data3: 0x52BF, Data4: ( 0xB8,0xEE,0xC3,0x48,0x10,0x2A,0x46,0xE0 ))// C9115FBB-FCC3-52BF-B8EE-C348102A46E0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrush: WindowsFoundation.IID { + .init(Data1: 0xB3865C31, Data2: 0x37C8, Data3: 0x55C1, Data4: ( 0x8A,0x72,0xD4,0x1C,0x67,0x64,0x2E,0x2A ))// B3865C31-37C8-55C1-8A72-D41C67642E2A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushFactory: WindowsFoundation.IID { + .init(Data1: 0x7B559384, Data2: 0x4DAA, Data3: 0x54F4, Data4: ( 0x91,0xEF,0x33,0xA2,0x3F,0xD8,0x16,0xCA ))// 7B559384-4DAA-54F4-91EF-33A23FD816CA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushStatics: WindowsFoundation.IID { + .init(Data1: 0x6BC16DA0, Data2: 0xC4E6, Data3: 0x59B8, Data4: ( 0x99,0x5B,0xB3,0x1E,0x48,0x42,0x4C,0x07 ))// 6BC16DA0-C4E6-59B8-995B-B31E48424C07 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdrop: WindowsFoundation.IID { + .init(Data1: 0x5AEED5C4, Data2: 0x37AC, Data3: 0x5852, Data4: ( 0xB7,0x3F,0x1B,0x76,0xEB,0xC3,0x20,0x5F ))// 5AEED5C4-37AC-5852-B73F-1B76EBC3205F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropFactory: WindowsFoundation.IID { + .init(Data1: 0x1E07656B, Data2: 0xFAD2, Data3: 0x5B29, Data4: ( 0x91,0x3F,0xB6,0x74,0x8B,0xC4,0x59,0x42 ))// 1E07656B-FAD2-5B29-913F-B6748BC45942 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides: WindowsFoundation.IID { + .init(Data1: 0xEB1F5399, Data2: 0xCAD7, Data3: 0x5611, Data4: ( 0xB6,0x37,0x09,0xD7,0x6A,0x07,0xE7,0x08 ))// EB1F5399-CAD7-5611-B637-09D76A07E708 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadow: WindowsFoundation.IID { + .init(Data1: 0xC264208A, Data2: 0xD1F4, Data3: 0x58AE, Data4: ( 0x8A,0x88,0xFC,0x59,0x14,0x8B,0xEE,0x69 ))// C264208A-D1F4-58AE-8A88-FC59148BEE69 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadowFactory: WindowsFoundation.IID { + .init(Data1: 0x704A9C96, Data2: 0x76A0, Data3: 0x569E, Data4: ( 0x8C,0xEB,0x34,0xE9,0x2A,0x23,0xFE,0x11 ))// 704A9C96-76A0-569E-8CEB-34E92A23FE11 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransform: WindowsFoundation.IID { + .init(Data1: 0x92A8DEE5, Data2: 0x1413, Data3: 0x56B9, Data4: ( 0x8C,0xCA,0x3C,0x46,0x91,0x8F,0xDE,0x1B ))// 92A8DEE5-1413-56B9-8CCA-3C46918FDE1B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransformFactory: WindowsFoundation.IID { + .init(Data1: 0x7DA293F9, Data2: 0xB82E, Data3: 0x5D15, Data4: ( 0xB6,0x23,0xC0,0x82,0x10,0xCB,0xB6,0x40 ))// 7DA293F9-B82E-5D15-B623-C08210CBB640 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform: WindowsFoundation.IID { + .init(Data1: 0xCFA21CA9, Data2: 0xB79F, Data3: 0x5450, Data4: ( 0xB4,0x59,0xA9,0x6C,0x48,0xCB,0x2C,0x8F ))// CFA21CA9-B79F-5450-B459-A96C48CB2C8F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransformStatics: WindowsFoundation.IID { + .init(Data1: 0x1342EB11, Data2: 0x5A6E, Data3: 0x5263, Data4: ( 0xAB,0x3E,0x9B,0x67,0x2A,0x86,0xFC,0x0C ))// 1342EB11-5A6E-5263-AB3E-9B672A86FC0C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelper: WindowsFoundation.IID { + .init(Data1: 0x5F69AC1E, Data2: 0x6504, Data3: 0x5E3F, Data4: ( 0xA1,0x1C,0x87,0x68,0x4C,0x1D,0xB8,0x14 ))// 5F69AC1E-6504-5E3F-A11C-87684C1DB814 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics: WindowsFoundation.IID { + .init(Data1: 0x5AECE43C, Data2: 0x7651, Data3: 0x5BB5, Data4: ( 0x85,0x5C,0x21,0x98,0x49,0x6E,0x45,0x5E ))// 5AECE43C-7651-5BB5-855C-2198496E455E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBase: WindowsFoundation.IID { + .init(Data1: 0xFEAEAD28, Data2: 0x5CD0, Data3: 0x5E58, Data4: ( 0xBC,0xEA,0x86,0x70,0xF8,0x32,0xAC,0xA9 ))// FEAEAD28-5CD0-5E58-BCEA-8670F832ACA9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseFactory: WindowsFoundation.IID { + .init(Data1: 0xB1626D56, Data2: 0x0F6F, Data3: 0x5416, Data4: ( 0xAD,0xA4,0x5C,0x81,0x05,0xD3,0xF0,0x82 ))// B1626D56-0F6F-5416-ADA4-5C8105D3F082 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides: WindowsFoundation.IID { + .init(Data1: 0x8881B559, Data2: 0x54A0, Data3: 0x56C4, Data4: ( 0xA7,0x9A,0x13,0x51,0x52,0xFB,0x1D,0xFA ))// 8881B559-54A0-56C4-A79A-135152FB1DFA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseProtected: WindowsFoundation.IID { + .init(Data1: 0x6617E1A5, Data2: 0xE27A, Data3: 0x5B95, Data4: ( 0xB0,0x3E,0x67,0x58,0xB5,0x8F,0x92,0xA0 ))// 6617E1A5-E27A-5B95-B03E-6758B58F92A0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseStatics: WindowsFoundation.IID { + .init(Data1: 0x3EED6E16, Data2: 0xC386, Data3: 0x5A1C, Data4: ( 0xB7,0x0D,0xEF,0x1C,0x00,0x15,0xE6,0x91 ))// 3EED6E16-C386-5A1C-B70D-EF1C0015E691 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLight: WindowsFoundation.IID { + .init(Data1: 0xDCD20139, Data2: 0x8CD5, Data3: 0x5DA5, Data4: ( 0xA2,0x5C,0x2B,0x7B,0x81,0x3D,0x8D,0x58 ))// DCD20139-8CD5-5DA5-A25C-2B7B813D8D58 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightFactory: WindowsFoundation.IID { + .init(Data1: 0x76DA6306, Data2: 0x96FC, Data3: 0x553E, Data4: ( 0xBB,0x39,0x9A,0x48,0x01,0xD0,0x6F,0x48 ))// 76DA6306-96FC-553E-BB39-9A4801D06F48 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides: WindowsFoundation.IID { + .init(Data1: 0x696D4F30, Data2: 0x92EE, Data3: 0x540D, Data4: ( 0xAD,0x70,0x33,0xD4,0x48,0x95,0x14,0xD0 ))// 696D4F30-92EE-540D-AD70-33D4489514D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightProtected: WindowsFoundation.IID { + .init(Data1: 0xC307BF12, Data2: 0xFDAF, Data3: 0x54CA, Data4: ( 0xA6,0x31,0xAD,0x0E,0x86,0x26,0x3C,0x6E ))// C307BF12-FDAF-54CA-A631-AD0E86263C6E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics: WindowsFoundation.IID { + .init(Data1: 0xA2D8EA26, Data2: 0x26FF, Data3: 0x5374, Data4: ( 0xB1,0xDD,0xF2,0x32,0xD5,0x60,0x4F,0x6A ))// A2D8EA26-26FF-5374-B1DD-F232D5604F6A +} + +public enum __ABI_Microsoft_UI_Xaml_Media { + public class IAcrylicBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush } + + internal func get_TintColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.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_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintColor(pThis, .from(swift: value))) + } + } + + internal func get_TintOpacityImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintOpacity(pThis, &value)) + } + return value + } + + internal func put_TintOpacityImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintOpacity(pThis, value)) + } + } + + internal func get_TintTransitionDurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintTransitionDuration(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_TintTransitionDurationImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintTransitionDuration(pThis, .from(swift: value))) + } + } + + internal func get_AlwaysUseFallbackImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlwaysUseFallback(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AlwaysUseFallbackImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AlwaysUseFallback(pThis, .init(from: value))) + } + } + + } + + public class IAcrylicBrush2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush2 } + + internal func get_TintLuminosityOpacityImpl() throws -> Double? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintLuminosityOpacity(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value) + } + + internal func put_TintLuminosityOpacityImpl(_ value: Double?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TintLuminosityOpacity(pThis, _value)) + } + } + + } + + public class IAcrylicBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IAcrylicBrush { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IAcrylicBrush(value!) + } + + } + + public class IAcrylicBrushStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics } + + internal func get_TintColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TintOpacityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintOpacityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TintTransitionDurationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintTransitionDurationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AlwaysUseFallbackPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlwaysUseFallbackProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IAcrylicBrushStatics2: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics2 } + + internal func get_TintLuminosityOpacityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrushStatics2.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TintLuminosityOpacityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush } + + internal func get_OpacityImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Opacity(pThis, &value)) + } + return value + } + + internal func put_OpacityImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Opacity(pThis, value)) + } + } + + internal func get_TransformImpl() throws -> WinUI.Transform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TransformImpl(_ value: WinUI.Transform?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transform(pThis, RawPointer(value))) + } + } + + internal func get_RelativeTransformImpl() throws -> WinUI.Transform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RelativeTransform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_RelativeTransformImpl(_ value: WinUI.Transform?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RelativeTransform(pThis, RawPointer(value))) + } + } + + } + + public class IBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBrush { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBrush(value!) + } + + } + + public class IBrushOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides } + + internal func PopulatePropertyInfoOverrideImpl(_ propertyName: String, _ animationPropertyInfo: WinAppSDK.AnimationPropertyInfo?) throws { + let _propertyName = try! HString(propertyName) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PopulatePropertyInfoOverride(pThis, _propertyName.get(), RawPointer(animationPropertyInfo))) + } + } + + } + + public class IBrushStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushStatics } + + internal func get_OpacityPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpacityProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TransformPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RelativeTransformPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RelativeTransformProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICacheMode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheMode } + + } + + public class ICacheModeFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheModeFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ICacheMode { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheModeFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ICacheMode(value!) + } + + } + + public class ICompositeTransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform } + + internal func get_CenterXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterX(pThis, &value)) + } + return value + } + + internal func put_CenterXImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterX(pThis, value)) + } + } + + internal func get_CenterYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterY(pThis, &value)) + } + return value + } + + internal func put_CenterYImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CenterY(pThis, value)) + } + } + + internal func get_ScaleXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleX(pThis, &value)) + } + return value + } + + internal func put_ScaleXImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleX(pThis, value)) + } + } + + internal func get_ScaleYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleY(pThis, &value)) + } + return value + } + + internal func put_ScaleYImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ScaleY(pThis, value)) + } + } + + internal func get_SkewXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SkewX(pThis, &value)) + } + return value + } + + internal func put_SkewXImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SkewX(pThis, value)) + } + } + + internal func get_SkewYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SkewY(pThis, &value)) + } + return value + } + + internal func put_SkewYImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SkewY(pThis, value)) + } + } + + internal func get_RotationImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rotation(pThis, &value)) + } + return value + } + + internal func put_RotationImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rotation(pThis, value)) + } + } + + internal func get_TranslateXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslateX(pThis, &value)) + } + return value + } + + internal func put_TranslateXImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TranslateX(pThis, value)) + } + } + + internal func get_TranslateYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslateY(pThis, &value)) + } + return value + } + + internal func put_TranslateYImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TranslateY(pThis, value)) + } + } + + } + + public class ICompositeTransformStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics } + + internal func get_CenterXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_CenterYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CenterYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScaleXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ScaleYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ScaleYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SkewXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SkewXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SkewYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SkewYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RotationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RotationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TranslateXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslateXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_TranslateYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TranslateYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICompositionTarget: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTarget } + + } + + public class ICompositionTargetStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics } + + internal func add_RenderingImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Rendering(pThis, _handler, &token)) + } + return token + } + + internal func remove_RenderingImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Rendering(pThis, token)) + } + } + + internal func add_RenderedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Rendered(pThis, _handler, &token)) + } + return token + } + + internal func remove_RenderedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Rendered(pThis, token)) + } + } + + internal func add_SurfaceContentsLostImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_SurfaceContentsLost(pThis, _handler, &token)) + } + return token + } + + internal func remove_SurfaceContentsLostImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_SurfaceContentsLost(pThis, token)) + } + } + + internal func GetCompositorForCurrentThreadImpl() throws -> WinAppSDK.Compositor? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTargetStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCompositorForCurrentThread(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IFontFamily: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamily } + + internal func get_SourceImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamily.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Source(pThis, &value)) + } + return .init(from: value) + } + + } + + public class IFontFamilyFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyFactory } + + internal func CreateInstanceWithNameImpl(_ familyName: String, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFontFamily { + let (value) = try ComPtrs.initialize { valueAbi in + let _familyName = try! HString(familyName) + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithName(pThis, _familyName.get(), _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFontFamily(value!) + } + + } + + public class IFontFamilyStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyStatics } + + internal func get_XamlAutoFontFamilyImpl() throws -> WinUI.FontFamily? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamilyStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XamlAutoFontFamily(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IGeneralTransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform } + + internal func get_InverseImpl() throws -> WinUI.GeneralTransform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Inverse(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func TransformPointImpl(_ point: WindowsFoundation.Point) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TransformPoint(pThis, .from(swift: point), &result)) + } + return .from(abi: result) + } + + internal func TryTransformImpl(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool { + var returnValue: boolean = 0 + var _outPoint: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryTransform(pThis, .from(swift: inPoint), &_outPoint, &returnValue)) + } + outPoint = .from(abi: _outPoint) + return .init(from: returnValue) + } + + internal func TransformBoundsImpl(_ rect: WindowsFoundation.Rect) throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TransformBounds(pThis, .from(swift: rect), &result)) + } + return .from(abi: result) + } + + } + + public class IGeneralTransformFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGeneralTransform { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGeneralTransform(value!) + } + + } + + public class IGeneralTransformOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides } + + internal func get_InverseCoreImpl() throws -> WinUI.GeneralTransform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_InverseCore(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func TryTransformCoreImpl(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool { + var returnValue: boolean = 0 + var _outPoint: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryTransformCore(pThis, .from(swift: inPoint), &_outPoint, &returnValue)) + } + outPoint = .from(abi: _outPoint) + return .init(from: returnValue) + } + + internal func TransformBoundsCoreImpl(_ rect: WindowsFoundation.Rect) throws -> WindowsFoundation.Rect { + var result: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TransformBoundsCore(pThis, .from(swift: rect), &result)) + } + return .from(abi: result) + } + + } + + public class IGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry } + + internal func get_TransformImpl() throws -> WinUI.Transform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Transform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TransformImpl(_ value: WinUI.Transform?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Transform(pThis, RawPointer(value))) + } + } + + internal func get_BoundsImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounds(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IGeometryFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryFactory } + + } + + public class IGeometryStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryStatics } + + internal func get_EmptyImpl() throws -> WinUI.Geometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Empty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StandardFlatteningToleranceImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StandardFlatteningTolerance(pThis, &value)) + } + return value + } + + internal func get_TransformPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransformProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IGradientBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush } + + internal func get_SpreadMethodImpl() throws -> WinUI.GradientSpreadMethod { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CGradientSpreadMethod = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpreadMethod(pThis, &value)) + } + return value + } + + internal func put_SpreadMethodImpl(_ value: WinUI.GradientSpreadMethod) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SpreadMethod(pThis, value)) + } + } + + internal func get_MappingModeImpl() throws -> WinUI.BrushMappingMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CBrushMappingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MappingMode(pThis, &value)) + } + return value + } + + internal func put_MappingModeImpl(_ value: WinUI.BrushMappingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_MappingMode(pThis, value)) + } + } + + internal func get_ColorInterpolationModeImpl() throws -> WinUI.ColorInterpolationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CColorInterpolationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColorInterpolationMode(pThis, &value)) + } + return value + } + + internal func put_ColorInterpolationModeImpl(_ value: WinUI.ColorInterpolationMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ColorInterpolationMode(pThis, value)) + } + } + + internal func get_GradientStopsImpl() throws -> WinUI.GradientStopCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GradientStops(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_GradientStopsImpl(_ value: WinUI.GradientStopCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_GradientStops(pThis, RawPointer(value))) + } + } + + } + + public class IGradientBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGradientBrush { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGradientBrush(value!) + } + + } + + public class IGradientBrushStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics } + + internal func get_SpreadMethodPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpreadMethodProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_MappingModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_MappingModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ColorInterpolationModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColorInterpolationModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_GradientStopsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GradientStopsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop.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_CXaml_CMedia_CIGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + internal func get_OffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Offset(pThis, &value)) + } + return value + } + + internal func put_OffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Offset(pThis, value)) + } + } + + } + + public class IGradientStopStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStopStatics } + + internal func get_ColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStopStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStopStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IImageSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSource } + + } + + public class IImageSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSourceFactory } + + } + + public class ILineSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegment } + + internal func get_PointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Point(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_PointImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Point(pThis, .from(swift: value))) + } + } + + } + + public class ILineSegmentStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegmentStatics } + + internal func get_PointPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegmentStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ILinearGradientBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush } + + internal func get_StartPointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_StartPointImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StartPoint(pThis, .from(swift: value))) + } + } + + internal func get_EndPointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EndPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_EndPointImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EndPoint(pThis, .from(swift: value))) + } + } + + } + + public class ILinearGradientBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushFactory } + + internal func CreateInstanceWithGradientStopCollectionAndAngleImpl(_ gradientStopCollection: WinUI.GradientStopCollection?, _ angle: Double) throws -> ILinearGradientBrush { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithGradientStopCollectionAndAngle(pThis, RawPointer(gradientStopCollection), angle, &valueAbi)) + } + } + return ILinearGradientBrush(value!) + } + + } + + public class ILinearGradientBrushStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushStatics } + + internal func get_StartPointPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPointProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EndPointPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EndPointProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IMediaTransportControlsThumbnailRequestedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs } + + internal func SetThumbnailImageImpl(_ source: UWP.AnyIInputStream?) throws { + let sourceWrapper = __ABI_Windows_Storage_Streams.IInputStreamWrapper(source) + let _source = try! sourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetThumbnailImage(pThis, _source)) + } + } + + internal func GetDeferralImpl() throws -> WindowsFoundation.Deferral? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDeferral(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IMicaBackdrop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdrop } + + 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_CXaml_CMedia_CIMicaBackdrop.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_CXaml_CMedia_CIMicaBackdrop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Kind(pThis, value)) + } + } + + } + + public class IMicaBackdropFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IMicaBackdrop { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IMicaBackdrop(value!) + } + + } + + public class IMicaBackdropStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropStatics } + + internal func get_KindPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdropStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KindProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPathFigure: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure } + + internal func get_SegmentsImpl() throws -> WinUI.PathSegmentCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Segments(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_SegmentsImpl(_ value: WinUI.PathSegmentCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Segments(pThis, RawPointer(value))) + } + } + + internal func get_StartPointImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPoint(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_StartPointImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StartPoint(pThis, .from(swift: value))) + } + } + + internal func get_IsClosedImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsClosed(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsClosedImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsClosed(pThis, .init(from: value))) + } + } + + internal func get_IsFilledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFilled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsFilledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsFilled(pThis, .init(from: value))) + } + } + + } + + public class IPathFigureStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics } + + internal func get_SegmentsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SegmentsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StartPointPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StartPointProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsClosedPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsClosedProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsFilledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigureStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsFilledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPathGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry } + + internal func get_FillRuleImpl() throws -> WinUI.FillRule { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFillRule = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillRule(pThis, &value)) + } + return value + } + + internal func put_FillRuleImpl(_ value: WinUI.FillRule) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FillRule(pThis, value)) + } + } + + internal func get_FiguresImpl() throws -> WinUI.PathFigureCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Figures(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FiguresImpl(_ value: WinUI.PathFigureCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Figures(pThis, RawPointer(value))) + } + } + + } + + public class IPathGeometryStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometryStatics } + + internal func get_FillRulePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillRuleProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FiguresPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FiguresProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPathSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegment } + + } + + public class IPathSegmentFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegmentFactory } + + } + + public class IPolyBezierSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegment } + + internal func get_PointsImpl() throws -> WinUI.PointCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Points(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_PointsImpl(_ value: WinUI.PointCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Points(pThis, RawPointer(value))) + } + } + + } + + public class IPolyBezierSegmentStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegmentStatics } + + internal func get_PointsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegmentStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PointsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IProjection: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjection } + + } + + public class IProjectionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjectionFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IProjection { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjectionFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IProjection(value!) + } + + } + + public class IRectangleGeometry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometry } + + internal func get_RectImpl() throws -> WindowsFoundation.Rect { + var value: __x_ABI_CWindows_CFoundation_CRect = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rect(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RectImpl(_ value: WindowsFoundation.Rect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rect(pThis, .from(swift: value))) + } + } + + } + + public class IRectangleGeometryStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometryStatics } + + internal func get_RectPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RectProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRenderedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRenderedEventArgs } + + internal func get_FrameDurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRenderedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FrameDuration(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadow } + + } + + public class IShadowFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadowFactory } + + } + + public class ISolidColorBrush: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrush } + + internal func get_ColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrush.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_CXaml_CMedia_CISolidColorBrush.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Color(pThis, .from(swift: value))) + } + } + + } + + public class ISolidColorBrushFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushFactory } + + internal func CreateInstanceWithColorImpl(_ color: UWP.Color) throws -> ISolidColorBrush { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithColor(pThis, .from(swift: color), &valueAbi)) + } + } + return ISolidColorBrush(value!) + } + + } + + public class ISolidColorBrushStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushStatics } + + internal func get_ColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrushStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISystemBackdrop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdrop } + + internal func GetDefaultSystemBackdropConfigurationImpl(_ target: WinAppSDK.AnyICompositionSupportsSystemBackdrop?, _ xamlRoot: WinUI.XamlRoot?) throws -> WinAppSDK.SystemBackdropConfiguration? { + let (result) = try ComPtrs.initialize { resultAbi in + let targetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdrop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetDefaultSystemBackdropConfiguration(pThis, _target, RawPointer(xamlRoot), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class ISystemBackdropFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISystemBackdrop { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISystemBackdrop(value!) + } + + } + + public class ISystemBackdropOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides } + + internal func OnTargetConnectedImpl(_ connectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop?, _ xamlRoot: WinUI.XamlRoot?) throws { + let connectedTargetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(connectedTarget) + let _connectedTarget = try! connectedTargetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnTargetConnected(pThis, _connectedTarget, RawPointer(xamlRoot))) + } + } + + internal func OnTargetDisconnectedImpl(_ disconnectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop?) throws { + let disconnectedTargetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(disconnectedTarget) + let _disconnectedTarget = try! disconnectedTargetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnTargetDisconnected(pThis, _disconnectedTarget)) + } + } + + internal func OnDefaultSystemBackdropConfigurationChangedImpl(_ target: WinAppSDK.AnyICompositionSupportsSystemBackdrop?, _ xamlRoot: WinUI.XamlRoot?) throws { + let targetWrapper = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper(target) + let _target = try! targetWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDefaultSystemBackdropConfigurationChanged(pThis, _target, RawPointer(xamlRoot))) + } + } + + } + + public class IThemeShadow: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadow } + + internal func get_ReceiversImpl() throws -> WinUI.UIElementWeakCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadow.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Receivers(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IThemeShadowFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadowFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IThemeShadow { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadowFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IThemeShadow(value!) + } + + } + + public class ITransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransform } + + } + + public class ITransformFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransformFactory } + + } + + public class ITranslateTransform: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform } + + internal func get_XImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_X(pThis, &value)) + } + return value + } + + internal func put_XImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_X(pThis, value)) + } + } + + internal func get_YImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Y(pThis, &value)) + } + return value + } + + internal func put_YImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Y(pThis, value)) + } + } + + } + + public class ITranslateTransformStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransformStatics } + + internal func get_XPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_XProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_YPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransformStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_YProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IVisualTreeHelper: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelper } + + } + + public class IVisualTreeHelperStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics } + + internal func FindElementsInHostCoordinatesPointImpl(_ intersectingPoint: WindowsFoundation.Point, _ subtree: WinUI.UIElement?) throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindElementsInHostCoordinatesPoint(pThis, .from(swift: intersectingPoint), RawPointer(subtree), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func FindElementsInHostCoordinatesRectImpl(_ intersectingRect: WindowsFoundation.Rect, _ subtree: WinUI.UIElement?) throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindElementsInHostCoordinatesRect(pThis, .from(swift: intersectingRect), RawPointer(subtree), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func FindAllElementsInHostCoordinatesPointImpl(_ intersectingPoint: WindowsFoundation.Point, _ subtree: WinUI.UIElement?, _ includeAllElements: Bool) throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindAllElementsInHostCoordinatesPoint(pThis, .from(swift: intersectingPoint), RawPointer(subtree), .init(from: includeAllElements), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func FindAllElementsInHostCoordinatesRectImpl(_ intersectingRect: WindowsFoundation.Rect, _ subtree: WinUI.UIElement?, _ includeAllElements: Bool) throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FindAllElementsInHostCoordinatesRect(pThis, .from(swift: intersectingRect), RawPointer(subtree), .init(from: includeAllElements), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func GetChildImpl(_ reference: WinUI.DependencyObject?, _ childIndex: Int32) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetChild(pThis, RawPointer(reference), childIndex, &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetChildrenCountImpl(_ reference: WinUI.DependencyObject?) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetChildrenCount(pThis, RawPointer(reference), &result)) + } + return result + } + + internal func GetParentImpl(_ reference: WinUI.DependencyObject?) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetParent(pThis, RawPointer(reference), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func DisconnectChildrenRecursiveImpl(_ element: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.DisconnectChildrenRecursive(pThis, RawPointer(element))) + } + } + + internal func GetOpenPopupsImpl(_ window: WinUI.Window?) throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOpenPopups(pThis, RawPointer(window), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.unwrapFrom(abi: result) + } + + internal func GetOpenPopupsForXamlRootImpl(_ xamlRoot: WinUI.XamlRoot?) throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetOpenPopupsForXamlRoot(pThis, RawPointer(xamlRoot), &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.unwrapFrom(abi: result) + } + + } + + public class IXamlCompositionBrushBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBase } + + internal func get_FallbackColorImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBase.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_CXaml_CMedia_CIXamlCompositionBrushBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FallbackColor(pThis, .from(swift: value))) + } + } + + } + + public class IXamlCompositionBrushBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IXamlCompositionBrushBase { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IXamlCompositionBrushBase(value!) + } + + } + + public class IXamlCompositionBrushBaseOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides } + + internal func OnConnectedImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnConnected(pThis)) + } + } + + internal func OnDisconnectedImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDisconnected(pThis)) + } + } + + } + + public class IXamlCompositionBrushBaseProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseProtected } + + internal func get_CompositionBrushImpl() throws -> WinAppSDK.CompositionBrush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionBrush(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CompositionBrushImpl(_ value: WinAppSDK.CompositionBrush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompositionBrush(pThis, RawPointer(value))) + } + } + + } + + public class IXamlCompositionBrushBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseStatics } + + internal func get_FallbackColorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FallbackColorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IXamlLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLight } + + } + + public class IXamlLightFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IXamlLight { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IXamlLight(value!) + } + + } + + public class IXamlLightOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides } + + internal func GetIdImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetId(pThis, &result)) + } + return .init(from: result) + } + + internal func OnConnectedImpl(_ newElement: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnConnected(pThis, RawPointer(newElement))) + } + } + + internal func OnDisconnectedImpl(_ oldElement: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnDisconnected(pThis, RawPointer(oldElement))) + } + } + + } + + public class IXamlLightProtected: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightProtected } + + internal func get_CompositionLightImpl() throws -> WinAppSDK.CompositionLight? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CompositionLight(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_CompositionLightImpl(_ value: WinAppSDK.CompositionLight?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightProtected.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CompositionLight(pThis, RawPointer(value))) + } + } + + } + + public class IXamlLightStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics } + + internal func AddTargetElementImpl(_ lightId: String, _ element: WinUI.UIElement?) throws { + let _lightId = try! HString(lightId) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddTargetElement(pThis, _lightId.get(), RawPointer(element))) + } + } + + internal func RemoveTargetElementImpl(_ lightId: String, _ element: WinUI.UIElement?) throws { + let _lightId = try! HString(lightId) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveTargetElement(pThis, _lightId.get(), RawPointer(element))) + } + } + + internal func AddTargetBrushImpl(_ lightId: String, _ brush: WinUI.Brush?) throws { + let _lightId = try! HString(lightId) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.AddTargetBrush(pThis, _lightId.get(), RawPointer(brush))) + } + } + + internal func RemoveTargetBrushImpl(_ lightId: String, _ brush: WinUI.Brush?) throws { + let _lightId = try! HString(lightId) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveTargetBrush(pThis, _lightId.get(), RawPointer(brush))) + } + } + + } + + internal typealias IBrushOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IBrushOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverridesVtbl = .init( + QueryInterface: { IBrushOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IBrushOverridesWrapper.addRef($0) }, + Release: { IBrushOverridesWrapper.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_Xaml_Media.IBrushOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IBrushOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + PopulatePropertyInfoOverride: { + do { + guard let __unwrapped__instance = IBrushOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let propertyName: String = .init(from: $1) + let animationPropertyInfo: WinAppSDK.AnimationPropertyInfo? = .from(abi: ComPtr($2)) + try __unwrapped__instance.populatePropertyInfoOverride(propertyName, animationPropertyInfo) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IGeneralTransformOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IGeneralTransformOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverridesVtbl = .init( + QueryInterface: { IGeneralTransformOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IGeneralTransformOverridesWrapper.addRef($0) }, + Release: { IGeneralTransformOverridesWrapper.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_Xaml_Media.IGeneralTransformOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IGeneralTransformOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + get_InverseCore: { + guard let __unwrapped__instance = IGeneralTransformOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value = __unwrapped__instance.inverseCore + value?.copyTo($1) + return S_OK + }, + + TryTransformCore: { + do { + guard let __unwrapped__instance = IGeneralTransformOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let inPoint: WindowsFoundation.Point = .from(abi: $1) + var outPoint: WindowsFoundation.Point = .init() + let returnValue = try __unwrapped__instance.tryTransformCore(inPoint, &outPoint) + $2?.initialize(to: .from(swift: outPoint)) + $3?.initialize(to: .init(from: returnValue)) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + TransformBoundsCore: { + do { + guard let __unwrapped__instance = IGeneralTransformOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let rect: WindowsFoundation.Rect = .from(abi: $1) + let result = try __unwrapped__instance.transformBoundsCore(rect) + $2?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias ISystemBackdropOverridesWrapper = UnsealedWinRTClassWrapper + internal static var ISystemBackdropOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverridesVtbl = .init( + QueryInterface: { ISystemBackdropOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { ISystemBackdropOverridesWrapper.addRef($0) }, + Release: { ISystemBackdropOverridesWrapper.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_Xaml_Media.ISystemBackdropOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = ISystemBackdropOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnTargetConnected: { + do { + guard let __unwrapped__instance = ISystemBackdropOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let connectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop? = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.unwrapFrom(abi: ComPtr($1)) + let xamlRoot: WinUI.XamlRoot? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onTargetConnected(connectedTarget, xamlRoot) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnTargetDisconnected: { + do { + guard let __unwrapped__instance = ISystemBackdropOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let disconnectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop? = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onTargetDisconnected(disconnectedTarget) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDefaultSystemBackdropConfigurationChanged: { + do { + guard let __unwrapped__instance = ISystemBackdropOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let target: WinAppSDK.AnyICompositionSupportsSystemBackdrop? = __ABI_Microsoft_UI_Composition.ICompositionSupportsSystemBackdropWrapper.unwrapFrom(abi: ComPtr($1)) + let xamlRoot: WinUI.XamlRoot? = .from(abi: ComPtr($2)) + try __unwrapped__instance.onDefaultSystemBackdropConfigurationChanged(target, xamlRoot) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IXamlCompositionBrushBaseOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IXamlCompositionBrushBaseOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverridesVtbl = .init( + QueryInterface: { IXamlCompositionBrushBaseOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlCompositionBrushBaseOverridesWrapper.addRef($0) }, + Release: { IXamlCompositionBrushBaseOverridesWrapper.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_Xaml_Media.IXamlCompositionBrushBaseOverridesWrapper.IID + iids[3] = __ABI_Microsoft_UI_Xaml_Media.IBrushOverridesWrapper.IID + $1!.pointee = 4 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IXamlCompositionBrushBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnConnected: { + do { + guard let __unwrapped__instance = IXamlCompositionBrushBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onConnected() + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDisconnected: { + do { + guard let __unwrapped__instance = IXamlCompositionBrushBaseOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + try __unwrapped__instance.onDisconnected() + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) + internal typealias IXamlLightOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IXamlLightOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverridesVtbl = .init( + QueryInterface: { IXamlLightOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlLightOverridesWrapper.addRef($0) }, + Release: { IXamlLightOverridesWrapper.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_Xaml_Media.IXamlLightOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IXamlLightOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetId: { + do { + guard let __unwrapped__instance = IXamlLightOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getId() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnConnected: { + do { + guard let __unwrapped__instance = IXamlLightOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let newElement: WinUI.UIElement? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onConnected(newElement) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + OnDisconnected: { + do { + guard let __unwrapped__instance = IXamlLightOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let oldElement: WinUI.UIElement? = .from(abi: ComPtr($1)) + try __unwrapped__instance.onDisconnected(oldElement) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media.IBrushOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media.IXamlLightOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+Impl.swift new file mode 100644 index 0000000..ef2d1ac --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media+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_Xaml_Media { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+ABI.swift new file mode 100644 index 0000000..def9fb4 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+ABI.swift @@ -0,0 +1,4797 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIAddDeleteThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x3728595E, Data2: 0x0EA2, Data3: 0x524B, Data4: ( 0x93,0x48,0x86,0xCF,0xB8,0x60,0xA0,0xFF ))// 3728595E-0EA2-524B-9348-86CFB860A0FF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEase: WindowsFoundation.IID { + .init(Data1: 0x1775BD43, Data2: 0x1939, Data3: 0x57CB, Data4: ( 0x8C,0x31,0xCD,0x75,0x90,0xEC,0x95,0x43 ))// 1775BD43-1939-57CB-8C31-CD7590EC9543 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEaseStatics: WindowsFoundation.IID { + .init(Data1: 0x1EAD2EF9, Data2: 0x7901, Data3: 0x542D, Data4: ( 0xAE,0x08,0x7B,0x59,0x37,0xB3,0x2E,0xF0 ))// 1EAD2EF9-7901-542D-AE08-7B5937B32EF0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfiguration: WindowsFoundation.IID { + .init(Data1: 0x7FF18AFE, Data2: 0x91E8, Data3: 0x52FA, Data4: ( 0xA1,0xC1,0x7B,0x2C,0x1A,0x14,0x01,0x18 ))// 7FF18AFE-91E8-52FA-A1C1-7B2C1A140118 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfigurationFactory: WindowsFoundation.IID { + .init(Data1: 0x2D156A02, Data2: 0x0FB5, Data3: 0x5AD1, Data4: ( 0xAF,0x9B,0xBC,0x9C,0x27,0x20,0xFE,0xCB ))// 2D156A02-0FB5-5AD1-AF9B-BC9C2720FECB +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboard: WindowsFoundation.IID { + .init(Data1: 0xBB364720, Data2: 0xEE5A, Data3: 0x5B32, Data4: ( 0x91,0xE2,0x62,0x58,0x97,0x29,0xFD,0x3A ))// BB364720-EE5A-5B32-91E2-62589729FD3A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboardStatics: WindowsFoundation.IID { + .init(Data1: 0x4D5FDBEB, Data2: 0x6B0E, Data3: 0x5A8F, Data4: ( 0xA8,0xF0,0x01,0xF4,0x38,0xDF,0x8F,0xB2 ))// 4D5FDBEB-6B0E-5A8F-A8F0-01F438DF8FB2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase: WindowsFoundation.IID { + .init(Data1: 0xC138BFFF, Data2: 0x87C8, Data3: 0x5C60, Data4: ( 0xB2,0x80,0x68,0x2A,0x49,0x9C,0x58,0xC3 ))// C138BFFF-87C8-5C60-B280-682A499C58C3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEaseStatics: WindowsFoundation.IID { + .init(Data1: 0xD7716B38, Data2: 0xC705, Data3: 0x5093, Data4: ( 0x96,0xD6,0x73,0x5C,0x13,0x10,0x5A,0x30 ))// D7716B38-C705-5093-96D6-735C13105A30 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICircleEase: WindowsFoundation.IID { + .init(Data1: 0x88209080, Data2: 0x2929, Data3: 0x5924, Data4: ( 0x9B,0x52,0xF9,0x51,0x96,0x56,0x87,0x13 ))// 88209080-2929-5924-9B52-F95196568713 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation: WindowsFoundation.IID { + .init(Data1: 0x6DF862D2, Data2: 0x65F2, Data3: 0x53A8, Data4: ( 0x8B,0x1B,0x1B,0x6C,0x17,0x63,0xC1,0x75 ))// 6DF862D2-65F2-53A8-8B1B-1B6C1763C175 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x99AEBE0F, Data2: 0x928E, Data3: 0x52CB, Data4: ( 0x84,0x2F,0xF4,0x3F,0xE6,0x60,0xFF,0x06 ))// 99AEBE0F-928E-52CB-842F-F43FE660FF06 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames: WindowsFoundation.IID { + .init(Data1: 0x96F28C97, Data2: 0x67EB, Data3: 0x5393, Data4: ( 0x8E,0x37,0xA8,0x1D,0x8F,0xDA,0x18,0xB3 ))// 96F28C97-67EB-5393-8E37-A81D8FDA18B3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFramesStatics: WindowsFoundation.IID { + .init(Data1: 0x5B0F4840, Data2: 0x0EF7, Data3: 0x5AD7, Data4: ( 0xA8,0xF2,0xD4,0x94,0x24,0xED,0x90,0x6F ))// 5B0F4840-0EF7-5AD7-A8F2-D49424ED906F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x02848C7E, Data2: 0xC772, Data3: 0x5F66, Data4: ( 0x84,0x2B,0xFD,0x49,0x4D,0x0D,0xA6,0x69 ))// 02848C7E-C772-5F66-842B-FD494D0DA669 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameFactory: WindowsFoundation.IID { + .init(Data1: 0xA82CC182, Data2: 0x9D80, Data3: 0x508C, Data4: ( 0xB9,0x62,0xD7,0x42,0x25,0x58,0x72,0x00 ))// A82CC182-9D80-508C-B962-D74225587200 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0xB62FDD68, Data2: 0x15C7, Data3: 0x5C6C, Data4: ( 0xA4,0xFA,0x0C,0xEE,0x10,0xE0,0x45,0x56 ))// B62FDD68-15C7-5C6C-A4FA-0CEE10E04556 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0xB21CC95F, Data2: 0x9E3D, Data3: 0x540A, Data4: ( 0xB3,0x5A,0x17,0xB9,0x9D,0xC4,0x1B,0x1E ))// B21CC95F-9E3D-540A-B35A-17B99DC41B1E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics: WindowsFoundation.IID { + .init(Data1: 0x20020BE1, Data2: 0xC1BA, Data3: 0x59F5, Data4: ( 0x99,0x7A,0xC0,0x4F,0x5E,0x38,0x33,0xB0 ))// 20020BE1-C1BA-59F5-997A-C04F5E3833B0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation: WindowsFoundation.IID { + .init(Data1: 0xA9C1C6AD, Data2: 0x7670, Data3: 0x589C, Data4: ( 0xA6,0x08,0x9B,0x5C,0x01,0xCE,0xC7,0x1F ))// A9C1C6AD-7670-589C-A608-9B5C01CEC71F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfiguration: WindowsFoundation.IID { + .init(Data1: 0xE848379D, Data2: 0x7E25, Data3: 0x5976, Data4: ( 0xBF,0xB3,0x08,0x6B,0xAC,0x4E,0x88,0x49 ))// E848379D-7E25-5976-BFB3-086BAC4E8849 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfigurationFactory: WindowsFoundation.IID { + .init(Data1: 0x71008845, Data2: 0x4A12, Data3: 0x5A1A, Data4: ( 0x96,0x9C,0x41,0x52,0xB5,0x17,0x49,0x22 ))// 71008845-4A12-5A1A-969C-4152B5174922 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService: WindowsFoundation.IID { + .init(Data1: 0x85F72163, Data2: 0xC3C8, Data3: 0x586A, Data4: ( 0x91,0xFE,0x3E,0x03,0x15,0xA3,0xA4,0xFC ))// 85F72163-C3C8-586A-91FE-3E0315A3A4FC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationServiceStatics: WindowsFoundation.IID { + .init(Data1: 0xF30AD68D, Data2: 0x3426, Data3: 0x5564, Data4: ( 0x92,0xC6,0x28,0x8B,0x81,0x9E,0x65,0x2A ))// F30AD68D-3426-5564-92C6-288B819E652A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition: WindowsFoundation.IID { + .init(Data1: 0xDFF47071, Data2: 0xCC51, Data3: 0x556C, Data4: ( 0xA3,0xFE,0x8B,0xBB,0x4C,0xBA,0x61,0x95 ))// DFF47071-CC51-556C-A3FE-8BBB4CBA6195 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0x95CDA8B1, Data2: 0x6667, Data3: 0x56E3, Data4: ( 0xBE,0x40,0x86,0x6E,0xEF,0x53,0x66,0x3C ))// 95CDA8B1-6667-56E3-BE40-866EEF53663C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0xC55DA70F, Data2: 0xFF2A, Data3: 0x5FC3, Data4: ( 0x81,0xC5,0x96,0x70,0xF4,0xD7,0x87,0x52 ))// C55DA70F-FF2A-5FC3-81C5-9670F4D78752 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics: WindowsFoundation.IID { + .init(Data1: 0xCA9006FD, Data2: 0xF513, Data3: 0x5F34, Data4: ( 0xAD,0x7F,0x49,0xF9,0xD7,0xA9,0x94,0x32 ))// CA9006FD-F513-5F34-AD7F-49F9D7A99432 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICubicEase: WindowsFoundation.IID { + .init(Data1: 0x01A218B4, Data2: 0xEB7E, Data3: 0x54F9, Data4: ( 0xBF,0xB6,0xC6,0xEE,0x12,0x80,0x13,0xD2 ))// 01A218B4-EB7E-54F9-BFB6-C6EE128013D2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfiguration: WindowsFoundation.IID { + .init(Data1: 0x44F192EB, Data2: 0xCC11, Data3: 0x545E, Data4: ( 0x8F,0xA2,0x1F,0x0E,0xC9,0xC4,0x43,0x8A ))// 44F192EB-CC11-545E-8FA2-1F0EC9C4438A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfigurationFactory: WindowsFoundation.IID { + .init(Data1: 0x604ABA9B, Data2: 0x4EB8, Data3: 0x5310, Data4: ( 0x91,0xDC,0x30,0x96,0x2E,0x25,0xAB,0x00 ))// 604ABA9B-4EB8-5310-91DC-30962E25AB00 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x9B3D88A7, Data2: 0x31D3, Data3: 0x5912, Data4: ( 0x86,0x46,0x64,0x1A,0x8A,0x56,0x5C,0xA1 ))// 9B3D88A7-31D3-5912-8646-641A8A565CA1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xEC16A555, Data2: 0xC083, Data3: 0x5A18, Data4: ( 0x80,0x5B,0xA1,0x4B,0x90,0xBC,0x80,0xE2 ))// EC16A555-C083-5A18-805B-A14B90BC80E2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x542FA813, Data2: 0x6892, Data3: 0x559D, Data4: ( 0x9F,0x69,0x1F,0x2A,0xC6,0x66,0xAF,0x13 ))// 542FA813-6892-559D-9F69-1F2AC666AF13 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscretePointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x2255A291, Data2: 0x007E, Data3: 0x57CE, Data4: ( 0xAA,0x53,0x97,0xD1,0xE4,0xA0,0xD7,0xE2 ))// 2255A291-007E-57CE-AA53-97D1E4A0D7E2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation: WindowsFoundation.IID { + .init(Data1: 0x651EC97E, Data2: 0xE483, Data3: 0x5985, Data4: ( 0xAA,0x0B,0x49,0xCF,0xB0,0x74,0x32,0xDD ))// 651EC97E-E483-5985-AA0B-49CFB07432DD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x4E098387, Data2: 0xADC6, Data3: 0x5549, Data4: ( 0xAD,0x21,0x63,0x3E,0x4F,0xA2,0x44,0xC2 ))// 4E098387-ADC6-5549-AD21-633E4FA244C2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames: WindowsFoundation.IID { + .init(Data1: 0x815437D5, Data2: 0x63CF, Data3: 0x54A5, Data4: ( 0xAE,0xA5,0x24,0xB8,0x47,0x08,0xD1,0x2D ))// 815437D5-63CF-54A5-AEA5-24B84708D12D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFramesStatics: WindowsFoundation.IID { + .init(Data1: 0x4C1C9BF1, Data2: 0x3A03, Data3: 0x5689, Data4: ( 0xB1,0x8F,0x6C,0x44,0x25,0x1E,0x13,0xD9 ))// 4C1C9BF1-3A03-5689-B18F-6C44251E13D9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x94C82AE6, Data2: 0xCA62, Data3: 0x5F52, Data4: ( 0x93,0x4C,0x3E,0x42,0x7E,0x75,0xD6,0x9A ))// 94C82AE6-CA62-5F52-934C-3E427E75D69A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameFactory: WindowsFoundation.IID { + .init(Data1: 0x2D492CB3, Data2: 0xF488, Data3: 0x5D30, Data4: ( 0xB0,0x0C,0xB6,0xF2,0x54,0x7D,0x0E,0xFE ))// 2D492CB3-F488-5D30-B00C-B6F2547D0EFE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x0E56914C, Data2: 0xB430, Data3: 0x538F, Data4: ( 0xBB,0x66,0x0B,0x8E,0x83,0xAB,0x3D,0xB6 ))// 0E56914C-B430-538F-BB66-0B8E83AB3DB6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x648E690E, Data2: 0xA2C0, Data3: 0x58CA, Data4: ( 0xB1,0x5D,0xDB,0x6F,0xCC,0xC6,0x63,0xF2 ))// 648E690E-A2C0-58CA-B15D-DB6FCCC663F2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xCDBDB41A, Data2: 0xCE84, Data3: 0x50A1, Data4: ( 0x8B,0x96,0x96,0x59,0x9C,0xD9,0x61,0x9D ))// CDBDB41A-CE84-50A1-8B96-96599CD9619D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x633CD3C0, Data2: 0x71AF, Data3: 0x52FD, Data4: ( 0x99,0x3E,0x50,0x4E,0x3E,0x6F,0x56,0xD4 ))// 633CD3C0-71AF-52FD-993E-504E3E6F56D4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x8301AFD2, Data2: 0x68B2, Data3: 0x5C6C, Data4: ( 0xAA,0xDF,0x9A,0x98,0xD6,0x20,0xE8,0xD2 ))// 8301AFD2-68B2-5C6C-AADF-9A98D620E8D2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0x5D5863D6, Data2: 0x4BBF, Data3: 0x5B30, Data4: ( 0x94,0xFA,0x03,0x45,0x31,0xCF,0xA2,0xAA ))// 5D5863D6-4BBF-5B30-94FA-034531CFA2AA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x097577E0, Data2: 0x3027, Data3: 0x5F24, Data4: ( 0xAF,0x8C,0x97,0x6D,0x9F,0xAE,0xD8,0x30 ))// 097577E0-3027-5F24-AF8C-976D9FAED830 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xBA24258E, Data2: 0x3A8E, Data3: 0x5804, Data4: ( 0x91,0x5A,0x76,0x70,0x89,0x3D,0xBE,0xA4 ))// BA24258E-3A8E-5804-915A-7670893DBEA4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x9A93B9CC, Data2: 0x925F, Data3: 0x525A, Data4: ( 0x9E,0xAC,0x55,0xD3,0x9D,0xB3,0xD3,0x14 ))// 9A93B9CC-925F-525A-9EAC-55D39DB3D314 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x6EB9693B, Data2: 0xC0D0, Data3: 0x5BAE, Data4: ( 0x9C,0xD2,0x10,0xD8,0x0B,0x8D,0x38,0x67 ))// 6EB9693B-C0D0-5BAE-9CD2-10D80B8D3867 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0xB97F19C0, Data2: 0xF1E2, Data3: 0x5705, Data4: ( 0xA2,0x52,0x2D,0xB0,0x5D,0x2E,0x5A,0x54 ))// B97F19C0-F1E2-5705-A252-2DB05D2E5A54 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xA0CE9E16, Data2: 0xAE12, Data3: 0x55FC, Data4: ( 0xA9,0xE5,0x29,0xDC,0x94,0xA7,0x13,0xBD ))// A0CE9E16-AE12-55FC-A9E5-29DC94A713BD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xA137A710, Data2: 0xDA3C, Data3: 0x5426, Data4: ( 0xA1,0xA2,0x3A,0x5A,0x67,0x2A,0x42,0x64 ))// A137A710-DA3C-5426-A1A2-3A5A672A4264 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0xC57818C0, Data2: 0x3361, Data3: 0x587D, Data4: ( 0xB3,0x81,0x62,0x0B,0x69,0x25,0x1B,0xCF ))// C57818C0-3361-587D-B381-620B69251BCF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x935D9B7E, Data2: 0xDA61, Data3: 0x5BB2, Data4: ( 0xA5,0x74,0x7D,0x2E,0x53,0xB6,0x05,0x61 ))// 935D9B7E-DA61-5BB2-A574-7D2E53B60561 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x8CC08735, Data2: 0x4221, Data3: 0x5127, Data4: ( 0xAB,0x2F,0x1E,0x7E,0x3D,0xF9,0x5F,0xB9 ))// 8CC08735-4221-5127-AB2F-1E7E3DF95FB9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase: WindowsFoundation.IID { + .init(Data1: 0x4FAB519A, Data2: 0xA93D, Data3: 0x5D28, Data4: ( 0xAF,0x18,0x84,0x53,0x2B,0xD3,0x2E,0xFE ))// 4FAB519A-A93D-5D28-AF18-84532BD32EFE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBaseFactory: WindowsFoundation.IID { + .init(Data1: 0xB1B92F4C, Data2: 0x5EC7, Data3: 0x5CDA, Data4: ( 0xB1,0xD4,0xFD,0x15,0x95,0x95,0xCA,0x47 ))// B1B92F4C-5EC7-5CDA-B1D4-FD159595CA47 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBaseStatics: WindowsFoundation.IID { + .init(Data1: 0x09032445, Data2: 0x967C, Data3: 0x52B8, Data4: ( 0xB7,0x12,0x15,0xF0,0x66,0xB3,0x28,0x21 ))// 09032445-967C-52B8-B712-15F066B32821 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x9406EE8E, Data2: 0x3641, Data3: 0x54FE, Data4: ( 0xA4,0x24,0x83,0x42,0x0E,0xA4,0x5C,0xD3 ))// 9406EE8E-3641-54FE-A424-83420EA45CD3 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0xAC727659, Data2: 0x92A3, Data3: 0x52EA, Data4: ( 0x89,0x49,0xB6,0x09,0xE4,0x8C,0x23,0x3D ))// AC727659-92A3-52EA-8949-B609E48C233D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x57089964, Data2: 0xE358, Data3: 0x5FE2, Data4: ( 0x84,0xE7,0x15,0xE8,0x2B,0xBA,0x9C,0x06 ))// 57089964-E358-5FE2-84E7-15E82BBA9C06 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0x316AF8D4, Data2: 0xD2A0, Data3: 0x5D27, Data4: ( 0x9A,0xF6,0x74,0x77,0x97,0x96,0x5D,0x46 ))// 316AF8D4-D2A0-5D27-9AF6-747797965D46 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase: WindowsFoundation.IID { + .init(Data1: 0x2B18D50B, Data2: 0x4D34, Data3: 0x509B, Data4: ( 0x91,0x5C,0x61,0xB1,0xAA,0x6F,0x83,0xD8 ))// 2B18D50B-4D34-509B-915C-61B1AA6F83D8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEaseStatics: WindowsFoundation.IID { + .init(Data1: 0x95FD9290, Data2: 0xD279, Data3: 0x5857, Data4: ( 0x9F,0x50,0x3F,0x29,0x9A,0x2D,0x02,0xF4 ))// 95FD9290-D279-5857-9F50-3F299A2D02F4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0xDEC74921, Data2: 0x0ED7, Data3: 0x54E1, Data4: ( 0x8C,0x1D,0x30,0xB8,0xCC,0xCC,0x4B,0x8D ))// DEC74921-0ED7-54E1-8C1D-30B8CCCC4B8D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfoStatics: WindowsFoundation.IID { + .init(Data1: 0xF1096DE1, Data2: 0x1F79, Data3: 0x5D38, Data4: ( 0xA4,0xD6,0x16,0xF3,0xBD,0xAA,0xB7,0xF0 ))// F1096DE1-1F79-5D38-A4D6-16F3BDAAB7F0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x8EB681FA, Data2: 0x1629, Data3: 0x5E29, Data4: ( 0xAC,0x1E,0x70,0xF3,0x63,0x93,0x29,0xF8 ))// 8EB681FA-1629-5E29-AC1E-70F3639329F8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0xC99E5435, Data2: 0xFACC, Data3: 0x50AF, Data4: ( 0xB9,0x6C,0x63,0xB1,0x4F,0xE7,0x15,0x6E ))// C99E5435-FACC-50AF-B96C-63B14FE7156E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEase: WindowsFoundation.IID { + .init(Data1: 0x4D289262, Data2: 0xE832, Data3: 0x5FBC, Data4: ( 0xA9,0x8B,0x87,0xA6,0xEC,0xB3,0xB6,0xCC ))// 4D289262-E832-5FBC-A98B-87A6ECB3B6CC +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEaseStatics: WindowsFoundation.IID { + .init(Data1: 0x8394AB8F, Data2: 0xDDF1, Data3: 0x55D0, Data4: ( 0xAC,0xF1,0x07,0xFE,0xDD,0x92,0x9B,0xB5 ))// 8394AB8F-DDF1-55D0-ACF1-07FEDD929BB5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x0DCA074A, Data2: 0x31CC, Data3: 0x5E70, Data4: ( 0x8B,0x6B,0x8D,0xBD,0x7F,0xFF,0x01,0xF6 ))// 0DCA074A-31CC-5E70-8B6B-8DBD7FFF01F6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x5D74A6A6, Data2: 0x92C6, Data3: 0x5E49, Data4: ( 0x86,0x5F,0x67,0x60,0x87,0x24,0x71,0x79 ))// 5D74A6A6-92C6-5E49-865F-676087247179 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x114024D6, Data2: 0x5D67, Data3: 0x5C9C, Data4: ( 0x83,0xC5,0x54,0xA8,0xBD,0x7B,0x67,0x1A ))// 114024D6-5D67-5C9C-83C5-54A8BD7B671A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x0277BEA1, Data2: 0xA0A5, Data3: 0x5E26, Data4: ( 0x9B,0x56,0x6A,0x42,0x08,0x86,0x27,0x38 ))// 0277BEA1-A0A5-5E26-9B56-6A4208862738 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration: WindowsFoundation.IID { + .init(Data1: 0x04C8B276, Data2: 0xCFF3, Data3: 0x5A55, Data4: ( 0x92,0x29,0x33,0xDC,0x66,0xC9,0x9E,0x20 ))// 04C8B276-CFF3-5A55-9229-33DC66C99E20 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfigurationFactory: WindowsFoundation.IID { + .init(Data1: 0xBC7A71B5, Data2: 0x7CDA, Data3: 0x5BB7, Data4: ( 0x96,0x7E,0xD6,0xA0,0x31,0x28,0x5A,0x9C ))// BC7A71B5-7CDA-5BB7-967E-D6A031285A9C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline: WindowsFoundation.IID { + .init(Data1: 0x130D8B2B, Data2: 0x0B52, Data3: 0x5253, Data4: ( 0x88,0x1B,0x36,0xAB,0x48,0x59,0x2E,0x6B ))// 130D8B2B-0B52-5253-881B-36AB48592E6B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelper: WindowsFoundation.IID { + .init(Data1: 0xE354DA44, Data2: 0x1F24, Data3: 0x59C6, Data4: ( 0xBC,0x5B,0xD6,0xB1,0xBA,0x26,0x7E,0x9C ))// E354DA44-1F24-59C6-BC5B-D6B1BA267E9C +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelperStatics: WindowsFoundation.IID { + .init(Data1: 0xAE5D22C9, Data2: 0x0FDB, Data3: 0x5823, Data4: ( 0x88,0x46,0x8A,0x4D,0x0B,0x9E,0xEB,0xFA ))// AE5D22C9-0FDB-5823-8846-8A4D0B9EEBFA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x0BCE4CD6, Data2: 0x3A80, Data3: 0x5F2F, Data4: ( 0x93,0x2E,0x61,0x9A,0x85,0x46,0xD0,0xBD ))// 0BCE4CD6-3A80-5F2F-932E-619A8546D0BD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x38A635B9, Data2: 0xF613, Data3: 0x55E0, Data4: ( 0xAA,0xEC,0x9D,0x4E,0x09,0x7E,0xFF,0x91 ))// 38A635B9-F613-55E0-AAEC-9D4E097EFF91 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x4EC22493, Data2: 0xBACB, Data3: 0x5105, Data4: ( 0xAC,0x16,0x8E,0xA5,0x41,0x8A,0xB7,0x6E ))// 4EC22493-BACB-5105-AC16-8EA5418AB76E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransition: WindowsFoundation.IID { + .init(Data1: 0xD7CFBD3B, Data2: 0x0D27, Data3: 0x5EA1, Data4: ( 0xBE,0xB7,0xF6,0xB8,0x47,0x52,0x0D,0xC6 ))// D7CFBD3B-0D27-5EA1-BEB7-F6B847520DC6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0x78323EFF, Data2: 0xD543, Data3: 0x551D, Data4: ( 0xB2,0xC7,0x94,0xE9,0x3A,0x16,0x06,0x5B ))// 78323EFF-D543-551D-B2C7-94E93A16065B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0x25BB17FB, Data2: 0x6E15, Data3: 0x514E, Data4: ( 0xB2,0x78,0x19,0x75,0x37,0xA4,0xD9,0x90 ))// 25BB17FB-6E15-514E-B278-197537A4D990 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoFactory: WindowsFoundation.IID { + .init(Data1: 0xC514B6FF, Data2: 0xF6ED, Data3: 0x572E, Data4: ( 0x83,0x92,0x3E,0xA1,0x7B,0xC7,0xD4,0xC4 ))// C514B6FF-F6ED-572E-8392-3EA17BC7D4C4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides: WindowsFoundation.IID { + .init(Data1: 0x3D6AF190, Data2: 0x5A56, Data3: 0x513D, Data4: ( 0xAF,0xF9,0x63,0x19,0x25,0xD0,0xFA,0x43 ))// 3D6AF190-5A56-513D-AFF9-631925D0FA43 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames: WindowsFoundation.IID { + .init(Data1: 0xAA08DC4C, Data2: 0x0B03, Data3: 0x5C0A, Data4: ( 0xB0,0x84,0xD9,0x5D,0x27,0x2B,0x2F,0x0D ))// AA08DC4C-0B03-5C0A-B084-D95D272B2F0D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFramesStatics: WindowsFoundation.IID { + .init(Data1: 0x411A09B0, Data2: 0x9AB4, Data3: 0x54B9, Data4: ( 0x99,0xB9,0x54,0xF9,0x55,0xA6,0x75,0x4E ))// 411A09B0-9AB4-54B9-99B9-54F955A6754E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xC5A9F65B, Data2: 0xFC69, Data3: 0x5A88, Data4: ( 0xA7,0x97,0x34,0xF4,0x6D,0x76,0x13,0x81 ))// C5A9F65B-FC69-5A88-A797-34F46D761381 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameFactory: WindowsFoundation.IID { + .init(Data1: 0xDC59DA6E, Data2: 0x82B9, Data3: 0x55F7, Data4: ( 0xA3,0x58,0xBA,0x2A,0x07,0x66,0x5A,0xA9 ))// DC59DA6E-82B9-55F7-A358-BA2A07665AA9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x39E59CEB, Data2: 0x2859, Data3: 0x5A5F, Data4: ( 0xAC,0xD8,0xBC,0x49,0x1D,0x49,0xC4,0xB6 ))// 39E59CEB-2859-5A5F-ACD8-BC491D49C4B6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x321BCD80, Data2: 0x157C, Data3: 0x5E10, Data4: ( 0xB0,0xFE,0x64,0x40,0xBD,0x92,0x52,0x9A ))// 321BCD80-157C-5E10-B0FE-6440BD92529A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0x47E01752, Data2: 0x5264, Data3: 0x5FB1, Data4: ( 0x89,0x46,0xAB,0x49,0xFE,0x6A,0xF8,0xFD ))// 47E01752-5264-5FB1-8946-AB49FE6AF8FD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation: WindowsFoundation.IID { + .init(Data1: 0xA0737CC4, Data2: 0x2EAB, Data3: 0x5C13, Data4: ( 0xA5,0xD7,0x78,0x36,0x1D,0xF1,0x00,0x0E ))// A0737CC4-2EAB-5C13-A5D7-78361DF1000E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x71CFB43B, Data2: 0xBADA, Data3: 0x554B, Data4: ( 0x8F,0xCA,0xB5,0x58,0xD6,0x23,0xBB,0xC0 ))// 71CFB43B-BADA-554B-8FCA-B558D623BBC0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames: WindowsFoundation.IID { + .init(Data1: 0xBDD63992, Data2: 0xDF13, Data3: 0x5514, Data4: ( 0x86,0x11,0x49,0x52,0xF7,0x22,0xF6,0xD0 ))// BDD63992-DF13-5514-8611-4952F722F6D0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFramesStatics: WindowsFoundation.IID { + .init(Data1: 0x04152B3B, Data2: 0xF0DA, Data3: 0x5B28, Data4: ( 0x87,0x7D,0x9A,0xC9,0x6D,0x33,0x4A,0x77 ))// 04152B3B-F0DA-5B28-877D-9AC96D334A77 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x59D5C07D, Data2: 0xA3A7, Data3: 0x5450, Data4: ( 0x9D,0xFB,0x4B,0x7E,0x77,0xD5,0x8F,0x93 ))// 59D5C07D-A3A7-5450-9DFB-4B7E77D58F93 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameFactory: WindowsFoundation.IID { + .init(Data1: 0xC52EE293, Data2: 0xF10E, Data3: 0x5252, Data4: ( 0xBC,0x08,0xA2,0x86,0x59,0x74,0x0F,0x0E ))// C52EE293-F10E-5252-BC08-A28659740F0E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x96CD72FD, Data2: 0xD834, Data3: 0x5B23, Data4: ( 0x9A,0x17,0x15,0x48,0x96,0x1D,0xC3,0x48 ))// 96CD72FD-D834-5B23-9A17-1548961DC348 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0xABDD1ACC, Data2: 0x40DF, Data3: 0x595D, Data4: ( 0xBE,0x68,0x03,0x62,0xFE,0x68,0x1B,0x91 ))// ABDD1ACC-40DF-595D-BE68-0362FE681B91 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x12268B39, Data2: 0xFB7D, Data3: 0x53DA, Data4: ( 0x8C,0xCC,0x59,0x67,0xDC,0x06,0xBC,0xE9 ))// 12268B39-FB7D-53DA-8CCC-5967DC06BCE9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x94896D1C, Data2: 0xC938, Data3: 0x5D68, Data4: ( 0x84,0xDA,0x55,0x2B,0xDE,0x81,0x58,0x10 ))// 94896D1C-C938-5D68-84DA-552BDE815810 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x51A3117E, Data2: 0xC6FA, Data3: 0x5DC5, Data4: ( 0x8D,0xB8,0x73,0xF0,0x60,0x00,0x3A,0xE4 ))// 51A3117E-C6FA-5DC5-8DB8-73F060003AE4 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x20136388, Data2: 0xB4E4, Data3: 0x5CBB, Data4: ( 0x9C,0xB2,0xDF,0x2E,0xA7,0xE6,0xC4,0x4B ))// 20136388-B4E4-5CBB-9CB2-DF2EA7E6C44B +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x8C9378A9, Data2: 0xD276, Data3: 0x5A1D, Data4: ( 0x81,0x88,0xF4,0x8F,0x07,0x84,0x0A,0x16 ))// 8C9378A9-D276-5A1D-8188-F48F07840A16 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x1BB20DD3, Data2: 0x5648, Data3: 0x541A, Data4: ( 0xA0,0xC9,0x37,0xA9,0x55,0xDB,0x10,0xA6 ))// 1BB20DD3-5648-541A-A0C9-37A955DB10A6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x3F569F96, Data2: 0x367E, Data3: 0x595C, Data4: ( 0x97,0x32,0x2F,0xB9,0x19,0x38,0x8D,0x84 ))// 3F569F96-367E-595C-9732-2FB919388D84 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition: WindowsFoundation.IID { + .init(Data1: 0xE1FA6B8A, Data2: 0xADD3, Data3: 0x5299, Data4: ( 0xA0,0x00,0x12,0x1D,0x6D,0xBA,0xCC,0x80 ))// E1FA6B8A-ADD3-5299-A000-121D6DBACC80 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0x538B2114, Data2: 0x415C, Data3: 0x5F99, Data4: ( 0xB7,0x4D,0xA8,0x59,0x66,0xDA,0xCC,0x54 ))// 538B2114-415C-5F99-B74D-A85966DACC54 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEase: WindowsFoundation.IID { + .init(Data1: 0x372DFAD0, Data2: 0x5177, Data3: 0x5DF9, Data4: ( 0x8E,0x1E,0x92,0x09,0x62,0x46,0x87,0x14 ))// 372DFAD0-5177-5DF9-8E1E-920962468714 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEaseStatics: WindowsFoundation.IID { + .init(Data1: 0x8EB72EDB, Data2: 0x3E7E, Data3: 0x5D40, Data4: ( 0x92,0x8B,0x45,0x05,0xD5,0x7C,0x21,0xCE ))// 8EB72EDB-3E7E-5D40-928B-4505D57C21CE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuadraticEase: WindowsFoundation.IID { + .init(Data1: 0xDB85FDA1, Data2: 0x03B7, Data3: 0x57CD, Data4: ( 0xA1,0xEF,0x88,0x55,0xCB,0xF6,0x21,0x91 ))// DB85FDA1-03B7-57CD-A1EF-8855CBF62191 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuarticEase: WindowsFoundation.IID { + .init(Data1: 0x48215273, Data2: 0x05F1, Data3: 0x58AA, Data4: ( 0xBA,0xDE,0x0B,0x71,0xD7,0xBD,0x04,0x84 ))// 48215273-05F1-58AA-BADE-0B71D7BD0484 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuinticEase: WindowsFoundation.IID { + .init(Data1: 0xDC2F05D5, Data2: 0xA3AC, Data3: 0x5DCE, Data4: ( 0x9B,0x85,0x75,0x3A,0x0C,0x80,0x0F,0xC2 ))// DC2F05D5-A3AC-5DCE-9B85-753A0C800FC2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIReorderThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x0D5A0874, Data2: 0x1DF5, Data3: 0x5379, Data4: ( 0xB6,0x26,0x74,0x72,0x17,0x59,0x43,0x8A ))// 0D5A0874-1DF5-5379-B626-74721759438A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelper: WindowsFoundation.IID { + .init(Data1: 0x4643F139, Data2: 0xFFEF, Data3: 0x5C6A, Data4: ( 0x8D,0xE6,0x14,0x2B,0x41,0xCD,0x51,0xA5 ))// 4643F139-FFEF-5C6A-8DE6-142B41CD51A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics: WindowsFoundation.IID { + .init(Data1: 0xC66D4425, Data2: 0x6461, Data3: 0x5189, Data4: ( 0xB1,0x7D,0xCC,0xA0,0xCC,0xA3,0x4C,0xA0 ))// C66D4425-6461-5189-B17D-CCA0CCA34CA0 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x36F7E025, Data2: 0x23C1, Data3: 0x53DE, Data4: ( 0x8D,0xF9,0x7D,0xC1,0xE9,0xC7,0x88,0xFD ))// 36F7E025-23C1-53DE-8DF9-7DC1E9C788FD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xC04118DE, Data2: 0xAFF5, Data3: 0x5FA9, Data4: ( 0xAE,0xE7,0x94,0xA6,0x21,0xC8,0x26,0x18 ))// C04118DE-AFF5-5FA9-AEE7-94A621C82618 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransition: WindowsFoundation.IID { + .init(Data1: 0x7728E3F0, Data2: 0x24B1, Data3: 0x5484, Data4: ( 0x82,0x4A,0xC0,0xB4,0x1C,0x27,0x45,0xD5 ))// 7728E3F0-24B1-5484-824A-C0B41C2745D5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransitionStatics: WindowsFoundation.IID { + .init(Data1: 0xC70A0F9A, Data2: 0x485E, Data3: 0x53BB, Data4: ( 0xAD,0x3C,0x8B,0x41,0xB6,0x78,0x8B,0xF9 ))// C70A0F9A-485E-53BB-AD3C-8B41B6788BF9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISineEase: WindowsFoundation.IID { + .init(Data1: 0x6115539B, Data2: 0x663D, Data3: 0x5131, Data4: ( 0xB7,0xC2,0x74,0xBB,0x5F,0xDC,0x6A,0x1D ))// 6115539B-663D-5131-B7C2-74BB5FDC6A1D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0x53EADE0E, Data2: 0x6B01, Data3: 0x511F, Data4: ( 0xA5,0x63,0x6F,0x57,0x24,0xA6,0xC1,0xC1 ))// 53EADE0E-6B01-511F-A563-6F5724A6C1C1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfoStatics: WindowsFoundation.IID { + .init(Data1: 0x90BA0C6C, Data2: 0xCD45, Data3: 0x5A6C, Data4: ( 0xBB,0xB2,0x88,0x03,0x7D,0x43,0xCD,0x79 ))// 90BA0C6C-CD45-5A6C-BBB2-88037D43CD79 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x60C5905F, Data2: 0x4343, Data3: 0x504D, Data4: ( 0xA2,0xC6,0x64,0xB8,0xD9,0x24,0xB4,0x38 ))// 60C5905F-4343-504D-A2C6-64B8D924B438 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0xD89C7062, Data2: 0x753D, Data3: 0x5652, Data4: ( 0xB2,0x15,0xC1,0x95,0xAE,0x2C,0x7A,0x18 ))// D89C7062-753D-5652-B215-C195AE2C7A18 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xAEA80957, Data2: 0xBB56, Data3: 0x59B6, Data4: ( 0xBB,0x7A,0x62,0x95,0xF9,0x4B,0xC9,0x61 ))// AEA80957-BB56-59B6-BB7A-6295F94BC961 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0xCA88552E, Data2: 0x7237, Data3: 0x51F8, Data4: ( 0xA8,0xCA,0x79,0x95,0x2C,0x77,0x88,0x3A ))// CA88552E-7237-51F8-A8CA-79952C77883A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x2B7EB049, Data2: 0x708C, Data3: 0x5220, Data4: ( 0xA1,0x78,0xA2,0x5D,0xBC,0x14,0xFF,0xBE ))// 2B7EB049-708C-5220-A178-A25DBC14FFBE +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrameStatics: WindowsFoundation.IID { + .init(Data1: 0x1E100E36, Data2: 0xBED1, Data3: 0x5060, Data4: ( 0x8D,0xCF,0x0D,0x5B,0x32,0x57,0x5E,0xD1 ))// 1E100E36-BED1-5060-8DCF-0D5B32575ED1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0xB0DD1490, Data2: 0xF646, Data3: 0x5C18, Data4: ( 0xB3,0xEF,0x02,0xF9,0xB1,0x7F,0x57,0xDF ))// B0DD1490-F646-5C18-B3EF-02F9B17F57DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x32345CDD, Data2: 0x2A3C, Data3: 0x5571, Data4: ( 0xB2,0xEB,0x2F,0xCA,0xBC,0x2E,0x92,0xC6 ))// 32345CDD-2A3C-5571-B2EB-2FCABC2E92C6 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x79FDFACA, Data2: 0x4245, Data3: 0x53F0, Data4: ( 0xB5,0xC7,0xDA,0x1C,0xE2,0xB0,0xB8,0x51 ))// 79FDFACA-4245-53F0-B5C7-DA1CE2B0B851 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xE5A73B84, Data2: 0xA4AE, Data3: 0x5C38, Data4: ( 0x84,0xDA,0xF7,0xED,0x30,0xFC,0x9B,0x6E ))// E5A73B84-A4AE-5C38-84DA-F7ED30FC9B6E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard: WindowsFoundation.IID { + .init(Data1: 0x04D41BB3, Data2: 0x8721, Data3: 0x519E, Data4: ( 0x8E,0x53,0xFB,0x8B,0x34,0x92,0x03,0x05 ))// 04D41BB3-8721-519E-8E53-FB8B34920305 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics: WindowsFoundation.IID { + .init(Data1: 0xDD18519B, Data2: 0xD4E4, Data3: 0x597D, Data4: ( 0xA0,0xB7,0x65,0x5E,0xBD,0xD3,0x5E,0xFA ))// DD18519B-D4E4-597D-A0B7-655EBDD35EFA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISuppressNavigationTransitionInfo: WindowsFoundation.IID { + .init(Data1: 0x3ECD2BD1, Data2: 0x9805, Data3: 0x5F51, Data4: ( 0xBB,0x9E,0x05,0x1F,0xEA,0x8D,0xC3,0x55 ))// 3ECD2BD1-9805-5F51-BB9E-051FEA8DC355 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0xF095D058, Data2: 0xBC9E, Data3: 0x58EE, Data4: ( 0x88,0x77,0xE0,0x84,0x72,0x3B,0x43,0x33 ))// F095D058-BC9E-58EE-8877-E084723B4333 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0x18A7A588, Data2: 0xB9A2, Data3: 0x573B, Data4: ( 0x8E,0x2B,0x38,0x04,0x8C,0x46,0x35,0xA7 ))// 18A7A588-B9A2-573B-8E2B-38048C4635A7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation: WindowsFoundation.IID { + .init(Data1: 0x09DE03D7, Data2: 0x4B8A, Data3: 0x55E1, Data4: ( 0xAF,0xAD,0x5F,0x60,0x59,0x87,0x33,0xEA ))// 09DE03D7-4B8A-55E1-AFAD-5F60598733EA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimationStatics: WindowsFoundation.IID { + .init(Data1: 0xF3308304, Data2: 0x4F09, Data3: 0x54D7, Data4: ( 0xA4,0xD5,0xCA,0x55,0x8B,0xBF,0xE2,0x6F ))// F3308304-4F09-54D7-A4D5-CA558BBFE26F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline: WindowsFoundation.IID { + .init(Data1: 0xD0F9B330, Data2: 0xCC2A, Data3: 0x5B05, Data4: ( 0x97,0x86,0x2D,0xA4,0xC6,0x58,0x45,0x81 ))// D0F9B330-CC2A-5B05-9786-2DA4C6584581 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineFactory: WindowsFoundation.IID { + .init(Data1: 0x6A635732, Data2: 0xA827, Data3: 0x5398, Data4: ( 0x9F,0xC8,0xDF,0xBC,0x3B,0x97,0xE3,0xC1 ))// 6A635732-A827-5398-9FC8-DFBC3B97E3C1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics: WindowsFoundation.IID { + .init(Data1: 0x778B8471, Data2: 0xC831, Data3: 0x503A, Data4: ( 0x87,0x48,0xFE,0x6B,0xBC,0x71,0x53,0xB7 ))// 778B8471-C831-503A-8748-FE6BBC7153B7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransition: WindowsFoundation.IID { + .init(Data1: 0xE5B71956, Data2: 0x8E44, Data3: 0x5A38, Data4: ( 0xB4,0x1E,0x27,0x4D,0x70,0x61,0x02,0xBF ))// E5B71956-8E44-5A38-B41E-274D706102BF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransitionFactory: WindowsFoundation.IID { + .init(Data1: 0xB7023E3B, Data2: 0xBCD3, Data3: 0x50EC, Data4: ( 0xAA,0xCF,0x8C,0xFC,0xEC,0xE2,0x5F,0x17 ))// B7023E3B-BCD3-50EC-AACF-8CFCECE25F17 +} + +public enum __ABI_Microsoft_UI_Xaml_Media_Animation { + public class IAddDeleteThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIAddDeleteThemeTransition } + + } + + public class IBackEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEase } + + internal func get_AmplitudeImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Amplitude(pThis, &value)) + } + return value + } + + internal func put_AmplitudeImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Amplitude(pThis, value)) + } + } + + } + + public class IBackEaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEaseStatics } + + internal func get_AmplitudePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AmplitudeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBasicConnectedAnimationConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfiguration } + + } + + public class IBasicConnectedAnimationConfigurationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfigurationFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBasicConnectedAnimationConfiguration { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfigurationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBasicConnectedAnimationConfiguration(value!) + } + + } + + public class IBeginStoryboard: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboard } + + internal func get_StoryboardImpl() throws -> WinUI.Storyboard? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Storyboard(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_StoryboardImpl(_ value: WinUI.Storyboard?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Storyboard(pThis, RawPointer(value))) + } + } + + } + + public class IBeginStoryboardStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboardStatics } + + internal func get_StoryboardPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StoryboardProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBounceEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase } + + internal func get_BouncesImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounces(pThis, &value)) + } + return value + } + + internal func put_BouncesImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Bounces(pThis, value)) + } + } + + internal func get_BouncinessImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bounciness(pThis, &value)) + } + return value + } + + internal func put_BouncinessImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Bounciness(pThis, value)) + } + } + + } + + public class IBounceEaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEaseStatics } + + internal func get_BouncesPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BouncesProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BouncinessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BouncinessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICircleEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICircleEase } + + } + + public class IColorAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation } + + internal func get_FromImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_From(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_FromImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_From(pThis, _value)) + } + } + + internal func get_ToImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_To(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ToImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_To(pThis, _value)) + } + } + + internal func get_ByImpl() throws -> UWP.Color? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_By(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper.unwrapFrom(abi: value) + } + + internal func put_ByImpl(_ value: UWP.Color?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CUI__CColorWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_By(pThis, _value)) + } + } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IColorAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics } + + internal func get_FromPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ByPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ByProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IColorAnimationUsingKeyFrames: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames } + + internal func get_KeyFramesImpl() throws -> WinUI.ColorKeyFrameCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyFrames(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IColorAnimationUsingKeyFramesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFramesStatics } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFramesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame } + + internal func get_ValueImpl() throws -> UWP.Color { + var value: __x_ABI_CWindows_CUI_CColor = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ValueImpl(_ value: UWP.Color) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, .from(swift: value))) + } + } + + internal func get_KeyTimeImpl() throws -> WinUI.KeyTime { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_KeyTimeImpl(_ value: WinUI.KeyTime) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTime(pThis, .from(swift: value))) + } + } + + } + + public class IColorKeyFrameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IColorKeyFrame { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IColorKeyFrame(value!) + } + + } + + public class IColorKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameStatics } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTimePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTimeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ICommonNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo } + + internal func get_IsStaggeringEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStaggeringEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStaggeringEnabled(pThis, .init(from: value))) + } + } + + } + + public class ICommonNavigationTransitionInfoStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics } + + internal func get_IsStaggeringEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsStaggerElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggerElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsStaggerElementImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsStaggerElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsStaggerElementImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsStaggerElement(pThis, RawPointer(element), .init(from: value))) + } + } + + } + + public class IConnectedAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation } + + internal func get_IsScaleAnimationEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsScaleAnimationEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsScaleAnimationEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsScaleAnimationEnabled(pThis, .init(from: value))) + } + } + + internal func get_ConfigurationImpl() throws -> WinUI.ConnectedAnimationConfiguration? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Configuration(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ConfigurationImpl(_ value: WinUI.ConnectedAnimationConfiguration?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Configuration(pThis, RawPointer(value))) + } + } + + internal func add_CompletedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.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_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Completed(pThis, token)) + } + } + + internal func TryStartImpl(_ destination: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryStart(pThis, RawPointer(destination), &result)) + } + return .init(from: result) + } + + internal func TryStartWithCoordinatedElementsImpl(_ destination: WinUI.UIElement?, _ coordinatedElements: WindowsFoundation.AnyIIterable?) throws -> Bool { + var result: boolean = 0 + let coordinatedElementsWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper(coordinatedElements) + let _coordinatedElements = try! coordinatedElementsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.TryStartWithCoordinatedElements(pThis, RawPointer(destination), _coordinatedElements, &result)) + } + return .init(from: result) + } + + internal func CancelImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Cancel(pThis)) + } + } + + internal func SetAnimationComponentImpl(_ component: WinUI.ConnectedAnimationComponent, _ animation: WinAppSDK.AnyICompositionAnimationBase?) throws { + let animationWrapper = __ABI_Microsoft_UI_Composition.ICompositionAnimationBaseWrapper(animation) + let _animation = try! animationWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAnimationComponent(pThis, component, _animation)) + } + } + + } + + public class IConnectedAnimationConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfiguration } + + } + + public class IConnectedAnimationConfigurationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfigurationFactory } + + } + + public class IConnectedAnimationService: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService } + + internal func get_DefaultDurationImpl() throws -> WindowsFoundation.TimeSpan { + var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultDuration(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DefaultDurationImpl(_ value: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultDuration(pThis, .from(swift: value))) + } + } + + internal func get_DefaultEasingFunctionImpl() throws -> WinAppSDK.CompositionEasingFunction? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultEasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DefaultEasingFunctionImpl(_ value: WinAppSDK.CompositionEasingFunction?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultEasingFunction(pThis, RawPointer(value))) + } + } + + internal func PrepareToAnimateImpl(_ key: String, _ source: WinUI.UIElement?) throws -> WinUI.ConnectedAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.PrepareToAnimate(pThis, _key.get(), RawPointer(source), &resultAbi)) + } + } + return .from(abi: result) + } + + internal func GetAnimationImpl(_ key: String) throws -> WinUI.ConnectedAnimation? { + let (result) = try ComPtrs.initialize { resultAbi in + let _key = try! HString(key) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAnimation(pThis, _key.get(), &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IConnectedAnimationServiceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationServiceStatics } + + internal func GetForCurrentViewImpl() throws -> WinUI.ConnectedAnimationService? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationServiceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetForCurrentView(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IContentThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition } + + internal func get_HorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_HorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_HorizontalOffset(pThis, value)) + } + } + + internal func get_VerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffset(pThis, &value)) + } + return value + } + + internal func put_VerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_VerticalOffset(pThis, value)) + } + } + + } + + public class IContentThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransitionStatics } + + internal func get_HorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_HorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_VerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_VerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IContinuumNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo } + + internal func get_ExitElementImpl() throws -> WinUI.UIElement? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitElement(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ExitElementImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitElement(pThis, RawPointer(value))) + } + } + + } + + public class IContinuumNavigationTransitionInfoStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics } + + internal func get_ExitElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsEntranceElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsEntranceElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsEntranceElementImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsEntranceElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsEntranceElementImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsEntranceElement(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_IsExitElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsExitElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsExitElementImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsExitElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsExitElementImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsExitElement(pThis, RawPointer(element), .init(from: value))) + } + } + + internal func get_ExitElementContainerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitElementContainerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetExitElementContainerImpl(_ element: WinUI.ListViewBase?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetExitElementContainer(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetExitElementContainerImpl(_ element: WinUI.ListViewBase?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetExitElementContainer(pThis, RawPointer(element), .init(from: value))) + } + } + + } + + public class ICubicEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICubicEase } + + } + + public class IDirectConnectedAnimationConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfiguration } + + } + + public class IDirectConnectedAnimationConfigurationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfigurationFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDirectConnectedAnimationConfiguration { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfigurationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDirectConnectedAnimationConfiguration(value!) + } + + } + + public class IDiscreteColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteColorKeyFrame } + + } + + public class IDiscreteDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteDoubleKeyFrame } + + } + + public class IDiscreteObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteObjectKeyFrame } + + } + + public class IDiscretePointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscretePointKeyFrame } + + } + + public class IDoubleAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation } + + internal func get_FromImpl() throws -> Double? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_From(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value) + } + + internal func put_FromImpl(_ value: Double?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_From(pThis, _value)) + } + } + + internal func get_ToImpl() throws -> Double? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_To(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value) + } + + internal func put_ToImpl(_ value: Double?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_To(pThis, _value)) + } + } + + internal func get_ByImpl() throws -> Double? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_By(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value) + } + + internal func put_ByImpl(_ value: Double?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1_doubleWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_By(pThis, _value)) + } + } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IDoubleAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics } + + internal func get_FromPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ByPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ByProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDoubleAnimationUsingKeyFrames: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames } + + internal func get_KeyFramesImpl() throws -> WinUI.DoubleKeyFrameCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyFrames(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IDoubleAnimationUsingKeyFramesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFramesStatics } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFramesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame } + + internal func get_ValueImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) + } + return value + } + + internal func put_ValueImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, value)) + } + } + + internal func get_KeyTimeImpl() throws -> WinUI.KeyTime { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_KeyTimeImpl(_ value: WinUI.KeyTime) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTime(pThis, .from(swift: value))) + } + } + + } + + public class IDoubleKeyFrameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IDoubleKeyFrame { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IDoubleKeyFrame(value!) + } + + } + + public class IDoubleKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameStatics } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTimePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTimeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDragItemThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IDragItemThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDragOverThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + internal func get_ToOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToOffset(pThis, &value)) + } + return value + } + + internal func put_ToOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ToOffset(pThis, value)) + } + } + + internal func get_DirectionImpl() throws -> WinUI.AnimationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Direction(pThis, &value)) + } + return value + } + + internal func put_DirectionImpl(_ value: WinUI.AnimationDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Direction(pThis, value)) + } + } + + } + + public class IDragOverThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DirectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DirectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDrillInNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInNavigationTransitionInfo } + + } + + public class IDrillInThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation } + + internal func get_EntranceTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EntranceTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EntranceTargetName(pThis, _value.get())) + } + } + + internal func get_EntranceTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EntranceTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EntranceTarget(pThis, RawPointer(value))) + } + } + + internal func get_ExitTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExitTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitTargetName(pThis, _value.get())) + } + } + + internal func get_ExitTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ExitTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitTarget(pThis, RawPointer(value))) + } + } + + } + + public class IDrillInThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics } + + internal func get_EntranceTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EntranceTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDrillOutThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation } + + internal func get_EntranceTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EntranceTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EntranceTargetName(pThis, _value.get())) + } + } + + internal func get_EntranceTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EntranceTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EntranceTarget(pThis, RawPointer(value))) + } + } + + internal func get_ExitTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ExitTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitTargetName(pThis, _value.get())) + } + } + + internal func get_ExitTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ExitTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ExitTarget(pThis, RawPointer(value))) + } + } + + } + + public class IDrillOutThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics } + + internal func get_EntranceTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EntranceTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EntranceTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ExitTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExitTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDropTargetItemThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IDropTargetItemThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEasingColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + } + + public class IEasingColorKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrameStatics } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEasingDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + } + + public class IEasingDoubleKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrameStatics } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEasingFunctionBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase } + + internal func get_EasingModeImpl() throws -> WinUI.EasingMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CEasingMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingMode(pThis, &value)) + } + return value + } + + internal func put_EasingModeImpl(_ value: WinUI.EasingMode) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingMode(pThis, value)) + } + } + + internal func EaseImpl(_ normalizedTime: Double) throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Ease(pThis, normalizedTime, &result)) + } + return result + } + + } + + public class IEasingFunctionBaseFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBaseFactory } + + } + + public class IEasingFunctionBaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBaseStatics } + + internal func get_EasingModePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingModeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEasingPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + } + + public class IEasingPointKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrameStatics } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEdgeUIThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition } + + internal func get_EdgeImpl() throws -> WinUI.EdgeTransitionLocation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Edge(pThis, &value)) + } + return value + } + + internal func put_EdgeImpl(_ value: WinUI.EdgeTransitionLocation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Edge(pThis, value)) + } + } + + } + + public class IEdgeUIThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransitionStatics } + + internal func get_EdgePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EdgeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IElasticEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase } + + internal func get_OscillationsImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Oscillations(pThis, &value)) + } + return value + } + + internal func put_OscillationsImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Oscillations(pThis, value)) + } + } + + internal func get_SpringinessImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Springiness(pThis, &value)) + } + return value + } + + internal func put_SpringinessImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Springiness(pThis, value)) + } + } + + } + + public class IElasticEaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEaseStatics } + + internal func get_OscillationsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OscillationsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SpringinessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpringinessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IEntranceNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfo } + + } + + public class IEntranceNavigationTransitionInfoStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfoStatics } + + internal func get_IsTargetElementPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsTargetElementProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetIsTargetElementImpl(_ element: WinUI.UIElement?) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetIsTargetElement(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetIsTargetElementImpl(_ element: WinUI.UIElement?, _ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetIsTargetElement(pThis, RawPointer(element), .init(from: value))) + } + } + + } + + public class IEntranceThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_FromHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromHorizontalOffset(pThis, value)) + } + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_FromVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromVerticalOffset(pThis, value)) + } + } + + internal func get_IsStaggeringEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStaggeringEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStaggeringEnabled(pThis, .init(from: value))) + } + } + + } + + public class IEntranceThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransitionStatics } + + internal func get_FromHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsStaggeringEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IExponentialEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEase } + + internal func get_ExponentImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exponent(pThis, &value)) + } + return value + } + + internal func put_ExponentImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Exponent(pThis, value)) + } + } + + } + + public class IExponentialEaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEaseStatics } + + internal func get_ExponentPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ExponentProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFadeInThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IFadeInThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IFadeOutThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IFadeOutThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IGravityConnectedAnimationConfiguration: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration } + + internal func get_IsShadowEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsShadowEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsShadowEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsShadowEnabled(pThis, .init(from: value))) + } + } + + } + + public class IGravityConnectedAnimationConfigurationFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfigurationFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IGravityConnectedAnimationConfiguration { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfigurationFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IGravityConnectedAnimationConfiguration(value!) + } + + } + + public class IKeySpline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline } + + internal func get_ControlPoint1Impl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ControlPoint1(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ControlPoint1Impl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ControlPoint1(pThis, .from(swift: value))) + } + } + + internal func get_ControlPoint2Impl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ControlPoint2(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ControlPoint2Impl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ControlPoint2(pThis, .from(swift: value))) + } + } + + } + + public class IKeyTimeHelper: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelper } + + } + + public class IKeyTimeHelperStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelperStatics } + + internal func FromTimeSpanImpl(_ timeSpan: WindowsFoundation.TimeSpan) throws -> WinUI.KeyTime { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FromTimeSpan(pThis, .from(swift: timeSpan), &result)) + } + return .from(abi: result) + } + + } + + public class ILinearColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearColorKeyFrame } + + } + + public class ILinearDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearDoubleKeyFrame } + + } + + public class ILinearPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearPointKeyFrame } + + } + + public class INavigationThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransition } + + internal func get_DefaultNavigationTransitionInfoImpl() throws -> WinUI.NavigationTransitionInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultNavigationTransitionInfo(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DefaultNavigationTransitionInfoImpl(_ value: WinUI.NavigationTransitionInfo?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DefaultNavigationTransitionInfo(pThis, RawPointer(value))) + } + } + + } + + public class INavigationThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransitionStatics } + + internal func get_DefaultNavigationTransitionInfoPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DefaultNavigationTransitionInfoProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class INavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfo } + + } + + public class INavigationTransitionInfoFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> INavigationTransitionInfo { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return INavigationTransitionInfo(value!) + } + + } + + public class INavigationTransitionInfoOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides } + + internal func GetNavigationStateCoreImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetNavigationStateCore(pThis, &result)) + } + return .init(from: result) + } + + internal func SetNavigationStateCoreImpl(_ navigationState: String) throws { + let _navigationState = try! HString(navigationState) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetNavigationStateCore(pThis, _navigationState.get())) + } + } + + } + + public class IObjectAnimationUsingKeyFrames: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames } + + internal func get_KeyFramesImpl() throws -> WinUI.ObjectKeyFrameCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyFrames(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IObjectAnimationUsingKeyFramesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFramesStatics } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFramesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame } + + internal func get_ValueImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func put_ValueImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, _value)) + } + } + + internal func get_KeyTimeImpl() throws -> WinUI.KeyTime { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_KeyTimeImpl(_ value: WinUI.KeyTime) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTime(pThis, .from(swift: value))) + } + } + + } + + public class IObjectKeyFrameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IObjectKeyFrame { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IObjectKeyFrame(value!) + } + + } + + public class IObjectKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameStatics } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTimePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTimeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPaneThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransition } + + internal func get_EdgeImpl() throws -> WinUI.EdgeTransitionLocation { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CEdgeTransitionLocation = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Edge(pThis, &value)) + } + return value + } + + internal func put_EdgeImpl(_ value: WinUI.EdgeTransitionLocation) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Edge(pThis, value)) + } + } + + } + + public class IPaneThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransitionStatics } + + internal func get_EdgePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EdgeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPointAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation } + + internal func get_FromImpl() throws -> WindowsFoundation.Point? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_From(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: value) + } + + internal func put_FromImpl(_ value: WindowsFoundation.Point?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_From(pThis, _value)) + } + } + + internal func get_ToImpl() throws -> WindowsFoundation.Point? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_To(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: value) + } + + internal func put_ToImpl(_ value: WindowsFoundation.Point?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_To(pThis, _value)) + } + } + + internal func get_ByImpl() throws -> WindowsFoundation.Point? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_By(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: value) + } + + internal func put_ByImpl(_ value: WindowsFoundation.Point?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_By(pThis, _value)) + } + } + + internal func get_EasingFunctionImpl() throws -> WinUI.EasingFunctionBase? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunction(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_EasingFunctionImpl(_ value: WinUI.EasingFunctionBase?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EasingFunction(pThis, RawPointer(value))) + } + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IPointAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics } + + internal func get_FromPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ByPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ByProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EasingFunctionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EasingFunctionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPointAnimationUsingKeyFrames: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames } + + internal func get_KeyFramesImpl() throws -> WinUI.PointKeyFrameCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyFrames(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_EnableDependentAnimationImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimation(pThis, &value)) + } + return .init(from: value) + } + + internal func put_EnableDependentAnimationImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_EnableDependentAnimation(pThis, .init(from: value))) + } + } + + } + + public class IPointAnimationUsingKeyFramesStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFramesStatics } + + internal func get_EnableDependentAnimationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFramesStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EnableDependentAnimationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame } + + internal func get_ValueImpl() throws -> WindowsFoundation.Point { + var value: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_ValueImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Value(pThis, .from(swift: value))) + } + } + + internal func get_KeyTimeImpl() throws -> WinUI.KeyTime { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTime(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_KeyTimeImpl(_ value: WinUI.KeyTime) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeyTime(pThis, .from(swift: value))) + } + } + + } + + public class IPointKeyFrameFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPointKeyFrame { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPointKeyFrame(value!) + } + + } + + public class IPointKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameStatics } + + internal func get_ValuePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ValueProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_KeyTimePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeyTimeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPointerDownThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IPointerDownThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPointerUpThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IPointerUpThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPopInThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_FromHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromHorizontalOffset(pThis, value)) + } + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_FromVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromVerticalOffset(pThis, value)) + } + } + + } + + public class IPopInThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPopOutThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + } + + public class IPopOutThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPopupThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_FromHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromHorizontalOffset(pThis, value)) + } + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_FromVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromVerticalOffset(pThis, value)) + } + } + + } + + public class IPopupThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransitionStatics } + + internal func get_FromHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPowerEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEase } + + internal func get_PowerImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Power(pThis, &value)) + } + return value + } + + internal func put_PowerImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Power(pThis, value)) + } + } + + } + + public class IPowerEaseStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEaseStatics } + + internal func get_PowerPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEaseStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PowerProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IQuadraticEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuadraticEase } + + } + + public class IQuarticEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuarticEase } + + } + + public class IQuinticEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuinticEase } + + } + + public class IReorderThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIReorderThemeTransition } + + } + + public class IRepeatBehaviorHelper: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelper } + + } + + public class IRepeatBehaviorHelperStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics } + + internal func get_ForeverImpl() throws -> WinUI.RepeatBehavior { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Forever(pThis, &value)) + } + return .from(abi: value) + } + + internal func FromCountImpl(_ count: Double) throws -> WinUI.RepeatBehavior { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FromCount(pThis, count, &result)) + } + return .from(abi: result) + } + + internal func FromDurationImpl(_ duration: WindowsFoundation.TimeSpan) throws -> WinUI.RepeatBehavior { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.FromDuration(pThis, .from(swift: duration), &result)) + } + return .from(abi: result) + } + + internal func GetHasCountImpl(_ target: WinUI.RepeatBehavior) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHasCount(pThis, .from(swift: target), &result)) + } + return .init(from: result) + } + + internal func GetHasDurationImpl(_ target: WinUI.RepeatBehavior) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetHasDuration(pThis, .from(swift: target), &result)) + } + return .init(from: result) + } + + internal func EqualsImpl(_ target: WinUI.RepeatBehavior, _ value: WinUI.RepeatBehavior) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelperStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Equals(pThis, .from(swift: target), .from(swift: value), &result)) + } + return .init(from: result) + } + + } + + public class IRepositionThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_FromHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromHorizontalOffset(pThis, value)) + } + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_FromVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromVerticalOffset(pThis, value)) + } + } + + } + + public class IRepositionThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRepositionThemeTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransition } + + internal func get_IsStaggeringEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsStaggeringEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsStaggeringEnabled(pThis, .init(from: value))) + } + } + + } + + public class IRepositionThemeTransitionStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransitionStatics } + + internal func get_IsStaggeringEnabledPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransitionStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsStaggeringEnabledProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISineEase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISineEase } + + } + + public class ISlideNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo } + + internal func get_EffectImpl() throws -> WinUI.SlideNavigationTransitionEffect { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CSlideNavigationTransitionEffect = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Effect(pThis, &value)) + } + return value + } + + internal func put_EffectImpl(_ value: WinUI.SlideNavigationTransitionEffect) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Effect(pThis, value)) + } + } + + } + + public class ISlideNavigationTransitionInfoStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfoStatics } + + internal func get_EffectPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfoStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_EffectProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplineColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrame } + + internal func get_KeySplineImpl() throws -> WinUI.KeySpline? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySpline(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_KeySplineImpl(_ value: WinUI.KeySpline?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeySpline(pThis, RawPointer(value))) + } + } + + } + + public class ISplineColorKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrameStatics } + + internal func get_KeySplinePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySplineProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplineDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame } + + internal func get_KeySplineImpl() throws -> WinUI.KeySpline? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySpline(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_KeySplineImpl(_ value: WinUI.KeySpline?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeySpline(pThis, RawPointer(value))) + } + } + + } + + public class ISplineDoubleKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrameStatics } + + internal func get_KeySplinePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySplineProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplinePointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrame } + + internal func get_KeySplineImpl() throws -> WinUI.KeySpline? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySpline(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_KeySplineImpl(_ value: WinUI.KeySpline?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_KeySpline(pThis, RawPointer(value))) + } + } + + } + + public class ISplinePointKeyFrameStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrameStatics } + + internal func get_KeySplinePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrameStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_KeySplineProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplitCloseThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation } + + internal func get_OpenedTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_OpenedTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedTargetName(pThis, _value.get())) + } + } + + internal func get_OpenedTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OpenedTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedTarget(pThis, RawPointer(value))) + } + } + + internal func get_ClosedTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ClosedTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedTargetName(pThis, _value.get())) + } + } + + internal func get_ClosedTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ClosedTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedTarget(pThis, RawPointer(value))) + } + } + + internal func get_ContentTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ContentTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTargetName(pThis, _value.get())) + } + } + + internal func get_ContentTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTarget(pThis, RawPointer(value))) + } + } + + internal func get_OpenedLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedLength(pThis, &value)) + } + return value + } + + internal func put_OpenedLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedLength(pThis, value)) + } + } + + internal func get_ClosedLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedLength(pThis, &value)) + } + return value + } + + internal func put_ClosedLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedLength(pThis, value)) + } + } + + internal func get_OffsetFromCenterImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetFromCenter(pThis, &value)) + } + return value + } + + internal func put_OffsetFromCenterImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OffsetFromCenter(pThis, value)) + } + } + + internal func get_ContentTranslationDirectionImpl() throws -> WinUI.AnimationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationDirection(pThis, &value)) + } + return value + } + + internal func put_ContentTranslationDirectionImpl(_ value: WinUI.AnimationDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTranslationDirection(pThis, value)) + } + } + + internal func get_ContentTranslationOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationOffset(pThis, &value)) + } + return value + } + + internal func put_ContentTranslationOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTranslationOffset(pThis, value)) + } + } + + } + + public class ISplitCloseThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics } + + internal func get_OpenedTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpenedTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpenedLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OffsetFromCenterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetFromCenterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTranslationDirectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationDirectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTranslationOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISplitOpenThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation } + + internal func get_OpenedTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_OpenedTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedTargetName(pThis, _value.get())) + } + } + + internal func get_OpenedTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_OpenedTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedTarget(pThis, RawPointer(value))) + } + } + + internal func get_ClosedTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ClosedTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedTargetName(pThis, _value.get())) + } + } + + internal func get_ClosedTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ClosedTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedTarget(pThis, RawPointer(value))) + } + } + + internal func get_ContentTargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_ContentTargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTargetName(pThis, _value.get())) + } + } + + internal func get_ContentTargetImpl() throws -> WinUI.DependencyObject? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTarget(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_ContentTargetImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTarget(pThis, RawPointer(value))) + } + } + + internal func get_OpenedLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedLength(pThis, &value)) + } + return value + } + + internal func put_OpenedLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OpenedLength(pThis, value)) + } + } + + internal func get_ClosedLengthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedLength(pThis, &value)) + } + return value + } + + internal func put_ClosedLengthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ClosedLength(pThis, value)) + } + } + + internal func get_OffsetFromCenterImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetFromCenter(pThis, &value)) + } + return value + } + + internal func put_OffsetFromCenterImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_OffsetFromCenter(pThis, value)) + } + } + + internal func get_ContentTranslationDirectionImpl() throws -> WinUI.AnimationDirection { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CPrimitives_CAnimationDirection = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationDirection(pThis, &value)) + } + return value + } + + internal func put_ContentTranslationDirectionImpl(_ value: WinUI.AnimationDirection) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTranslationDirection(pThis, value)) + } + } + + internal func get_ContentTranslationOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationOffset(pThis, &value)) + } + return value + } + + internal func put_ContentTranslationOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ContentTranslationOffset(pThis, value)) + } + } + + } + + public class ISplitOpenThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics } + + internal func get_OpenedTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpenedTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTargetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTargetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OpenedLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OpenedLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ClosedLengthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ClosedLengthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_OffsetFromCenterPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_OffsetFromCenterProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTranslationDirectionPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationDirectionProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ContentTranslationOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ContentTranslationOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IStoryboard: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard } + + internal func get_ChildrenImpl() throws -> WinUI.TimelineCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Children(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func SeekImpl(_ offset: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Seek(pThis, .from(swift: offset))) + } + } + + internal func StopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Stop(pThis)) + } + } + + internal func BeginImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Begin(pThis)) + } + } + + internal func PauseImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Pause(pThis)) + } + } + + internal func ResumeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Resume(pThis)) + } + } + + internal func GetCurrentStateImpl() throws -> WinUI.ClockState { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CClockState = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrentState(pThis, &result)) + } + return result + } + + internal func GetCurrentTimeImpl() throws -> WindowsFoundation.TimeSpan { + var result: __x_ABI_CWindows_CFoundation_CTimeSpan = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetCurrentTime(pThis, &result)) + } + return .from(abi: result) + } + + internal func SeekAlignedToLastTickImpl(_ offset: WindowsFoundation.TimeSpan) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SeekAlignedToLastTick(pThis, .from(swift: offset))) + } + } + + internal func SkipToFillImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SkipToFill(pThis)) + } + } + + } + + public class IStoryboardStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics } + + internal func get_TargetPropertyPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetPropertyProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetTargetPropertyImpl(_ element: WinUI.Timeline?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetTargetProperty(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetTargetPropertyImpl(_ element: WinUI.Timeline?, _ path: String) throws { + let _path = try! HString(path) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTargetProperty(pThis, RawPointer(element), _path.get())) + } + } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetTargetNameImpl(_ element: WinUI.Timeline?) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetTargetName(pThis, RawPointer(element), &result)) + } + return .init(from: result) + } + + internal func SetTargetNameImpl(_ element: WinUI.Timeline?, _ name: String) throws { + let _name = try! HString(name) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTargetName(pThis, RawPointer(element), _name.get())) + } + } + + internal func SetTargetImpl(_ timeline: WinUI.Timeline?, _ target: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboardStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetTarget(pThis, RawPointer(timeline), RawPointer(target))) + } + } + + } + + public class ISuppressNavigationTransitionInfo: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISuppressNavigationTransitionInfo } + + } + + public class ISwipeBackThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + internal func get_FromHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_FromHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromHorizontalOffset(pThis, value)) + } + } + + internal func get_FromVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_FromVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FromVerticalOffset(pThis, value)) + } + } + + } + + public class ISwipeBackThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FromVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FromVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISwipeHintThemeAnimation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation } + + internal func get_TargetNameImpl() throws -> String { + var value: HSTRING? + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetName(pThis, &value)) + } + return .init(from: value) + } + + internal func put_TargetNameImpl(_ value: String) throws { + let _value = try! HString(value) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TargetName(pThis, _value.get())) + } + } + + internal func get_ToHorizontalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToHorizontalOffset(pThis, &value)) + } + return value + } + + internal func put_ToHorizontalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ToHorizontalOffset(pThis, value)) + } + } + + internal func get_ToVerticalOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToVerticalOffset(pThis, &value)) + } + return value + } + + internal func put_ToVerticalOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_ToVerticalOffset(pThis, value)) + } + } + + } + + public class ISwipeHintThemeAnimationStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimationStatics } + + internal func get_TargetNamePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TargetNameProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToHorizontalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToHorizontalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_ToVerticalOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimationStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_ToVerticalOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITimeline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline } + + internal func get_AutoReverseImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoReverse(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AutoReverseImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutoReverse(pThis, .init(from: value))) + } + } + + internal func get_BeginTimeImpl() throws -> WindowsFoundation.TimeSpan? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BeginTime(pThis, &valueAbi)) + } + } + return WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.unwrapFrom(abi: value) + } + + internal func put_BeginTimeImpl(_ value: WindowsFoundation.TimeSpan?) throws { + let valueWrapper = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_BeginTime(pThis, _value)) + } + } + + internal func get_DurationImpl() throws -> WinUI.Duration { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CDuration = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_DurationImpl(_ value: WinUI.Duration) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Duration(pThis, .from(swift: value))) + } + } + + internal func get_SpeedRatioImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpeedRatio(pThis, &value)) + } + return value + } + + internal func put_SpeedRatioImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_SpeedRatio(pThis, value)) + } + } + + internal func get_FillBehaviorImpl() throws -> WinUI.FillBehavior { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CFillBehavior = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillBehavior(pThis, &value)) + } + return value + } + + internal func put_FillBehaviorImpl(_ value: WinUI.FillBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_FillBehavior(pThis, value)) + } + } + + internal func get_RepeatBehaviorImpl() throws -> WinUI.RepeatBehavior { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RepeatBehavior(pThis, &value)) + } + return .from(abi: value) + } + + internal func put_RepeatBehaviorImpl(_ value: WinUI.RepeatBehavior) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RepeatBehavior(pThis, .from(swift: value))) + } + } + + internal func add_CompletedImpl(_ handler: EventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FIEventHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline.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_CXaml_CMedia_CAnimation_CITimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Completed(pThis, token)) + } + } + + } + + public class ITimelineFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITimeline { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITimeline(value!) + } + + } + + public class ITimelineStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics } + + internal func get_AllowDependentAnimationsImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AllowDependentAnimations(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AllowDependentAnimationsImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AllowDependentAnimations(pThis, .init(from: value))) + } + } + + internal func get_AutoReversePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoReverseProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_BeginTimePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_BeginTimeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DurationPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DurationProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SpeedRatioPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SpeedRatioProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_FillBehaviorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillBehaviorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RepeatBehaviorPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimelineStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RepeatBehaviorProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ITransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransition } + + } + + public class ITransitionFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransitionFactory } + + } + + internal typealias INavigationTransitionInfoOverridesWrapper = UnsealedWinRTClassWrapper + internal static var INavigationTransitionInfoOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverridesVtbl = .init( + QueryInterface: { INavigationTransitionInfoOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { INavigationTransitionInfoOverridesWrapper.addRef($0) }, + Release: { INavigationTransitionInfoOverridesWrapper.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_Xaml_Media_Animation.INavigationTransitionInfoOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = INavigationTransitionInfoOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + GetNavigationStateCore: { + do { + guard let __unwrapped__instance = INavigationTransitionInfoOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getNavigationStateCore() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + }, + + SetNavigationStateCore: { + do { + guard let __unwrapped__instance = INavigationTransitionInfoOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let navigationState: String = .init(from: $1) + try __unwrapped__instance.setNavigationStateCore(navigationState) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime { + public static func from(swift: WinUI.KeyTime) -> __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime { + .init(TimeSpan: .from(swift: swift.timeSpan)) + } + } + extension __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior { + public static func from(swift: WinUI.RepeatBehavior) -> __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior { + .init(Count: swift.count, Duration: .from(swift: swift.duration), Type: swift.type) + } + } + extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+Impl.swift new file mode 100644 index 0000000..21636b3 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation+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_Xaml_Media_Animation { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation.swift new file mode 100644 index 0000000..8344c35 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Animation.swift @@ -0,0 +1,5542 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.clockstate) +public typealias ClockState = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CClockState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationcomponent) +public typealias ConnectedAnimationComponent = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CConnectedAnimationComponent +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingmode) +public typealias EasingMode = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CEasingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fillbehavior) +public typealias FillBehavior = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CFillBehavior +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviortype) +public typealias RepeatBehaviorType = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehaviorType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.slidenavigationtransitioneffect) +public typealias SlideNavigationTransitionEffect = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CSlideNavigationTransitionEffect +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.adddeletethemetransition) +public final class AddDeleteThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IAddDeleteThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIAddDeleteThemeTransition + 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_CXaml_CMedia_CAnimation_CIAddDeleteThemeTransition>?) -> AddDeleteThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.AddDeleteThemeTransition"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.backease) +public final class BackEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IBackEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBackEase + 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_CXaml_CMedia_CAnimation_CIBackEase>?) -> BackEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.BackEase"))) + } + + private static let _IBackEaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IBackEaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.BackEase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.backease.amplitudeproperty) + public static var amplitudeProperty : WinUI.DependencyProperty! { + get { try! _IBackEaseStatics.get_AmplitudePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.backease.amplitude) + public var amplitude : Double { + get { try! _default.get_AmplitudeImpl() } + set { try! _default.put_AmplitudeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.basicconnectedanimationconfiguration) +open class BasicConnectedAnimationConfiguration : WinUI.ConnectedAnimationConfiguration { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IBasicConnectedAnimationConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfiguration + 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_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfiguration>?) -> BasicConnectedAnimationConfiguration? { + 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 _IBasicConnectedAnimationConfigurationFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IBasicConnectedAnimationConfigurationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.BasicConnectedAnimationConfiguration")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBasicConnectedAnimationConfigurationFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IBasicConnectedAnimationConfiguration : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BasicConnectedAnimationConfiguration + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBasicConnectedAnimationConfiguration + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IBasicConnectedAnimationConfiguration + } + } + internal typealias Composable = IBasicConnectedAnimationConfiguration + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.beginstoryboard) +public final class BeginStoryboard : WinUI.TriggerAction { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IBeginStoryboard + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBeginStoryboard + 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_CXaml_CMedia_CAnimation_CIBeginStoryboard>?) -> BeginStoryboard? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.BeginStoryboard"))) + } + + private static let _IBeginStoryboardStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IBeginStoryboardStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.BeginStoryboard")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.beginstoryboard.storyboardproperty) + public static var storyboardProperty : WinUI.DependencyProperty! { + get { try! _IBeginStoryboardStatics.get_StoryboardPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.beginstoryboard.storyboard) + public var storyboard : Storyboard! { + get { try! _default.get_StoryboardImpl() } + set { try! _default.put_StoryboardImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.bounceease) +public final class BounceEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IBounceEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIBounceEase + 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_CXaml_CMedia_CAnimation_CIBounceEase>?) -> BounceEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.BounceEase"))) + } + + private static let _IBounceEaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IBounceEaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.BounceEase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.bounceease.bouncesproperty) + public static var bouncesProperty : WinUI.DependencyProperty! { + get { try! _IBounceEaseStatics.get_BouncesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.bounceease.bouncinessproperty) + public static var bouncinessProperty : WinUI.DependencyProperty! { + get { try! _IBounceEaseStatics.get_BouncinessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.bounceease.bounces) + public var bounces : Int32 { + get { try! _default.get_BouncesImpl() } + set { try! _default.put_BouncesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.bounceease.bounciness) + public var bounciness : Double { + get { try! _default.get_BouncinessImpl() } + set { try! _default.put_BouncinessImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.circleease) +public final class CircleEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ICircleEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICircleEase + 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_CXaml_CMedia_CAnimation_CICircleEase>?) -> CircleEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.CircleEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation) +public final class ColorAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IColorAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimation + 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_CXaml_CMedia_CAnimation_CIColorAnimation>?) -> ColorAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ColorAnimation"))) + } + + private static let _IColorAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IColorAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ColorAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.byproperty) + public static var byProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationStatics.get_ByPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.fromproperty) + public static var fromProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationStatics.get_FromPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.toproperty) + public static var toProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationStatics.get_ToPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.by) + public var by : UWP.Color? { + get { try! _default.get_ByImpl() } + set { try! _default.put_ByImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.from) + public var from : UWP.Color? { + get { try! _default.get_FromImpl() } + set { try! _default.put_FromImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimation.to) + public var to : UWP.Color? { + get { try! _default.get_ToImpl() } + set { try! _default.put_ToImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimationusingkeyframes) +public final class ColorAnimationUsingKeyFrames : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IColorAnimationUsingKeyFrames + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames + 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_CXaml_CMedia_CAnimation_CIColorAnimationUsingKeyFrames>?) -> ColorAnimationUsingKeyFrames? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ColorAnimationUsingKeyFrames"))) + } + + private static let _IColorAnimationUsingKeyFramesStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IColorAnimationUsingKeyFramesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ColorAnimationUsingKeyFrames")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimationusingkeyframes.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IColorAnimationUsingKeyFramesStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimationusingkeyframes.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.coloranimationusingkeyframes.keyframes) + public var keyFrames : ColorKeyFrameCollection! { + get { try! _default.get_KeyFramesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframe) +open class ColorKeyFrame : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IColorKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame + 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_CXaml_CMedia_CAnimation_CIColorKeyFrame>?) -> ColorKeyFrame? { + 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 _IColorKeyFrameFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IColorKeyFrameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ColorKeyFrame")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IColorKeyFrameFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IColorKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IColorKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ColorKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframe.keytimeproperty) + public class var keyTimeProperty : WinUI.DependencyProperty! { + get { try! _IColorKeyFrameStatics.get_KeyTimePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframe.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IColorKeyFrameStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframe.keytime) + public var keyTime : KeyTime { + get { try! _default.get_KeyTimeImpl() } + set { try! _default.put_KeyTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframe.value) + public var value : UWP.Color { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + internal enum IColorKeyFrame : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ColorKeyFrame + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIColorKeyFrame + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IColorKeyFrame + } + } + internal typealias Composable = IColorKeyFrame + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection) +public final class ColorKeyFrameCollection : WinRTClass, IVector, IIterable { + public typealias T = ColorKeyFrame? + private typealias SwiftABI = WinUI.IVectorColorKeyFrame + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame + 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__CXaml__CMedia__CAnimation__CColorKeyFrame>?) -> ColorKeyFrameCollection? { + 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.Xaml.Media.Animation.ColorKeyFrameCollection"))) + } + + // 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.xaml.media.animation.colorkeyframecollection.getat) + public func getAt(_ index: UInt32) -> ColorKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.indexof) + public func indexOf(_ value: ColorKeyFrame?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.setat) + public func setAt(_ index: UInt32, _ value: ColorKeyFrame?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.insertat) + public func insertAt(_ index: UInt32, _ value: ColorKeyFrame?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.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.xaml.media.animation.colorkeyframecollection.append) + public func append(_ value: ColorKeyFrame?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableColorKeyFrame! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.colorkeyframecollection.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.xaml.media.animation.commonnavigationtransitioninfo) +public final class CommonNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ICommonNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo>?) -> CommonNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.CommonNavigationTransitionInfo"))) + } + + private static let _ICommonNavigationTransitionInfoStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ICommonNavigationTransitionInfoStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.CommonNavigationTransitionInfo")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.commonnavigationtransitioninfo.getisstaggerelement) + public static func getIsStaggerElement(_ element: WinUI.UIElement!) -> Bool { + return try! _ICommonNavigationTransitionInfoStatics.GetIsStaggerElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.commonnavigationtransitioninfo.setisstaggerelement) + public static func setIsStaggerElement(_ element: WinUI.UIElement!, _ value: Bool) { + try! _ICommonNavigationTransitionInfoStatics.SetIsStaggerElementImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.commonnavigationtransitioninfo.isstaggerelementproperty) + public static var isStaggerElementProperty : WinUI.DependencyProperty! { + get { try! _ICommonNavigationTransitionInfoStatics.get_IsStaggerElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.commonnavigationtransitioninfo.isstaggeringenabledproperty) + public static var isStaggeringEnabledProperty : WinUI.DependencyProperty! { + get { try! _ICommonNavigationTransitionInfoStatics.get_IsStaggeringEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.commonnavigationtransitioninfo.isstaggeringenabled) + public var isStaggeringEnabled : Bool { + get { try! _default.get_IsStaggeringEnabledImpl() } + set { try! _default.put_IsStaggeringEnabledImpl(newValue) } + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = CommonNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICommonNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ICommonNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation) +public final class ConnectedAnimation : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimation + 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_CXaml_CMedia_CAnimation_CIConnectedAnimation>?) -> ConnectedAnimation? { + 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.xaml.media.animation.connectedanimation.trystart) + public func tryStart(_ destination: WinUI.UIElement!) throws -> Bool { + try _default.TryStartImpl(destination) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.trystart) + public func tryStart(_ destination: WinUI.UIElement!, _ coordinatedElements: WindowsFoundation.AnyIIterable!) throws -> Bool { + try _default.TryStartWithCoordinatedElementsImpl(destination, coordinatedElements) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.cancel) + public func cancel() throws { + try _default.CancelImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.setanimationcomponent) + public func setAnimationComponent(_ component: ConnectedAnimationComponent, _ animation: WinAppSDK.AnyICompositionAnimationBase!) throws { + try _default.SetAnimationComponentImpl(component, animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.configuration) + public var configuration : ConnectedAnimationConfiguration! { + get { try! _default.get_ConfigurationImpl() } + set { try! _default.put_ConfigurationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.isscaleanimationenabled) + public var isScaleAnimationEnabled : Bool { + get { try! _default.get_IsScaleAnimationEnabledImpl() } + set { try! _default.put_IsScaleAnimationEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation.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.xaml.media.animation.connectedanimationconfiguration) +open class ConnectedAnimationConfiguration : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimationConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfiguration + 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_CXaml_CMedia_CAnimation_CIConnectedAnimationConfiguration>?) -> ConnectedAnimationConfiguration? { + 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 _IConnectedAnimationConfigurationFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimationConfigurationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ConnectedAnimationConfiguration")) + + internal enum IConnectedAnimationConfiguration : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ConnectedAnimationConfiguration + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationConfiguration + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimationConfiguration + } + } + internal typealias Composable = IConnectedAnimationConfiguration + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice) +public final class ConnectedAnimationService : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimationService + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIConnectedAnimationService + 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_CXaml_CMedia_CAnimation_CIConnectedAnimationService>?) -> ConnectedAnimationService? { + 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 _IConnectedAnimationServiceStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IConnectedAnimationServiceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ConnectedAnimationService")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice.getforcurrentview) + public static func getForCurrentView() -> ConnectedAnimationService! { + return try! _IConnectedAnimationServiceStatics.GetForCurrentViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice.preparetoanimate) + public func prepareToAnimate(_ key: String, _ source: WinUI.UIElement!) throws -> ConnectedAnimation! { + try _default.PrepareToAnimateImpl(key, source) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice.getanimation) + public func getAnimation(_ key: String) throws -> ConnectedAnimation! { + try _default.GetAnimationImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice.defaultduration) + public var defaultDuration : WindowsFoundation.TimeSpan { + get { try! _default.get_DefaultDurationImpl() } + set { try! _default.put_DefaultDurationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimationservice.defaulteasingfunction) + public var defaultEasingFunction : WinAppSDK.CompositionEasingFunction! { + get { try! _default.get_DefaultEasingFunctionImpl() } + set { try! _default.put_DefaultEasingFunctionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.contentthemetransition) +public final class ContentThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IContentThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContentThemeTransition + 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_CXaml_CMedia_CAnimation_CIContentThemeTransition>?) -> ContentThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ContentThemeTransition"))) + } + + private static let _IContentThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IContentThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ContentThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.contentthemetransition.horizontaloffsetproperty) + public static var horizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IContentThemeTransitionStatics.get_HorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.contentthemetransition.verticaloffsetproperty) + public static var verticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IContentThemeTransitionStatics.get_VerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.contentthemetransition.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + set { try! _default.put_HorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.contentthemetransition.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + set { try! _default.put_VerticalOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo) +public final class ContinuumNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IContinuumNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo>?) -> ContinuumNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ContinuumNavigationTransitionInfo"))) + } + + private static let _IContinuumNavigationTransitionInfoStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IContinuumNavigationTransitionInfoStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ContinuumNavigationTransitionInfo")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.getisentranceelement) + public static func getIsEntranceElement(_ element: WinUI.UIElement!) -> Bool { + return try! _IContinuumNavigationTransitionInfoStatics.GetIsEntranceElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.setisentranceelement) + public static func setIsEntranceElement(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IContinuumNavigationTransitionInfoStatics.SetIsEntranceElementImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.getisexitelement) + public static func getIsExitElement(_ element: WinUI.UIElement!) -> Bool { + return try! _IContinuumNavigationTransitionInfoStatics.GetIsExitElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.setisexitelement) + public static func setIsExitElement(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IContinuumNavigationTransitionInfoStatics.SetIsExitElementImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.getexitelementcontainer) + public static func getExitElementContainer(_ element: WinUI.ListViewBase!) -> Bool { + return try! _IContinuumNavigationTransitionInfoStatics.GetExitElementContainerImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.setexitelementcontainer) + public static func setExitElementContainer(_ element: WinUI.ListViewBase!, _ value: Bool) { + try! _IContinuumNavigationTransitionInfoStatics.SetExitElementContainerImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.exitelementcontainerproperty) + public static var exitElementContainerProperty : WinUI.DependencyProperty! { + get { try! _IContinuumNavigationTransitionInfoStatics.get_ExitElementContainerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.exitelementproperty) + public static var exitElementProperty : WinUI.DependencyProperty! { + get { try! _IContinuumNavigationTransitionInfoStatics.get_ExitElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.isentranceelementproperty) + public static var isEntranceElementProperty : WinUI.DependencyProperty! { + get { try! _IContinuumNavigationTransitionInfoStatics.get_IsEntranceElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.isexitelementproperty) + public static var isExitElementProperty : WinUI.DependencyProperty! { + get { try! _IContinuumNavigationTransitionInfoStatics.get_IsExitElementPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.continuumnavigationtransitioninfo.exitelement) + public var exitElement : WinUI.UIElement! { + get { try! _default.get_ExitElementImpl() } + set { try! _default.put_ExitElementImpl(newValue) } + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = ContinuumNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIContinuumNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IContinuumNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.cubicease) +public final class CubicEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ICubicEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CICubicEase + 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_CXaml_CMedia_CAnimation_CICubicEase>?) -> CubicEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.CubicEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.directconnectedanimationconfiguration) +open class DirectConnectedAnimationConfiguration : WinUI.ConnectedAnimationConfiguration { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDirectConnectedAnimationConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfiguration + 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_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfiguration>?) -> DirectConnectedAnimationConfiguration? { + 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 _IDirectConnectedAnimationConfigurationFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IDirectConnectedAnimationConfigurationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DirectConnectedAnimationConfiguration")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IDirectConnectedAnimationConfigurationFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IDirectConnectedAnimationConfiguration : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = DirectConnectedAnimationConfiguration + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDirectConnectedAnimationConfiguration + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDirectConnectedAnimationConfiguration + } + } + internal typealias Composable = IDirectConnectedAnimationConfiguration + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.discretecolorkeyframe) +public final class DiscreteColorKeyFrame : WinUI.ColorKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDiscreteColorKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteColorKeyFrame + 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_CXaml_CMedia_CAnimation_CIDiscreteColorKeyFrame>?) -> DiscreteColorKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DiscreteColorKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.discretedoublekeyframe) +public final class DiscreteDoubleKeyFrame : WinUI.DoubleKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDiscreteDoubleKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteDoubleKeyFrame + 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_CXaml_CMedia_CAnimation_CIDiscreteDoubleKeyFrame>?) -> DiscreteDoubleKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DiscreteDoubleKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.discreteobjectkeyframe) +public final class DiscreteObjectKeyFrame : WinUI.ObjectKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDiscreteObjectKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscreteObjectKeyFrame + 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_CXaml_CMedia_CAnimation_CIDiscreteObjectKeyFrame>?) -> DiscreteObjectKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DiscreteObjectKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.discretepointkeyframe) +public final class DiscretePointKeyFrame : WinUI.PointKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDiscretePointKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDiscretePointKeyFrame + 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_CXaml_CMedia_CAnimation_CIDiscretePointKeyFrame>?) -> DiscretePointKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DiscretePointKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation) +public final class DoubleAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimation + 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_CXaml_CMedia_CAnimation_CIDoubleAnimation>?) -> DoubleAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DoubleAnimation"))) + } + + private static let _IDoubleAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DoubleAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.byproperty) + public static var byProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationStatics.get_ByPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.fromproperty) + public static var fromProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationStatics.get_FromPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.toproperty) + public static var toProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationStatics.get_ToPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.by) + public var by : Double? { + get { try! _default.get_ByImpl() } + set { try! _default.put_ByImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.from) + public var from : Double? { + get { try! _default.get_FromImpl() } + set { try! _default.put_FromImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimation.to) + public var to : Double? { + get { try! _default.get_ToImpl() } + set { try! _default.put_ToImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimationusingkeyframes) +public final class DoubleAnimationUsingKeyFrames : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleAnimationUsingKeyFrames + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames + 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_CXaml_CMedia_CAnimation_CIDoubleAnimationUsingKeyFrames>?) -> DoubleAnimationUsingKeyFrames? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DoubleAnimationUsingKeyFrames"))) + } + + private static let _IDoubleAnimationUsingKeyFramesStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleAnimationUsingKeyFramesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DoubleAnimationUsingKeyFrames")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimationusingkeyframes.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IDoubleAnimationUsingKeyFramesStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimationusingkeyframes.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doubleanimationusingkeyframes.keyframes) + public var keyFrames : DoubleKeyFrameCollection! { + get { try! _default.get_KeyFramesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframe) +open class DoubleKeyFrame : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame + 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_CXaml_CMedia_CAnimation_CIDoubleKeyFrame>?) -> DoubleKeyFrame? { + 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 _IDoubleKeyFrameFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleKeyFrameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DoubleKeyFrame")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IDoubleKeyFrameFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IDoubleKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DoubleKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframe.keytimeproperty) + public class var keyTimeProperty : WinUI.DependencyProperty! { + get { try! _IDoubleKeyFrameStatics.get_KeyTimePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframe.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IDoubleKeyFrameStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframe.keytime) + public var keyTime : KeyTime { + get { try! _default.get_KeyTimeImpl() } + set { try! _default.put_KeyTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframe.value) + public var value : Double { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + internal enum IDoubleKeyFrame : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = DoubleKeyFrame + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDoubleKeyFrame + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDoubleKeyFrame + } + } + internal typealias Composable = IDoubleKeyFrame + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection) +public final class DoubleKeyFrameCollection : WinRTClass, IVector, IIterable { + public typealias T = DoubleKeyFrame? + private typealias SwiftABI = WinUI.IVectorDoubleKeyFrame + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame>?) -> DoubleKeyFrameCollection? { + 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.Xaml.Media.Animation.DoubleKeyFrameCollection"))) + } + + // 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.xaml.media.animation.doublekeyframecollection.getat) + public func getAt(_ index: UInt32) -> DoubleKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.indexof) + public func indexOf(_ value: DoubleKeyFrame?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.setat) + public func setAt(_ index: UInt32, _ value: DoubleKeyFrame?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.insertat) + public func insertAt(_ index: UInt32, _ value: DoubleKeyFrame?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.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.xaml.media.animation.doublekeyframecollection.append) + public func append(_ value: DoubleKeyFrame?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableDoubleKeyFrame! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.doublekeyframecollection.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.xaml.media.animation.dragitemthemeanimation) +public final class DragItemThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDragItemThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation + 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_CXaml_CMedia_CAnimation_CIDragItemThemeAnimation>?) -> DragItemThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DragItemThemeAnimation"))) + } + + private static let _IDragItemThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDragItemThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DragItemThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragitemthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IDragItemThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragitemthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation) +public final class DragOverThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDragOverThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation + 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_CXaml_CMedia_CAnimation_CIDragOverThemeAnimation>?) -> DragOverThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DragOverThemeAnimation"))) + } + + private static let _IDragOverThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDragOverThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DragOverThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation.directionproperty) + public static var directionProperty : WinUI.DependencyProperty! { + get { try! _IDragOverThemeAnimationStatics.get_DirectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IDragOverThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation.tooffsetproperty) + public static var toOffsetProperty : WinUI.DependencyProperty! { + get { try! _IDragOverThemeAnimationStatics.get_ToOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation.direction) + public var direction : WinUI.AnimationDirection { + 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.xaml.media.animation.dragoverthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.dragoverthemeanimation.tooffset) + public var toOffset : Double { + get { try! _default.get_ToOffsetImpl() } + set { try! _default.put_ToOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinnavigationtransitioninfo) +public final class DrillInNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillInNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CIDrillInNavigationTransitionInfo>?) -> DrillInNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DrillInNavigationTransitionInfo"))) + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = DrillInNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillInNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation) +public final class DrillInThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillInThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation + 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_CXaml_CMedia_CAnimation_CIDrillInThemeAnimation>?) -> DrillInThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DrillInThemeAnimation"))) + } + + private static let _IDrillInThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillInThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DrillInThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.entrancetargetnameproperty) + public static var entranceTargetNameProperty : WinUI.DependencyProperty! { + get { try! _IDrillInThemeAnimationStatics.get_EntranceTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.entrancetargetproperty) + public static var entranceTargetProperty : WinUI.DependencyProperty! { + get { try! _IDrillInThemeAnimationStatics.get_EntranceTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.exittargetnameproperty) + public static var exitTargetNameProperty : WinUI.DependencyProperty! { + get { try! _IDrillInThemeAnimationStatics.get_ExitTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.exittargetproperty) + public static var exitTargetProperty : WinUI.DependencyProperty! { + get { try! _IDrillInThemeAnimationStatics.get_ExitTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.entrancetarget) + public var entranceTarget : WinUI.DependencyObject! { + get { try! _default.get_EntranceTargetImpl() } + set { try! _default.put_EntranceTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.entrancetargetname) + public var entranceTargetName : String { + get { try! _default.get_EntranceTargetNameImpl() } + set { try! _default.put_EntranceTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.exittarget) + public var exitTarget : WinUI.DependencyObject! { + get { try! _default.get_ExitTargetImpl() } + set { try! _default.put_ExitTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drillinthemeanimation.exittargetname) + public var exitTargetName : String { + get { try! _default.get_ExitTargetNameImpl() } + set { try! _default.put_ExitTargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation) +public final class DrillOutThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillOutThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation + 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_CXaml_CMedia_CAnimation_CIDrillOutThemeAnimation>?) -> DrillOutThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DrillOutThemeAnimation"))) + } + + private static let _IDrillOutThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDrillOutThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DrillOutThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.entrancetargetnameproperty) + public static var entranceTargetNameProperty : WinUI.DependencyProperty! { + get { try! _IDrillOutThemeAnimationStatics.get_EntranceTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.entrancetargetproperty) + public static var entranceTargetProperty : WinUI.DependencyProperty! { + get { try! _IDrillOutThemeAnimationStatics.get_EntranceTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.exittargetnameproperty) + public static var exitTargetNameProperty : WinUI.DependencyProperty! { + get { try! _IDrillOutThemeAnimationStatics.get_ExitTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.exittargetproperty) + public static var exitTargetProperty : WinUI.DependencyProperty! { + get { try! _IDrillOutThemeAnimationStatics.get_ExitTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.entrancetarget) + public var entranceTarget : WinUI.DependencyObject! { + get { try! _default.get_EntranceTargetImpl() } + set { try! _default.put_EntranceTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.entrancetargetname) + public var entranceTargetName : String { + get { try! _default.get_EntranceTargetNameImpl() } + set { try! _default.put_EntranceTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.exittarget) + public var exitTarget : WinUI.DependencyObject! { + get { try! _default.get_ExitTargetImpl() } + set { try! _default.put_ExitTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.drilloutthemeanimation.exittargetname) + public var exitTargetName : String { + get { try! _default.get_ExitTargetNameImpl() } + set { try! _default.put_ExitTargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.droptargetitemthemeanimation) +public final class DropTargetItemThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IDropTargetItemThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation + 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_CXaml_CMedia_CAnimation_CIDropTargetItemThemeAnimation>?) -> DropTargetItemThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.DropTargetItemThemeAnimation"))) + } + + private static let _IDropTargetItemThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IDropTargetItemThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.DropTargetItemThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.droptargetitemthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IDropTargetItemThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.droptargetitemthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingcolorkeyframe) +public final class EasingColorKeyFrame : WinUI.ColorKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingColorKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame + 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_CXaml_CMedia_CAnimation_CIEasingColorKeyFrame>?) -> EasingColorKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EasingColorKeyFrame"))) + } + + private static let _IEasingColorKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingColorKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EasingColorKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingcolorkeyframe.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IEasingColorKeyFrameStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingcolorkeyframe.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingdoublekeyframe) +public final class EasingDoubleKeyFrame : WinUI.DoubleKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingDoubleKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame + 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_CXaml_CMedia_CAnimation_CIEasingDoubleKeyFrame>?) -> EasingDoubleKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EasingDoubleKeyFrame"))) + } + + private static let _IEasingDoubleKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingDoubleKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EasingDoubleKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingdoublekeyframe.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IEasingDoubleKeyFrameStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingdoublekeyframe.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingfunctionbase) +open class EasingFunctionBase : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingFunctionBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase + 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_CXaml_CMedia_CAnimation_CIEasingFunctionBase>?) -> EasingFunctionBase? { + 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 _IEasingFunctionBaseFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingFunctionBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EasingFunctionBase")) + + private static let _IEasingFunctionBaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingFunctionBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EasingFunctionBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingfunctionbase.easingmodeproperty) + public class var easingModeProperty : WinUI.DependencyProperty! { + get { try! _IEasingFunctionBaseStatics.get_EasingModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingfunctionbase.ease) + public func ease(_ normalizedTime: Double) throws -> Double { + try _default.EaseImpl(normalizedTime) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingfunctionbase.easingmode) + public var easingMode : EasingMode { + get { try! _default.get_EasingModeImpl() } + set { try! _default.put_EasingModeImpl(newValue) } + } + + internal enum IEasingFunctionBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = EasingFunctionBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingFunctionBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingFunctionBase + } + } + internal typealias Composable = IEasingFunctionBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingpointkeyframe) +public final class EasingPointKeyFrame : WinUI.PointKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingPointKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame + 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_CXaml_CMedia_CAnimation_CIEasingPointKeyFrame>?) -> EasingPointKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EasingPointKeyFrame"))) + } + + private static let _IEasingPointKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEasingPointKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EasingPointKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingpointkeyframe.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IEasingPointKeyFrameStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.easingpointkeyframe.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.edgeuithemetransition) +public final class EdgeUIThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEdgeUIThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition + 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_CXaml_CMedia_CAnimation_CIEdgeUIThemeTransition>?) -> EdgeUIThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EdgeUIThemeTransition"))) + } + + private static let _IEdgeUIThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEdgeUIThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EdgeUIThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.edgeuithemetransition.edgeproperty) + public static var edgeProperty : WinUI.DependencyProperty! { + get { try! _IEdgeUIThemeTransitionStatics.get_EdgePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.edgeuithemetransition.edge) + public var edge : WinUI.EdgeTransitionLocation { + get { try! _default.get_EdgeImpl() } + set { try! _default.put_EdgeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.elasticease) +public final class ElasticEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IElasticEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIElasticEase + 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_CXaml_CMedia_CAnimation_CIElasticEase>?) -> ElasticEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ElasticEase"))) + } + + private static let _IElasticEaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IElasticEaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ElasticEase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.elasticease.oscillationsproperty) + public static var oscillationsProperty : WinUI.DependencyProperty! { + get { try! _IElasticEaseStatics.get_OscillationsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.elasticease.springinessproperty) + public static var springinessProperty : WinUI.DependencyProperty! { + get { try! _IElasticEaseStatics.get_SpringinessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.elasticease.oscillations) + public var oscillations : Int32 { + get { try! _default.get_OscillationsImpl() } + set { try! _default.put_OscillationsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.elasticease.springiness) + public var springiness : Double { + get { try! _default.get_SpringinessImpl() } + set { try! _default.put_SpringinessImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancenavigationtransitioninfo) +public final class EntranceNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEntranceNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfo>?) -> EntranceNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EntranceNavigationTransitionInfo"))) + } + + private static let _IEntranceNavigationTransitionInfoStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEntranceNavigationTransitionInfoStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EntranceNavigationTransitionInfo")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancenavigationtransitioninfo.getistargetelement) + public static func getIsTargetElement(_ element: WinUI.UIElement!) -> Bool { + return try! _IEntranceNavigationTransitionInfoStatics.GetIsTargetElementImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancenavigationtransitioninfo.setistargetelement) + public static func setIsTargetElement(_ element: WinUI.UIElement!, _ value: Bool) { + try! _IEntranceNavigationTransitionInfoStatics.SetIsTargetElementImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancenavigationtransitioninfo.istargetelementproperty) + public static var isTargetElementProperty : WinUI.DependencyProperty! { + get { try! _IEntranceNavigationTransitionInfoStatics.get_IsTargetElementPropertyImpl() } + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = EntranceNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEntranceNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition) +public final class EntranceThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IEntranceThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIEntranceThemeTransition + 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_CXaml_CMedia_CAnimation_CIEntranceThemeTransition>?) -> EntranceThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.EntranceThemeTransition"))) + } + + private static let _IEntranceThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IEntranceThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.EntranceThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.fromhorizontaloffsetproperty) + public static var fromHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IEntranceThemeTransitionStatics.get_FromHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.fromverticaloffsetproperty) + public static var fromVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IEntranceThemeTransitionStatics.get_FromVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.isstaggeringenabledproperty) + public static var isStaggeringEnabledProperty : WinUI.DependencyProperty! { + get { try! _IEntranceThemeTransitionStatics.get_IsStaggeringEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + set { try! _default.put_FromHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + set { try! _default.put_FromVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.entrancethemetransition.isstaggeringenabled) + public var isStaggeringEnabled : Bool { + get { try! _default.get_IsStaggeringEnabledImpl() } + set { try! _default.put_IsStaggeringEnabledImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.exponentialease) +public final class ExponentialEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IExponentialEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIExponentialEase + 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_CXaml_CMedia_CAnimation_CIExponentialEase>?) -> ExponentialEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ExponentialEase"))) + } + + private static let _IExponentialEaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IExponentialEaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ExponentialEase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.exponentialease.exponentproperty) + public static var exponentProperty : WinUI.DependencyProperty! { + get { try! _IExponentialEaseStatics.get_ExponentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.exponentialease.exponent) + public var exponent : Double { + get { try! _default.get_ExponentImpl() } + set { try! _default.put_ExponentImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeinthemeanimation) +public final class FadeInThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IFadeInThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation + 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_CXaml_CMedia_CAnimation_CIFadeInThemeAnimation>?) -> FadeInThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.FadeInThemeAnimation"))) + } + + private static let _IFadeInThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IFadeInThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.FadeInThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeinthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IFadeInThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeinthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeoutthemeanimation) +public final class FadeOutThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IFadeOutThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation + 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_CXaml_CMedia_CAnimation_CIFadeOutThemeAnimation>?) -> FadeOutThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.FadeOutThemeAnimation"))) + } + + private static let _IFadeOutThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IFadeOutThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.FadeOutThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeoutthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IFadeOutThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.fadeoutthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.gravityconnectedanimationconfiguration) +open class GravityConnectedAnimationConfiguration : WinUI.ConnectedAnimationConfiguration { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IGravityConnectedAnimationConfiguration + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration + 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_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration>?) -> GravityConnectedAnimationConfiguration? { + 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 _IGravityConnectedAnimationConfigurationFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IGravityConnectedAnimationConfigurationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.GravityConnectedAnimationConfiguration")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IGravityConnectedAnimationConfigurationFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.gravityconnectedanimationconfiguration.isshadowenabled) + public var isShadowEnabled : Bool { + get { try! _default.get_IsShadowEnabledImpl() } + set { try! _default.put_IsShadowEnabledImpl(newValue) } + } + + internal enum IGravityConnectedAnimationConfiguration : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = GravityConnectedAnimationConfiguration + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIGravityConnectedAnimationConfiguration + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IGravityConnectedAnimationConfiguration + } + } + internal typealias Composable = IGravityConnectedAnimationConfiguration + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keyspline) +public final class KeySpline : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IKeySpline + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeySpline + 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_CXaml_CMedia_CAnimation_CIKeySpline>?) -> KeySpline? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.KeySpline"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keyspline.controlpoint1) + public var controlPoint1 : WindowsFoundation.Point { + get { try! _default.get_ControlPoint1Impl() } + set { try! _default.put_ControlPoint1Impl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keyspline.controlpoint2) + public var controlPoint2 : WindowsFoundation.Point { + get { try! _default.get_ControlPoint2Impl() } + set { try! _default.put_ControlPoint2Impl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keytimehelper) +public final class KeyTimeHelper : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IKeyTimeHelper + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIKeyTimeHelper + 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_CXaml_CMedia_CAnimation_CIKeyTimeHelper>?) -> KeyTimeHelper? { + 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 _IKeyTimeHelperStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IKeyTimeHelperStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.KeyTimeHelper")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keytimehelper.fromtimespan) + public static func fromTimeSpan(_ timeSpan: WindowsFoundation.TimeSpan) -> KeyTime { + return try! _IKeyTimeHelperStatics.FromTimeSpanImpl(timeSpan) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.linearcolorkeyframe) +public final class LinearColorKeyFrame : WinUI.ColorKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ILinearColorKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearColorKeyFrame + 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_CXaml_CMedia_CAnimation_CILinearColorKeyFrame>?) -> LinearColorKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.LinearColorKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.lineardoublekeyframe) +public final class LinearDoubleKeyFrame : WinUI.DoubleKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ILinearDoubleKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearDoubleKeyFrame + 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_CXaml_CMedia_CAnimation_CILinearDoubleKeyFrame>?) -> LinearDoubleKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.LinearDoubleKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.linearpointkeyframe) +public final class LinearPointKeyFrame : WinUI.PointKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ILinearPointKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CILinearPointKeyFrame + 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_CXaml_CMedia_CAnimation_CILinearPointKeyFrame>?) -> LinearPointKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.LinearPointKeyFrame"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationthemetransition) +public final class NavigationThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationThemeTransition + 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_CXaml_CMedia_CAnimation_CINavigationThemeTransition>?) -> NavigationThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.NavigationThemeTransition"))) + } + + private static let _INavigationThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.NavigationThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationthemetransition.defaultnavigationtransitioninfoproperty) + public static var defaultNavigationTransitionInfoProperty : WinUI.DependencyProperty! { + get { try! _INavigationThemeTransitionStatics.get_DefaultNavigationTransitionInfoPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationthemetransition.defaultnavigationtransitioninfo) + public var defaultNavigationTransitionInfo : NavigationTransitionInfo! { + get { try! _default.get_DefaultNavigationTransitionInfoImpl() } + set { try! _default.put_DefaultNavigationTransitionInfoImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationtransitioninfo) +open class NavigationTransitionInfo : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CINavigationTransitionInfo>?) -> NavigationTransitionInfo? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _INavigationTransitionInfoFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.NavigationTransitionInfo")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._INavigationTransitionInfoFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private lazy var _INavigationTransitionInfoOverrides: __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationtransitioninfo.getnavigationstatecore) + open func getNavigationStateCore() throws -> String { + try _INavigationTransitionInfoOverrides.GetNavigationStateCoreImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationtransitioninfo.setnavigationstatecore) + open func setNavigationStateCore(_ navigationState: String) throws { + try _INavigationTransitionInfoOverrides.SetNavigationStateCoreImpl(navigationState) + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = NavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + _INavigationTransitionInfoOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectanimationusingkeyframes) +public final class ObjectAnimationUsingKeyFrames : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectAnimationUsingKeyFrames + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames + 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_CXaml_CMedia_CAnimation_CIObjectAnimationUsingKeyFrames>?) -> ObjectAnimationUsingKeyFrames? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ObjectAnimationUsingKeyFrames"))) + } + + private static let _IObjectAnimationUsingKeyFramesStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectAnimationUsingKeyFramesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ObjectAnimationUsingKeyFrames")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectanimationusingkeyframes.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IObjectAnimationUsingKeyFramesStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectanimationusingkeyframes.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectanimationusingkeyframes.keyframes) + public var keyFrames : ObjectKeyFrameCollection! { + get { try! _default.get_KeyFramesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframe) +open class ObjectKeyFrame : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame + 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_CXaml_CMedia_CAnimation_CIObjectKeyFrame>?) -> ObjectKeyFrame? { + 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 _IObjectKeyFrameFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectKeyFrameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ObjectKeyFrame")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IObjectKeyFrameFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IObjectKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.ObjectKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframe.keytimeproperty) + public class var keyTimeProperty : WinUI.DependencyProperty! { + get { try! _IObjectKeyFrameStatics.get_KeyTimePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframe.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IObjectKeyFrameStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframe.keytime) + public var keyTime : KeyTime { + get { try! _default.get_KeyTimeImpl() } + set { try! _default.put_KeyTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframe.value) + public var value : Any! { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + internal enum IObjectKeyFrame : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ObjectKeyFrame + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIObjectKeyFrame + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IObjectKeyFrame + } + } + internal typealias Composable = IObjectKeyFrame + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection) +public final class ObjectKeyFrameCollection : WinRTClass, IVector, IIterable { + public typealias T = ObjectKeyFrame? + private typealias SwiftABI = WinUI.IVectorObjectKeyFrame + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame + 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__CXaml__CMedia__CAnimation__CObjectKeyFrame>?) -> ObjectKeyFrameCollection? { + 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.Xaml.Media.Animation.ObjectKeyFrameCollection"))) + } + + // 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.xaml.media.animation.objectkeyframecollection.getat) + public func getAt(_ index: UInt32) -> ObjectKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.indexof) + public func indexOf(_ value: ObjectKeyFrame?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.setat) + public func setAt(_ index: UInt32, _ value: ObjectKeyFrame?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.insertat) + public func insertAt(_ index: UInt32, _ value: ObjectKeyFrame?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.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.xaml.media.animation.objectkeyframecollection.append) + public func append(_ value: ObjectKeyFrame?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableObjectKeyFrame! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.objectkeyframecollection.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.xaml.media.animation.panethemetransition) +public final class PaneThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPaneThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPaneThemeTransition + 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_CXaml_CMedia_CAnimation_CIPaneThemeTransition>?) -> PaneThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PaneThemeTransition"))) + } + + private static let _IPaneThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPaneThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PaneThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.panethemetransition.edgeproperty) + public static var edgeProperty : WinUI.DependencyProperty! { + get { try! _IPaneThemeTransitionStatics.get_EdgePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.panethemetransition.edge) + public var edge : WinUI.EdgeTransitionLocation { + get { try! _default.get_EdgeImpl() } + set { try! _default.put_EdgeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation) +public final class PointAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimation + 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_CXaml_CMedia_CAnimation_CIPointAnimation>?) -> PointAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PointAnimation"))) + } + + private static let _IPointAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPointAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.byproperty) + public static var byProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationStatics.get_ByPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.easingfunctionproperty) + public static var easingFunctionProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationStatics.get_EasingFunctionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.fromproperty) + public static var fromProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationStatics.get_FromPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.toproperty) + public static var toProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationStatics.get_ToPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.by) + public var by : WindowsFoundation.Point? { + get { try! _default.get_ByImpl() } + set { try! _default.put_ByImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.easingfunction) + public var easingFunction : EasingFunctionBase! { + get { try! _default.get_EasingFunctionImpl() } + set { try! _default.put_EasingFunctionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.from) + public var from : WindowsFoundation.Point? { + get { try! _default.get_FromImpl() } + set { try! _default.put_FromImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimation.to) + public var to : WindowsFoundation.Point? { + get { try! _default.get_ToImpl() } + set { try! _default.put_ToImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimationusingkeyframes) +public final class PointAnimationUsingKeyFrames : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointAnimationUsingKeyFrames + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames + 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_CXaml_CMedia_CAnimation_CIPointAnimationUsingKeyFrames>?) -> PointAnimationUsingKeyFrames? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PointAnimationUsingKeyFrames"))) + } + + private static let _IPointAnimationUsingKeyFramesStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPointAnimationUsingKeyFramesStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointAnimationUsingKeyFrames")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimationusingkeyframes.enabledependentanimationproperty) + public static var enableDependentAnimationProperty : WinUI.DependencyProperty! { + get { try! _IPointAnimationUsingKeyFramesStatics.get_EnableDependentAnimationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimationusingkeyframes.enabledependentanimation) + public var enableDependentAnimation : Bool { + get { try! _default.get_EnableDependentAnimationImpl() } + set { try! _default.put_EnableDependentAnimationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointanimationusingkeyframes.keyframes) + public var keyFrames : PointKeyFrameCollection! { + get { try! _default.get_KeyFramesImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframe) +open class PointKeyFrame : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame + 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_CXaml_CMedia_CAnimation_CIPointKeyFrame>?) -> PointKeyFrame? { + 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 _IPointKeyFrameFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.IPointKeyFrameFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointKeyFrame")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IPointKeyFrameFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IPointKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPointKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframe.keytimeproperty) + public class var keyTimeProperty : WinUI.DependencyProperty! { + get { try! _IPointKeyFrameStatics.get_KeyTimePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframe.valueproperty) + public class var valueProperty : WinUI.DependencyProperty! { + get { try! _IPointKeyFrameStatics.get_ValuePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframe.keytime) + public var keyTime : KeyTime { + get { try! _default.get_KeyTimeImpl() } + set { try! _default.put_KeyTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframe.value) + public var value : WindowsFoundation.Point { + get { try! _default.get_ValueImpl() } + set { try! _default.put_ValueImpl(newValue) } + } + + internal enum IPointKeyFrame : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = PointKeyFrame + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointKeyFrame + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointKeyFrame + } + } + internal typealias Composable = IPointKeyFrame + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection) +public final class PointKeyFrameCollection : WinRTClass, IVector, IIterable { + public typealias T = PointKeyFrame? + private typealias SwiftABI = WinUI.IVectorPointKeyFrame + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame + 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__CXaml__CMedia__CAnimation__CPointKeyFrame>?) -> PointKeyFrameCollection? { + 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.Xaml.Media.Animation.PointKeyFrameCollection"))) + } + + // 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.xaml.media.animation.pointkeyframecollection.getat) + public func getAt(_ index: UInt32) -> PointKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.indexof) + public func indexOf(_ value: PointKeyFrame?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.setat) + public func setAt(_ index: UInt32, _ value: PointKeyFrame?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.insertat) + public func insertAt(_ index: UInt32, _ value: PointKeyFrame?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.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.xaml.media.animation.pointkeyframecollection.append) + public func append(_ value: PointKeyFrame?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePointKeyFrame! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointkeyframecollection.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.xaml.media.animation.pointerdownthemeanimation) +public final class PointerDownThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointerDownThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation + 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_CXaml_CMedia_CAnimation_CIPointerDownThemeAnimation>?) -> PointerDownThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PointerDownThemeAnimation"))) + } + + private static let _IPointerDownThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPointerDownThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointerDownThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointerdownthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IPointerDownThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointerdownthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointerupthemeanimation) +public final class PointerUpThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPointerUpThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation + 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_CXaml_CMedia_CAnimation_CIPointerUpThemeAnimation>?) -> PointerUpThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PointerUpThemeAnimation"))) + } + + private static let _IPointerUpThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPointerUpThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PointerUpThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointerupthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IPointerUpThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.pointerupthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation) +public final class PopInThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPopInThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopInThemeAnimation + 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_CXaml_CMedia_CAnimation_CIPopInThemeAnimation>?) -> PopInThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PopInThemeAnimation"))) + } + + private static let _IPopInThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPopInThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PopInThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.fromhorizontaloffsetproperty) + public static var fromHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopInThemeAnimationStatics.get_FromHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.fromverticaloffsetproperty) + public static var fromVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopInThemeAnimationStatics.get_FromVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IPopInThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + set { try! _default.put_FromHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + set { try! _default.put_FromVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popinthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popoutthemeanimation) +public final class PopOutThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPopOutThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation + 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_CXaml_CMedia_CAnimation_CIPopOutThemeAnimation>?) -> PopOutThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PopOutThemeAnimation"))) + } + + private static let _IPopOutThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPopOutThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PopOutThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popoutthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IPopOutThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popoutthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popupthemetransition) +public final class PopupThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPopupThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPopupThemeTransition + 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_CXaml_CMedia_CAnimation_CIPopupThemeTransition>?) -> PopupThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PopupThemeTransition"))) + } + + private static let _IPopupThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPopupThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PopupThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popupthemetransition.fromhorizontaloffsetproperty) + public static var fromHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopupThemeTransitionStatics.get_FromHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popupthemetransition.fromverticaloffsetproperty) + public static var fromVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IPopupThemeTransitionStatics.get_FromVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popupthemetransition.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + set { try! _default.put_FromHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.popupthemetransition.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + set { try! _default.put_FromVerticalOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.powerease) +public final class PowerEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IPowerEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIPowerEase + 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_CXaml_CMedia_CAnimation_CIPowerEase>?) -> PowerEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.PowerEase"))) + } + + private static let _IPowerEaseStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IPowerEaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.PowerEase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.powerease.powerproperty) + public static var powerProperty : WinUI.DependencyProperty! { + get { try! _IPowerEaseStatics.get_PowerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.powerease.power) + public var power : Double { + get { try! _default.get_PowerImpl() } + set { try! _default.put_PowerImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.quadraticease) +public final class QuadraticEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IQuadraticEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuadraticEase + 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_CXaml_CMedia_CAnimation_CIQuadraticEase>?) -> QuadraticEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.QuadraticEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.quarticease) +public final class QuarticEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IQuarticEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuarticEase + 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_CXaml_CMedia_CAnimation_CIQuarticEase>?) -> QuarticEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.QuarticEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.quinticease) +public final class QuinticEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IQuinticEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIQuinticEase + 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_CXaml_CMedia_CAnimation_CIQuinticEase>?) -> QuinticEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.QuinticEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.reorderthemetransition) +public final class ReorderThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IReorderThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIReorderThemeTransition + 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_CXaml_CMedia_CAnimation_CIReorderThemeTransition>?) -> ReorderThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.ReorderThemeTransition"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper) +public final class RepeatBehaviorHelper : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IRepeatBehaviorHelper + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelper + 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_CXaml_CMedia_CAnimation_CIRepeatBehaviorHelper>?) -> RepeatBehaviorHelper? { + 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 _IRepeatBehaviorHelperStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IRepeatBehaviorHelperStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.RepeatBehaviorHelper")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.fromcount) + public static func fromCount(_ count: Double) -> RepeatBehavior { + return try! _IRepeatBehaviorHelperStatics.FromCountImpl(count) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.fromduration) + public static func fromDuration(_ duration: WindowsFoundation.TimeSpan) -> RepeatBehavior { + return try! _IRepeatBehaviorHelperStatics.FromDurationImpl(duration) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.gethascount) + public static func getHasCount(_ target: RepeatBehavior) -> Bool { + return try! _IRepeatBehaviorHelperStatics.GetHasCountImpl(target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.gethasduration) + public static func getHasDuration(_ target: RepeatBehavior) -> Bool { + return try! _IRepeatBehaviorHelperStatics.GetHasDurationImpl(target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.equals) + public static func equals(_ target: RepeatBehavior, _ value: RepeatBehavior) -> Bool { + return try! _IRepeatBehaviorHelperStatics.EqualsImpl(target, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehaviorhelper.forever) + public static var forever : RepeatBehavior { + get { try! _IRepeatBehaviorHelperStatics.get_ForeverImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation) +public final class RepositionThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IRepositionThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation + 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_CXaml_CMedia_CAnimation_CIRepositionThemeAnimation>?) -> RepositionThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.RepositionThemeAnimation"))) + } + + private static let _IRepositionThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IRepositionThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.RepositionThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.fromhorizontaloffsetproperty) + public static var fromHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IRepositionThemeAnimationStatics.get_FromHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.fromverticaloffsetproperty) + public static var fromVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _IRepositionThemeAnimationStatics.get_FromVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IRepositionThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + set { try! _default.put_FromHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + set { try! _default.put_FromVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemetransition) +public final class RepositionThemeTransition : WinUI.Transition { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IRepositionThemeTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIRepositionThemeTransition + 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_CXaml_CMedia_CAnimation_CIRepositionThemeTransition>?) -> RepositionThemeTransition? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.RepositionThemeTransition"))) + } + + private static let _IRepositionThemeTransitionStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IRepositionThemeTransitionStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.RepositionThemeTransition")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemetransition.isstaggeringenabledproperty) + public static var isStaggeringEnabledProperty : WinUI.DependencyProperty! { + get { try! _IRepositionThemeTransitionStatics.get_IsStaggeringEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repositionthemetransition.isstaggeringenabled) + public var isStaggeringEnabled : Bool { + get { try! _default.get_IsStaggeringEnabledImpl() } + set { try! _default.put_IsStaggeringEnabledImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.sineease) +public final class SineEase : WinUI.EasingFunctionBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISineEase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISineEase + 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_CXaml_CMedia_CAnimation_CISineEase>?) -> SineEase? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SineEase"))) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.slidenavigationtransitioninfo) +public final class SlideNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISlideNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo>?) -> SlideNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SlideNavigationTransitionInfo"))) + } + + private static let _ISlideNavigationTransitionInfoStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISlideNavigationTransitionInfoStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SlideNavigationTransitionInfo")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.slidenavigationtransitioninfo.effectproperty) + public static var effectProperty : WinUI.DependencyProperty! { + get { try! _ISlideNavigationTransitionInfoStatics.get_EffectPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.slidenavigationtransitioninfo.effect) + public var effect : SlideNavigationTransitionEffect { + get { try! _default.get_EffectImpl() } + set { try! _default.put_EffectImpl(newValue) } + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = SlideNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISlideNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISlideNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinecolorkeyframe) +public final class SplineColorKeyFrame : WinUI.ColorKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISplineColorKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineColorKeyFrame + 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_CXaml_CMedia_CAnimation_CISplineColorKeyFrame>?) -> SplineColorKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SplineColorKeyFrame"))) + } + + private static let _ISplineColorKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISplineColorKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SplineColorKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinecolorkeyframe.keysplineproperty) + public static var keySplineProperty : WinUI.DependencyProperty! { + get { try! _ISplineColorKeyFrameStatics.get_KeySplinePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinecolorkeyframe.keyspline) + public var keySpline : KeySpline! { + get { try! _default.get_KeySplineImpl() } + set { try! _default.put_KeySplineImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinedoublekeyframe) +public final class SplineDoubleKeyFrame : WinUI.DoubleKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISplineDoubleKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame + 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_CXaml_CMedia_CAnimation_CISplineDoubleKeyFrame>?) -> SplineDoubleKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SplineDoubleKeyFrame"))) + } + + private static let _ISplineDoubleKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISplineDoubleKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SplineDoubleKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinedoublekeyframe.keysplineproperty) + public static var keySplineProperty : WinUI.DependencyProperty! { + get { try! _ISplineDoubleKeyFrameStatics.get_KeySplinePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinedoublekeyframe.keyspline) + public var keySpline : KeySpline! { + get { try! _default.get_KeySplineImpl() } + set { try! _default.put_KeySplineImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinepointkeyframe) +public final class SplinePointKeyFrame : WinUI.PointKeyFrame { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISplinePointKeyFrame + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplinePointKeyFrame + 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_CXaml_CMedia_CAnimation_CISplinePointKeyFrame>?) -> SplinePointKeyFrame? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SplinePointKeyFrame"))) + } + + private static let _ISplinePointKeyFrameStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISplinePointKeyFrameStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SplinePointKeyFrame")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinepointkeyframe.keysplineproperty) + public static var keySplineProperty : WinUI.DependencyProperty! { + get { try! _ISplinePointKeyFrameStatics.get_KeySplinePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splinepointkeyframe.keyspline) + public var keySpline : KeySpline! { + get { try! _default.get_KeySplineImpl() } + set { try! _default.put_KeySplineImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation) +public final class SplitCloseThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISplitCloseThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation + 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_CXaml_CMedia_CAnimation_CISplitCloseThemeAnimation>?) -> SplitCloseThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SplitCloseThemeAnimation"))) + } + + private static let _ISplitCloseThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISplitCloseThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SplitCloseThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedlengthproperty) + public static var closedLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ClosedLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedtargetnameproperty) + public static var closedTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ClosedTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedtargetproperty) + public static var closedTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ClosedTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttargetnameproperty) + public static var contentTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ContentTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttargetproperty) + public static var contentTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ContentTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttranslationdirectionproperty) + public static var contentTranslationDirectionProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ContentTranslationDirectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttranslationoffsetproperty) + public static var contentTranslationOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_ContentTranslationOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.offsetfromcenterproperty) + public static var offsetFromCenterProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_OffsetFromCenterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedlengthproperty) + public static var openedLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_OpenedLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedtargetnameproperty) + public static var openedTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_OpenedTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedtargetproperty) + public static var openedTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitCloseThemeAnimationStatics.get_OpenedTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedlength) + public var closedLength : Double { + get { try! _default.get_ClosedLengthImpl() } + set { try! _default.put_ClosedLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedtarget) + public var closedTarget : WinUI.DependencyObject! { + get { try! _default.get_ClosedTargetImpl() } + set { try! _default.put_ClosedTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.closedtargetname) + public var closedTargetName : String { + get { try! _default.get_ClosedTargetNameImpl() } + set { try! _default.put_ClosedTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttarget) + public var contentTarget : WinUI.DependencyObject! { + get { try! _default.get_ContentTargetImpl() } + set { try! _default.put_ContentTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttargetname) + public var contentTargetName : String { + get { try! _default.get_ContentTargetNameImpl() } + set { try! _default.put_ContentTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttranslationdirection) + public var contentTranslationDirection : WinUI.AnimationDirection { + get { try! _default.get_ContentTranslationDirectionImpl() } + set { try! _default.put_ContentTranslationDirectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.contenttranslationoffset) + public var contentTranslationOffset : Double { + get { try! _default.get_ContentTranslationOffsetImpl() } + set { try! _default.put_ContentTranslationOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.offsetfromcenter) + public var offsetFromCenter : Double { + get { try! _default.get_OffsetFromCenterImpl() } + set { try! _default.put_OffsetFromCenterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedlength) + public var openedLength : Double { + get { try! _default.get_OpenedLengthImpl() } + set { try! _default.put_OpenedLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedtarget) + public var openedTarget : WinUI.DependencyObject! { + get { try! _default.get_OpenedTargetImpl() } + set { try! _default.put_OpenedTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitclosethemeanimation.openedtargetname) + public var openedTargetName : String { + get { try! _default.get_OpenedTargetNameImpl() } + set { try! _default.put_OpenedTargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation) +public final class SplitOpenThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISplitOpenThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation + 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_CXaml_CMedia_CAnimation_CISplitOpenThemeAnimation>?) -> SplitOpenThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SplitOpenThemeAnimation"))) + } + + private static let _ISplitOpenThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISplitOpenThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SplitOpenThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedlengthproperty) + public static var closedLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ClosedLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedtargetnameproperty) + public static var closedTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ClosedTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedtargetproperty) + public static var closedTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ClosedTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttargetnameproperty) + public static var contentTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ContentTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttargetproperty) + public static var contentTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ContentTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttranslationdirectionproperty) + public static var contentTranslationDirectionProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ContentTranslationDirectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttranslationoffsetproperty) + public static var contentTranslationOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_ContentTranslationOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.offsetfromcenterproperty) + public static var offsetFromCenterProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_OffsetFromCenterPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedlengthproperty) + public static var openedLengthProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_OpenedLengthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedtargetnameproperty) + public static var openedTargetNameProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_OpenedTargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedtargetproperty) + public static var openedTargetProperty : WinUI.DependencyProperty! { + get { try! _ISplitOpenThemeAnimationStatics.get_OpenedTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedlength) + public var closedLength : Double { + get { try! _default.get_ClosedLengthImpl() } + set { try! _default.put_ClosedLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedtarget) + public var closedTarget : WinUI.DependencyObject! { + get { try! _default.get_ClosedTargetImpl() } + set { try! _default.put_ClosedTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.closedtargetname) + public var closedTargetName : String { + get { try! _default.get_ClosedTargetNameImpl() } + set { try! _default.put_ClosedTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttarget) + public var contentTarget : WinUI.DependencyObject! { + get { try! _default.get_ContentTargetImpl() } + set { try! _default.put_ContentTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttargetname) + public var contentTargetName : String { + get { try! _default.get_ContentTargetNameImpl() } + set { try! _default.put_ContentTargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttranslationdirection) + public var contentTranslationDirection : WinUI.AnimationDirection { + get { try! _default.get_ContentTranslationDirectionImpl() } + set { try! _default.put_ContentTranslationDirectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.contenttranslationoffset) + public var contentTranslationOffset : Double { + get { try! _default.get_ContentTranslationOffsetImpl() } + set { try! _default.put_ContentTranslationOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.offsetfromcenter) + public var offsetFromCenter : Double { + get { try! _default.get_OffsetFromCenterImpl() } + set { try! _default.put_OffsetFromCenterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedlength) + public var openedLength : Double { + get { try! _default.get_OpenedLengthImpl() } + set { try! _default.put_OpenedLengthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedtarget) + public var openedTarget : WinUI.DependencyObject! { + get { try! _default.get_OpenedTargetImpl() } + set { try! _default.put_OpenedTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.splitopenthemeanimation.openedtargetname) + public var openedTargetName : String { + get { try! _default.get_OpenedTargetNameImpl() } + set { try! _default.put_OpenedTargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard) +public final class Storyboard : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.IStoryboard + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CIStoryboard + 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_CXaml_CMedia_CAnimation_CIStoryboard>?) -> Storyboard? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.Storyboard"))) + } + + private static let _IStoryboardStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.IStoryboardStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.Storyboard")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.gettargetproperty) + public static func getTargetProperty(_ element: Timeline!) -> String { + return try! _IStoryboardStatics.GetTargetPropertyImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.settargetproperty) + public static func setTargetProperty(_ element: Timeline!, _ path: String) { + try! _IStoryboardStatics.SetTargetPropertyImpl(element, path) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.gettargetname) + public static func getTargetName(_ element: Timeline!) -> String { + return try! _IStoryboardStatics.GetTargetNameImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.settargetname) + public static func setTargetName(_ element: Timeline!, _ name: String) { + try! _IStoryboardStatics.SetTargetNameImpl(element, name) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.settarget) + public static func setTarget(_ timeline: Timeline!, _ target: WinUI.DependencyObject!) { + try! _IStoryboardStatics.SetTargetImpl(timeline, target) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _IStoryboardStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.targetpropertyproperty) + public static var targetPropertyProperty : WinUI.DependencyProperty! { + get { try! _IStoryboardStatics.get_TargetPropertyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.seek) + public func seek(_ offset: WindowsFoundation.TimeSpan) throws { + try _default.SeekImpl(offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.stop) + public func stop() throws { + try _default.StopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.begin) + public func begin() throws { + try _default.BeginImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.pause) + public func pause() throws { + try _default.PauseImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.resume) + public func resume() throws { + try _default.ResumeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.getcurrentstate) + public func getCurrentState() throws -> ClockState { + try _default.GetCurrentStateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.getcurrenttime) + public func getCurrentTime() throws -> WindowsFoundation.TimeSpan { + try _default.GetCurrentTimeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.seekalignedtolasttick) + public func seekAlignedToLastTick(_ offset: WindowsFoundation.TimeSpan) throws { + try _default.SeekAlignedToLastTickImpl(offset) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.skiptofill) + public func skipToFill() throws { + try _default.SkipToFillImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.storyboard.children) + public var children : TimelineCollection! { + get { try! _default.get_ChildrenImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.suppressnavigationtransitioninfo) +public final class SuppressNavigationTransitionInfo : WinUI.NavigationTransitionInfo { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISuppressNavigationTransitionInfo + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISuppressNavigationTransitionInfo + 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_CXaml_CMedia_CAnimation_CISuppressNavigationTransitionInfo>?) -> SuppressNavigationTransitionInfo? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SuppressNavigationTransitionInfo"))) + } + + internal enum INavigationTransitionInfoOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CINavigationTransitionInfoOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.INavigationTransitionInfoOverrides + internal typealias Class = SuppressNavigationTransitionInfo + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISuppressNavigationTransitionInfo + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISuppressNavigationTransitionInfo + } + } + internal typealias Composable = INavigationTransitionInfoOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation) +public final class SwipeBackThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISwipeBackThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation + 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_CXaml_CMedia_CAnimation_CISwipeBackThemeAnimation>?) -> SwipeBackThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SwipeBackThemeAnimation"))) + } + + private static let _ISwipeBackThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISwipeBackThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SwipeBackThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.fromhorizontaloffsetproperty) + public static var fromHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISwipeBackThemeAnimationStatics.get_FromHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.fromverticaloffsetproperty) + public static var fromVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISwipeBackThemeAnimationStatics.get_FromVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _ISwipeBackThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.fromhorizontaloffset) + public var fromHorizontalOffset : Double { + get { try! _default.get_FromHorizontalOffsetImpl() } + set { try! _default.put_FromHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.fromverticaloffset) + public var fromVerticalOffset : Double { + get { try! _default.get_FromVerticalOffsetImpl() } + set { try! _default.put_FromVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipebackthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation) +public final class SwipeHintThemeAnimation : WinUI.Timeline { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ISwipeHintThemeAnimation + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation + 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_CXaml_CMedia_CAnimation_CISwipeHintThemeAnimation>?) -> SwipeHintThemeAnimation? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Animation.SwipeHintThemeAnimation"))) + } + + private static let _ISwipeHintThemeAnimationStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ISwipeHintThemeAnimationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.SwipeHintThemeAnimation")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.targetnameproperty) + public static var targetNameProperty : WinUI.DependencyProperty! { + get { try! _ISwipeHintThemeAnimationStatics.get_TargetNamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.tohorizontaloffsetproperty) + public static var toHorizontalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISwipeHintThemeAnimationStatics.get_ToHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.toverticaloffsetproperty) + public static var toVerticalOffsetProperty : WinUI.DependencyProperty! { + get { try! _ISwipeHintThemeAnimationStatics.get_ToVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.targetname) + public var targetName : String { + get { try! _default.get_TargetNameImpl() } + set { try! _default.put_TargetNameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.tohorizontaloffset) + public var toHorizontalOffset : Double { + get { try! _default.get_ToHorizontalOffsetImpl() } + set { try! _default.put_ToHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.swipehintthemeanimation.toverticaloffset) + public var toVerticalOffset : Double { + get { try! _default.get_ToVerticalOffsetImpl() } + set { try! _default.put_ToVerticalOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline) +open class Timeline : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ITimeline + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline + 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_CXaml_CMedia_CAnimation_CITimeline>?) -> Timeline? { + 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 _ITimelineFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.ITimelineFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.Timeline")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITimelineFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _ITimelineStatics: __ABI_Microsoft_UI_Xaml_Media_Animation.ITimelineStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.Timeline")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.allowdependentanimations) + public class var allowDependentAnimations : Bool { + get { try! _ITimelineStatics.get_AllowDependentAnimationsImpl() } + set { try! _ITimelineStatics.put_AllowDependentAnimationsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.autoreverseproperty) + public class var autoReverseProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_AutoReversePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.begintimeproperty) + public class var beginTimeProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_BeginTimePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.durationproperty) + public class var durationProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_DurationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.fillbehaviorproperty) + public class var fillBehaviorProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_FillBehaviorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.repeatbehaviorproperty) + public class var repeatBehaviorProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_RepeatBehaviorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.speedratioproperty) + public class var speedRatioProperty : WinUI.DependencyProperty! { + get { try! _ITimelineStatics.get_SpeedRatioPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.autoreverse) + public var autoReverse : Bool { + get { try! _default.get_AutoReverseImpl() } + set { try! _default.put_AutoReverseImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.begintime) + public var beginTime : WindowsFoundation.TimeSpan? { + get { try! _default.get_BeginTimeImpl() } + set { try! _default.put_BeginTimeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.duration) + public var duration : WinUI.Duration { + 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.xaml.media.animation.timeline.fillbehavior) + public var fillBehavior : FillBehavior { + get { try! _default.get_FillBehaviorImpl() } + set { try! _default.put_FillBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.repeatbehavior) + public var repeatBehavior : RepeatBehavior { + get { try! _default.get_RepeatBehaviorImpl() } + set { try! _default.put_RepeatBehaviorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.speedratio) + public var speedRatio : Double { + get { try! _default.get_SpeedRatioImpl() } + set { try! _default.put_SpeedRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timeline.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) + } + ) + }() + + internal enum ITimeline : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Timeline + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITimeline + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ITimeline + } + } + internal typealias Composable = ITimeline + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection) +public final class TimelineCollection : WinRTClass, IVector, IIterable { + public typealias T = Timeline? + private typealias SwiftABI = WinUI.IVectorTimeline + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline + 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__CXaml__CMedia__CAnimation__CTimeline>?) -> TimelineCollection? { + 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.Xaml.Media.Animation.TimelineCollection"))) + } + + // 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.xaml.media.animation.timelinecollection.getat) + public func getAt(_ index: UInt32) -> Timeline? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.indexof) + public func indexOf(_ value: Timeline?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.setat) + public func setAt(_ index: UInt32, _ value: Timeline?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.insertat) + public func insertAt(_ index: UInt32, _ value: Timeline?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.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.xaml.media.animation.timelinecollection.append) + public func append(_ value: Timeline?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableTimeline! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.timelinecollection.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.xaml.media.animation.transition) +open class Transition : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ITransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransition + 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_CXaml_CMedia_CAnimation_CITransition>?) -> Transition? { + 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 _ITransitionFactory : __ABI_Microsoft_UI_Xaml_Media_Animation.ITransitionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Animation.Transition")) + + internal enum ITransition : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Transition + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CITransition + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Animation.ITransition + } + } + internal typealias Composable = ITransition + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection) +public final class TransitionCollection : WinRTClass, IVector, IIterable { + public typealias T = Transition? + private typealias SwiftABI = WinUI.IVectorTransition + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition + 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__CXaml__CMedia__CAnimation__CTransition>?) -> TransitionCollection? { + 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.Xaml.Media.Animation.TransitionCollection"))) + } + + // 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.xaml.media.animation.transitioncollection.getat) + public func getAt(_ index: UInt32) -> Transition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.indexof) + public func indexOf(_ value: Transition?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.setat) + public func setAt(_ index: UInt32, _ value: Transition?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.insertat) + public func insertAt(_ index: UInt32, _ value: Transition?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.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.xaml.media.animation.transitioncollection.append) + public func append(_ value: Transition?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableTransition! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.transitioncollection.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.xaml.media.animation.keytime) +public struct KeyTime: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.keytime.timespan) + public var timeSpan: WindowsFoundation.TimeSpan = .init() + public init() {} + public init(timeSpan: WindowsFoundation.TimeSpan) { + self.timeSpan = timeSpan + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CKeyTime) -> KeyTime { + .init(timeSpan: .from(abi: abi.TimeSpan)) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehavior) +public struct RepeatBehavior: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehavior.count) + public var count: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehavior.duration) + public var duration: WindowsFoundation.TimeSpan = .init() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.repeatbehavior.type) + public var type: RepeatBehaviorType = .init(0) + public init() {} + public init(count: Double, duration: WindowsFoundation.TimeSpan, type: RepeatBehaviorType) { + self.count = count + self.duration = duration + self.type = type + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehavior) -> RepeatBehavior { + .init(count: abi.Count, duration: .from(abi: abi.Duration), type: abi.Type) + } +} + +extension WinUI.ClockState { + public static var active : WinUI.ClockState { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CClockState_Active + } + public static var filling : WinUI.ClockState { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CClockState_Filling + } + public static var stopped : WinUI.ClockState { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CClockState_Stopped + } +} +extension WinUI.ClockState: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ConnectedAnimationComponent { + public static var offsetX : WinUI.ConnectedAnimationComponent { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CConnectedAnimationComponent_OffsetX + } + public static var offsetY : WinUI.ConnectedAnimationComponent { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CConnectedAnimationComponent_OffsetY + } + public static var crossFade : WinUI.ConnectedAnimationComponent { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CConnectedAnimationComponent_CrossFade + } + public static var scale : WinUI.ConnectedAnimationComponent { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CConnectedAnimationComponent_Scale + } +} +extension WinUI.ConnectedAnimationComponent: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.EasingMode { + public static var easeOut : WinUI.EasingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CEasingMode_EaseOut + } + public static var easeIn : WinUI.EasingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CEasingMode_EaseIn + } + public static var easeInOut : WinUI.EasingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CEasingMode_EaseInOut + } +} +extension WinUI.EasingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FillBehavior { + public static var holdEnd : WinUI.FillBehavior { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CFillBehavior_HoldEnd + } + public static var stop : WinUI.FillBehavior { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CFillBehavior_Stop + } +} +extension WinUI.FillBehavior: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.RepeatBehaviorType { + public static var count : WinUI.RepeatBehaviorType { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehaviorType_Count + } + public static var duration : WinUI.RepeatBehaviorType { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehaviorType_Duration + } + public static var forever : WinUI.RepeatBehaviorType { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CRepeatBehaviorType_Forever + } +} +extension WinUI.RepeatBehaviorType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SlideNavigationTransitionEffect { + public static var fromBottom : WinUI.SlideNavigationTransitionEffect { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CSlideNavigationTransitionEffect_FromBottom + } + public static var fromLeft : WinUI.SlideNavigationTransitionEffect { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CSlideNavigationTransitionEffect_FromLeft + } + public static var fromRight : WinUI.SlideNavigationTransitionEffect { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CAnimation_CSlideNavigationTransitionEffect_FromRight + } +} +extension WinUI.SlideNavigationTransitionEffect: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+ABI.swift new file mode 100644 index 0000000..9aa3a0a --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+ABI.swift @@ -0,0 +1,938 @@ +// 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_CXaml_CMedia_CImaging_CIBitmapImage: WindowsFoundation.IID { + .init(Data1: 0x5CC29916, Data2: 0xA411, Data3: 0x5BC2, Data4: ( 0xA3,0xC5,0xA0,0x0D,0x99,0xA5,0x9D,0xA8 ))// 5CC29916-A411-5BC2-A3C5-A00D99A59DA8 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageFactory: WindowsFoundation.IID { + .init(Data1: 0xF037E0E9, Data2: 0xF229, Data3: 0x522E, Data4: ( 0x95,0xC9,0xDA,0x22,0x11,0xA1,0x4B,0x05 ))// F037E0E9-F229-522E-95C9-DA2211A14B05 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics: WindowsFoundation.IID { + .init(Data1: 0x4BCF71A9, Data2: 0x1897, Data3: 0x51DC, Data4: ( 0x8E,0x3F,0x2C,0x5C,0x79,0x6D,0x1C,0xD9 ))// 4BCF71A9-1897-51DC-8E3F-2C5C796D1CD9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource: WindowsFoundation.IID { + .init(Data1: 0x8424269D, Data2: 0x9B82, Data3: 0x534F, Data4: ( 0x8F,0xEA,0xAF,0x5B,0x5E,0xF9,0x6B,0xF2 ))// 8424269D-9B82-534F-8FEA-AF5B5EF96BF2 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x0392F025, Data2: 0x1868, Data3: 0x5876, Data4: ( 0xAD,0x67,0x12,0xE9,0x4A,0x8D,0xA5,0xBF ))// 0392F025-1868-5876-AD67-12E94A8DA5BF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xEFA3745E, Data2: 0x4400, Data3: 0x5F0B, Data4: ( 0xBD,0xC7,0x3F,0x29,0x11,0xA3,0xD7,0x19 ))// EFA3745E-4400-5F0B-BDC7-3F2911A3D719 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9A0EA80B, Data2: 0x1A17, Data3: 0x50D5, Data4: ( 0x83,0xF3,0x37,0x77,0x38,0x21,0x26,0x19 ))// 9A0EA80B-1A17-50D5-83F3-377738212619 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap: WindowsFoundation.IID { + .init(Data1: 0xCF10407D, Data2: 0xFA8B, Data3: 0x57A3, Data4: ( 0x95,0x74,0x71,0x05,0x29,0xAE,0x0B,0x04 ))// CF10407D-FA8B-57A3-9574-710529AE0B04 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmapStatics: WindowsFoundation.IID { + .init(Data1: 0x83E822E4, Data2: 0x9F84, Data3: 0x5986, Data4: ( 0x93,0xB0,0xE4,0xF7,0x01,0x9C,0x36,0x7D ))// 83E822E4-9F84-5986-93B0-E4F7019C367D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISoftwareBitmapSource: WindowsFoundation.IID { + .init(Data1: 0xA6ACA802, Data2: 0x1F24, Data3: 0x5A1E, Data4: ( 0xBF,0x08,0x78,0x1A,0x85,0xED,0x55,0x11 ))// A6ACA802-1F24-5A1E-BF08-781A85ED5511 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSource: WindowsFoundation.IID { + .init(Data1: 0xAC078D9C, Data2: 0xD0E0, Data3: 0x5FF9, Data4: ( 0xB7,0x3E,0x98,0xE8,0x2E,0x4C,0x8D,0x36 ))// AC078D9C-D0E0-5FF9-B73E-98E82E4C8D36 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x09A26ED2, Data2: 0x11B3, Data3: 0x5EF1, Data4: ( 0xAC,0x56,0x20,0xD0,0x64,0xCC,0xCA,0x34 ))// 09A26ED2-11B3-5EF1-AC56-20D064CCCA34 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource: WindowsFoundation.IID { + .init(Data1: 0xD5B61D3C, Data2: 0xB68D, Data3: 0x53A2, Data4: ( 0xB0,0x7B,0xBA,0x6A,0xDF,0xDD,0x58,0x87 ))// D5B61D3C-B68D-53A2-B07B-BA6ADFDD5887 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x2F85673F, Data2: 0xAC64, Data3: 0x570D, Data4: ( 0x9B,0xDA,0x94,0xFA,0x08,0x2E,0xEA,0xD9 ))// 2F85673F-AC64-570D-9BDA-94FA082EEAD9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x76E66278, Data2: 0x7804, Data3: 0x5439, Data4: ( 0xA5,0x0D,0x14,0xC5,0xBA,0x89,0x67,0x14 ))// 76E66278-7804-5439-A50D-14C5BA896714 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceOpenedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1C9860D5, Data2: 0x38D0, Data3: 0x5B21, Data4: ( 0x8D,0x48,0x07,0x2F,0x1E,0x25,0x4E,0x39 ))// 1C9860D5-38D0-5B21-8D48-072F1E254E39 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceStatics: WindowsFoundation.IID { + .init(Data1: 0xE3AD1068, Data2: 0xF4C6, Data3: 0x5513, Data4: ( 0xA7,0x77,0x29,0x80,0xF0,0xBA,0x41,0xBD ))// E3AD1068-F4C6-5513-A777-2980F0BA41BD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSource: WindowsFoundation.IID { + .init(Data1: 0xE4FF96A6, Data2: 0xFEDE, Data3: 0x589C, Data4: ( 0xA0,0x07,0x41,0x78,0xB5,0x3B,0x67,0x39 ))// E4FF96A6-FEDE-589C-A007-4178B53B6739 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSourceFactory: WindowsFoundation.IID { + .init(Data1: 0x08490F2C, Data2: 0x04A8, Data3: 0x5031, Data4: ( 0xB9,0xC7,0x70,0x70,0x60,0xD7,0xCD,0x48 ))// 08490F2C-04A8-5031-B9C7-707060D7CD48 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmap: WindowsFoundation.IID { + .init(Data1: 0x78C824A9, Data2: 0x0E43, Data3: 0x5F1E, Data4: ( 0x93,0xBC,0xD0,0x46,0xCC,0xA8,0x2B,0x7E ))// 78C824A9-0E43-5F1E-93BC-D046CCA82B7E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmapFactory: WindowsFoundation.IID { + .init(Data1: 0x26E861D9, Data2: 0xB080, Data3: 0x512B, Data4: ( 0x96,0xC4,0x80,0x05,0x0E,0x7E,0x08,0xD1 ))// 26E861D9-B080-512B-96C4-80050E7E08D1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTask: WindowsFoundation.IID { + .init(Data1: 0x7807000C, Data2: 0xA050, Data3: 0x5121, Data4: ( 0xAC,0x74,0x33,0x22,0xD5,0x35,0x8E,0x39 ))// 7807000C-A050-5121-AC74-3322D5358E39 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskFactory: WindowsFoundation.IID { + .init(Data1: 0x205247A3, Data2: 0x9FFE, Data3: 0x599A, Data4: ( 0xA2,0x1A,0x71,0x81,0x44,0x2A,0x9D,0x75 ))// 205247A3-9FFE-599A-A21A-7181442A9D75 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverrides: WindowsFoundation.IID { + .init(Data1: 0x18733237, Data2: 0x324B, Data3: 0x57C0, Data4: ( 0x89,0xB2,0x58,0x75,0x47,0x2A,0xCC,0x80 ))// 18733237-324B-57C0-89B2-5875472ACC80 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandler: WindowsFoundation.IID { + .init(Data1: 0x9A8E4AF5, Data2: 0xB124, Data3: 0x5205, Data4: ( 0x8A,0xE9,0x34,0x96,0xE0,0x63,0xC5,0x69 ))// 9A8E4AF5-B124-5205-8AE9-3496E063C569 +} + +public enum __ABI_Microsoft_UI_Xaml_Media_Imaging { + public class IBitmapImage: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage } + + internal func get_CreateOptionsImpl() throws -> WinUI.BitmapCreateOptions { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CBitmapCreateOptions = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CreateOptions(pThis, &value)) + } + return value + } + + internal func put_CreateOptionsImpl(_ value: WinUI.BitmapCreateOptions) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_CreateOptions(pThis, value)) + } + } + + internal func get_UriSourceImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_UriSourceImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UriSource(pThis, RawPointer(value))) + } + } + + internal func get_DecodePixelWidthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelWidth(pThis, &value)) + } + return value + } + + internal func put_DecodePixelWidthImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DecodePixelWidth(pThis, value)) + } + } + + internal func get_DecodePixelHeightImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelHeight(pThis, &value)) + } + return value + } + + internal func put_DecodePixelHeightImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DecodePixelHeight(pThis, value)) + } + } + + internal func get_DecodePixelTypeImpl() throws -> WinUI.DecodePixelType { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CDecodePixelType = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelType(pThis, &value)) + } + return value + } + + internal func put_DecodePixelTypeImpl(_ value: WinUI.DecodePixelType) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_DecodePixelType(pThis, value)) + } + } + + internal func get_IsAnimatedBitmapImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAnimatedBitmap(pThis, &value)) + } + return .init(from: value) + } + + internal func get_IsPlayingImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlaying(pThis, &value)) + } + return .init(from: value) + } + + internal func get_AutoPlayImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoPlay(pThis, &value)) + } + return .init(from: value) + } + + internal func put_AutoPlayImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_AutoPlay(pThis, .init(from: value))) + } + } + + internal func add_DownloadProgressImpl(_ handler: WinUI.DownloadProgressEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml_Media_Imaging.DownloadProgressEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_DownloadProgress(pThis, _handler, &token)) + } + return token + } + + internal func remove_DownloadProgressImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_DownloadProgress(pThis, token)) + } + } + + internal func add_ImageOpenedImpl(_ handler: WinUI.RoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.RoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ImageOpened(pThis, _handler, &token)) + } + return token + } + + internal func remove_ImageOpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ImageOpened(pThis, token)) + } + } + + internal func add_ImageFailedImpl(_ handler: WinUI.ExceptionRoutedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = __ABI_Microsoft_UI_Xaml.ExceptionRoutedEventHandlerWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_ImageFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_ImageFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_ImageFailed(pThis, token)) + } + } + + internal func PlayImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Play(pThis)) + } + } + + internal func StopImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Stop(pThis)) + } + } + + } + + public class IBitmapImageFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageFactory } + + internal func CreateInstanceWithUriSourceImpl(_ uriSource: WindowsFoundation.Uri?) throws -> IBitmapImage { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithUriSource(pThis, RawPointer(uriSource), &valueAbi)) + } + } + return IBitmapImage(value!) + } + + } + + public class IBitmapImageStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics } + + internal func get_CreateOptionsPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_CreateOptionsProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_UriSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DecodePixelWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DecodePixelHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_DecodePixelTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DecodePixelTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsAnimatedBitmapPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsAnimatedBitmapProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_IsPlayingPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsPlayingProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_AutoPlayPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImageStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_AutoPlayProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IBitmapSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource } + + internal func get_PixelWidthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelWidth(pThis, &value)) + } + return value + } + + internal func get_PixelHeightImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelHeight(pThis, &value)) + } + return value + } + + internal func SetSourceImpl(_ streamSource: UWP.AnyIRandomAccessStream?) throws { + let streamSourceWrapper = __ABI_Windows_Storage_Streams.IRandomAccessStreamWrapper(streamSource) + let _streamSource = try! streamSourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSource(pThis, _streamSource)) + } + } + + internal func SetSourceAsyncImpl(_ streamSource: UWP.AnyIRandomAccessStream?) throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + let streamSourceWrapper = __ABI_Windows_Storage_Streams.IRandomAccessStreamWrapper(streamSource) + let _streamSource = try! streamSourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSourceAsync(pThis, _streamSource, &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + } + + public class IBitmapSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IBitmapSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IBitmapSource(value!) + } + + } + + public class IBitmapSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceStatics } + + internal func get_PixelWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PixelHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IDownloadProgressEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs } + + internal func get_ProgressImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Progress(pThis, &value)) + } + return value + } + + internal func put_ProgressImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Progress(pThis, value)) + } + } + + } + + public class IRenderTargetBitmap: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap } + + internal func get_PixelWidthImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelWidth(pThis, &value)) + } + return value + } + + internal func get_PixelHeightImpl() throws -> Int32 { + var value: INT32 = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelHeight(pThis, &value)) + } + return value + } + + internal func RenderAsyncImpl(_ element: WinUI.UIElement?) throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RenderAsync(pThis, RawPointer(element), &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + internal func RenderToSizeAsyncImpl(_ element: WinUI.UIElement?, _ scaledWidth: Int32, _ scaledHeight: Int32) throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RenderToSizeAsync(pThis, RawPointer(element), scaledWidth, scaledHeight, &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + internal func GetPixelsAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetPixelsAsync(pThis, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.unwrapFrom(abi: operation) + } + + } + + public class IRenderTargetBitmapStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmapStatics } + + internal func get_PixelWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmapStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_PixelHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmapStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class ISoftwareBitmapSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISoftwareBitmapSource } + + internal func SetBitmapAsyncImpl(_ softwareBitmap: UWP.SoftwareBitmap?) throws -> WindowsFoundation.AnyIAsyncAction? { + let (operation) = try ComPtrs.initialize { operationAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISoftwareBitmapSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetBitmapAsync(pThis, RawPointer(softwareBitmap), &operationAbi)) + } + } + return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation) + } + + } + + public class ISurfaceImageSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSource } + + } + + public class ISurfaceImageSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSourceFactory } + + internal func CreateInstanceWithDimensionsImpl(_ pixelWidth: Int32, _ pixelHeight: Int32, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISurfaceImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDimensions(pThis, pixelWidth, pixelHeight, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISurfaceImageSource(value!) + } + + internal func CreateInstanceWithDimensionsAndOpacityImpl(_ pixelWidth: Int32, _ pixelHeight: Int32, _ isOpaque: Bool, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISurfaceImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDimensionsAndOpacity(pThis, pixelWidth, pixelHeight, .init(from: isOpaque), _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISurfaceImageSource(value!) + } + + } + + public class ISvgImageSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource } + + internal func get_UriSourceImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSource(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_UriSourceImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_UriSource(pThis, RawPointer(value))) + } + } + + internal func get_RasterizePixelWidthImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizePixelWidth(pThis, &value)) + } + return value + } + + internal func put_RasterizePixelWidthImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RasterizePixelWidth(pThis, value)) + } + } + + internal func get_RasterizePixelHeightImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizePixelHeight(pThis, &value)) + } + return value + } + + internal func put_RasterizePixelHeightImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RasterizePixelHeight(pThis, value)) + } + } + + internal func add_OpenedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_Opened(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_Opened(pThis, token)) + } + } + + internal func add_OpenFailedImpl(_ handler: TypedEventHandler?) throws -> EventRegistrationToken { + var token: EventRegistrationToken = .init() + let handlerWrapper = WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_OpenFailed(pThis, _handler, &token)) + } + return token + } + + internal func remove_OpenFailedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_OpenFailed(pThis, token)) + } + } + + internal func SetSourceAsyncImpl(_ streamSource: UWP.AnyIRandomAccessStream?) throws -> WindowsFoundation.AnyIAsyncOperation? { + let (operation) = try ComPtrs.initialize { operationAbi in + let streamSourceWrapper = __ABI_Windows_Storage_Streams.IRandomAccessStreamWrapper(streamSource) + let _streamSource = try! streamSourceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetSourceAsync(pThis, _streamSource, &operationAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.unwrapFrom(abi: operation) + } + + } + + public class ISvgImageSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISvgImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISvgImageSource(value!) + } + + internal func CreateInstanceWithUriSourceImpl(_ uriSource: WindowsFoundation.Uri?, _ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ISvgImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithUriSource(pThis, RawPointer(uriSource), _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ISvgImageSource(value!) + } + + } + + public class ISvgImageSourceFailedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFailedEventArgs } + + internal func get_StatusImpl() throws -> WinUI.SvgImageSourceLoadStatus { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Status(pThis, &value)) + } + return value + } + + } + + public class ISvgImageSourceOpenedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceOpenedEventArgs } + + } + + public class ISvgImageSourceStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceStatics } + + internal func get_UriSourcePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_UriSourceProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RasterizePixelWidthPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizePixelWidthProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RasterizePixelHeightPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RasterizePixelHeightProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IVirtualSurfaceImageSource: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSource } + + } + + public class IVirtualSurfaceImageSourceFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSourceFactory } + + internal func CreateInstanceWithDimensionsImpl(_ pixelWidth: Int32, _ pixelHeight: Int32) throws -> IVirtualSurfaceImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDimensions(pThis, pixelWidth, pixelHeight, &valueAbi)) + } + } + return IVirtualSurfaceImageSource(value!) + } + + internal func CreateInstanceWithDimensionsAndOpacityImpl(_ pixelWidth: Int32, _ pixelHeight: Int32, _ isOpaque: Bool) throws -> IVirtualSurfaceImageSource { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSourceFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDimensionsAndOpacity(pThis, pixelWidth, pixelHeight, .init(from: isOpaque), &valueAbi)) + } + } + return IVirtualSurfaceImageSource(value!) + } + + } + + public class IWriteableBitmap: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmap } + + internal func get_PixelBufferImpl() throws -> UWP.AnyIBuffer? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_PixelBuffer(pThis, &valueAbi)) + } + } + return __ABI_Windows_Storage_Streams.IBufferWrapper.unwrapFrom(abi: value) + } + + internal func InvalidateImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmap.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invalidate(pThis)) + } + } + + } + + public class IWriteableBitmapFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmapFactory } + + internal func CreateInstanceWithDimensionsImpl(_ pixelWidth: Int32, _ pixelHeight: Int32) throws -> IWriteableBitmap { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmapFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstanceWithDimensions(pThis, pixelWidth, pixelHeight, &valueAbi)) + } + } + return IWriteableBitmap(value!) + } + + } + + public class IXamlRenderingBackgroundTask: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTask } + + } + + public class IXamlRenderingBackgroundTaskFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IXamlRenderingBackgroundTask { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IXamlRenderingBackgroundTask(value!) + } + + } + + public class IXamlRenderingBackgroundTaskOverrides: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverrides } + + internal func OnRunImpl(_ taskInstance: UWP.AnyIBackgroundTaskInstance?) throws { + let taskInstanceWrapper = __ABI_Windows_ApplicationModel_Background.IBackgroundTaskInstanceWrapper(taskInstance) + let _taskInstance = try! taskInstanceWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverrides.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.OnRun(pThis, _taskInstance)) + } + } + + } + + internal typealias IXamlRenderingBackgroundTaskOverridesWrapper = UnsealedWinRTClassWrapper + internal static var IXamlRenderingBackgroundTaskOverridesVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverridesVtbl = .init( + QueryInterface: { IXamlRenderingBackgroundTaskOverridesWrapper.queryInterface($0, $1, $2) }, + AddRef: { IXamlRenderingBackgroundTaskOverridesWrapper.addRef($0) }, + Release: { IXamlRenderingBackgroundTaskOverridesWrapper.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_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverridesWrapper.IID + $1!.pointee = 3 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + guard let instance = IXamlRenderingBackgroundTaskOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let hstring = instance.GetRuntimeClassName().detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + OnRun: { + do { + guard let __unwrapped__instance = IXamlRenderingBackgroundTaskOverridesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let taskInstance: UWP.AnyIBackgroundTaskInstance? = __ABI_Windows_ApplicationModel_Background.IBackgroundTaskInstanceWrapper.unwrapFrom(abi: ComPtr($1)) + try __unwrapped__instance.onRun(taskInstance) + return S_OK + } catch { return failWith(err: E_FAIL) } + } + ) +} +extension ComposableImpl where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverrides { + public static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverridesVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +// MARK - DownloadProgressEventHandler +extension __ABI_Microsoft_UI_Xaml_Media_Imaging { + public class DownloadProgressEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.DownloadProgressEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias DownloadProgressEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Media_Imaging.DownloadProgressEventHandlerBridge> + internal static var DownloadProgressEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandlerVtbl = .init( + QueryInterface: { DownloadProgressEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { DownloadProgressEventHandlerWrapper.addRef($0) }, + Release: { DownloadProgressEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = DownloadProgressEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.DownloadProgressEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Media_Imaging.DownloadProgressEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+Impl.swift new file mode 100644 index 0000000..a5c3c7e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging+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_Xaml_Media_Imaging { + public class DownloadProgressEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = DownloadProgressEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.DownloadProgressEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging.swift new file mode 100644 index 0000000..7a1631a --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Imaging.swift @@ -0,0 +1,875 @@ +// 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.xaml.media.imaging.bitmapcreateoptions) +public typealias BitmapCreateOptions = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CBitmapCreateOptions +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.decodepixeltype) +public typealias DecodePixelType = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CDecodePixelType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesourceloadstatus) +public typealias SvgImageSourceLoadStatus = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage) +public final class BitmapImage : WinUI.BitmapSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapImage + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapImage + 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_CXaml_CMedia_CImaging_CIBitmapImage>?) -> BitmapImage? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Imaging.BitmapImage"))) + } + + private static let _IBitmapImageFactory: __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapImageFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.BitmapImage")) + public init(_ uriSource: WindowsFoundation.Uri!) { + super.init(fromAbi: try! Self._IBitmapImageFactory.CreateInstanceWithUriSourceImpl(uriSource)) + } + + private static let _IBitmapImageStatics: __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapImageStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.BitmapImage")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.autoplayproperty) + public static var autoPlayProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_AutoPlayPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.createoptionsproperty) + public static var createOptionsProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_CreateOptionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixelheightproperty) + public static var decodePixelHeightProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_DecodePixelHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixeltypeproperty) + public static var decodePixelTypeProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_DecodePixelTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixelwidthproperty) + public static var decodePixelWidthProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_DecodePixelWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.isanimatedbitmapproperty) + public static var isAnimatedBitmapProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_IsAnimatedBitmapPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.isplayingproperty) + public static var isPlayingProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_IsPlayingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.urisourceproperty) + public static var uriSourceProperty : WinUI.DependencyProperty! { + get { try! _IBitmapImageStatics.get_UriSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.play) + public func play() throws { + try _default.PlayImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.stop) + public func stop() throws { + try _default.StopImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.autoplay) + public var autoPlay : Bool { + get { try! _default.get_AutoPlayImpl() } + set { try! _default.put_AutoPlayImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.createoptions) + public var createOptions : BitmapCreateOptions { + get { try! _default.get_CreateOptionsImpl() } + set { try! _default.put_CreateOptionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixelheight) + public var decodePixelHeight : Int32 { + get { try! _default.get_DecodePixelHeightImpl() } + set { try! _default.put_DecodePixelHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixeltype) + public var decodePixelType : DecodePixelType { + get { try! _default.get_DecodePixelTypeImpl() } + set { try! _default.put_DecodePixelTypeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.decodepixelwidth) + public var decodePixelWidth : Int32 { + get { try! _default.get_DecodePixelWidthImpl() } + set { try! _default.put_DecodePixelWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.isanimatedbitmap) + public var isAnimatedBitmap : Bool { + get { try! _default.get_IsAnimatedBitmapImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.isplaying) + public var isPlaying : Bool { + get { try! _default.get_IsPlayingImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.urisource) + public var uriSource : WindowsFoundation.Uri! { + get { try! _default.get_UriSourceImpl() } + set { try! _default.put_UriSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.downloadprogress) + public lazy var downloadProgress : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DownloadProgressImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DownloadProgressImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.imagefailed) + public lazy var imageFailed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ImageFailedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ImageFailedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage.imageopened) + public lazy var imageOpened : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ImageOpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ImageOpenedImpl($0) + } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource) +open class BitmapSource : WinUI.ImageSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource + 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_CXaml_CMedia_CImaging_CIBitmapSource>?) -> BitmapSource? { + 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 _IBitmapSourceFactory : __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.BitmapSource")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBitmapSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IBitmapSourceStatics: __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.BitmapSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.pixelheightproperty) + public class var pixelHeightProperty : WinUI.DependencyProperty! { + get { try! _IBitmapSourceStatics.get_PixelHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.pixelwidthproperty) + public class var pixelWidthProperty : WinUI.DependencyProperty! { + get { try! _IBitmapSourceStatics.get_PixelWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.setsource) + public func setSource(_ streamSource: UWP.AnyIRandomAccessStream!) throws { + try _default.SetSourceImpl(streamSource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.setsourceasync) + public func setSourceAsync(_ streamSource: UWP.AnyIRandomAccessStream!) throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.SetSourceAsyncImpl(streamSource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.pixelheight) + public var pixelHeight : Int32 { + get { try! _default.get_PixelHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.pixelwidth) + public var pixelWidth : Int32 { + get { try! _default.get_PixelWidthImpl() } + } + + internal enum IBitmapSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BitmapSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIBitmapSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IBitmapSource + } + } + internal typealias Composable = IBitmapSource + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.downloadprogresseventargs) +public final class DownloadProgressEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IDownloadProgressEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs + 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_CXaml_CMedia_CImaging_CIDownloadProgressEventArgs>?) -> DownloadProgressEventArgs? { + 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.xaml.media.imaging.downloadprogresseventargs.progress) + public var progress : Int32 { + get { try! _default.get_ProgressImpl() } + set { try! _default.put_ProgressImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap) +public final class RenderTargetBitmap : WinUI.ImageSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IRenderTargetBitmap + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIRenderTargetBitmap + 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_CXaml_CMedia_CImaging_CIRenderTargetBitmap>?) -> RenderTargetBitmap? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Imaging.RenderTargetBitmap"))) + } + + private static let _IRenderTargetBitmapStatics: __ABI_Microsoft_UI_Xaml_Media_Imaging.IRenderTargetBitmapStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.RenderTargetBitmap")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.pixelheightproperty) + public static var pixelHeightProperty : WinUI.DependencyProperty! { + get { try! _IRenderTargetBitmapStatics.get_PixelHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.pixelwidthproperty) + public static var pixelWidthProperty : WinUI.DependencyProperty! { + get { try! _IRenderTargetBitmapStatics.get_PixelWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.renderasync) + public func renderAsync(_ element: WinUI.UIElement!) throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.RenderAsyncImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.renderasync) + public func renderAsync(_ element: WinUI.UIElement!, _ scaledWidth: Int32, _ scaledHeight: Int32) throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.RenderToSizeAsyncImpl(element, scaledWidth, scaledHeight) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.getpixelsasync) + public func getPixelsAsync() throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.GetPixelsAsyncImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.pixelheight) + public var pixelHeight : Int32 { + get { try! _default.get_PixelHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.rendertargetbitmap.pixelwidth) + public var pixelWidth : Int32 { + get { try! _default.get_PixelWidthImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.softwarebitmapsource) +public final class SoftwareBitmapSource : WinUI.ImageSource, WindowsFoundation.IClosable { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISoftwareBitmapSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISoftwareBitmapSource + 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_CXaml_CMedia_CImaging_CISoftwareBitmapSource>?) -> SoftwareBitmapSource? { + 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) + } + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.Imaging.SoftwareBitmapSource"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.softwarebitmapsource.setbitmapasync) + public func setBitmapAsync(_ softwareBitmap: UWP.SoftwareBitmap!) throws -> WindowsFoundation.AnyIAsyncAction! { + try _default.SetBitmapAsyncImpl(softwareBitmap) + } + + private lazy var _IClosable: __ABI_Windows_Foundation.IClosable! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.softwarebitmapsource.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.xaml.media.imaging.surfaceimagesource) +open class SurfaceImageSource : WinUI.ImageSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISurfaceImageSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSource + 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_CXaml_CMedia_CImaging_CISurfaceImageSource>?) -> SurfaceImageSource? { + 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 _ISurfaceImageSourceFactory : __ABI_Microsoft_UI_Xaml_Media_Imaging.ISurfaceImageSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.SurfaceImageSource")) + + public init(_ pixelWidth: Int32, _ pixelHeight: Int32) { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISurfaceImageSourceFactory.CreateInstanceWithDimensionsImpl(pixelWidth, pixelHeight, baseInterface, &innerInterface) + } + } + + public init(_ pixelWidth: Int32, _ pixelHeight: Int32, _ isOpaque: Bool) { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISurfaceImageSourceFactory.CreateInstanceWithDimensionsAndOpacityImpl(pixelWidth, pixelHeight, isOpaque, baseInterface, &innerInterface) + } + } + + internal enum ISurfaceImageSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = SurfaceImageSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISurfaceImageSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISurfaceImageSource + } + } + internal typealias Composable = ISurfaceImageSource + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource) +open class SvgImageSource : WinUI.ImageSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource + 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_CXaml_CMedia_CImaging_CISvgImageSource>?) -> SvgImageSource? { + 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 _ISvgImageSourceFactory : __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.SvgImageSource")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISvgImageSourceFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + public init(_ uriSource: WindowsFoundation.Uri!) { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISvgImageSourceFactory.CreateInstanceWithUriSourceImpl(uriSource, baseInterface, &innerInterface) + } + } + + private static let _ISvgImageSourceStatics: __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSourceStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.SvgImageSource")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.rasterizepixelheightproperty) + public class var rasterizePixelHeightProperty : WinUI.DependencyProperty! { + get { try! _ISvgImageSourceStatics.get_RasterizePixelHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.rasterizepixelwidthproperty) + public class var rasterizePixelWidthProperty : WinUI.DependencyProperty! { + get { try! _ISvgImageSourceStatics.get_RasterizePixelWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.urisourceproperty) + public class var uriSourceProperty : WinUI.DependencyProperty! { + get { try! _ISvgImageSourceStatics.get_UriSourcePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.setsourceasync) + public func setSourceAsync(_ streamSource: UWP.AnyIRandomAccessStream!) throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.SetSourceAsyncImpl(streamSource) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.rasterizepixelheight) + public var rasterizePixelHeight : Double { + get { try! _default.get_RasterizePixelHeightImpl() } + set { try! _default.put_RasterizePixelHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.rasterizepixelwidth) + public var rasterizePixelWidth : Double { + get { try! _default.get_RasterizePixelWidthImpl() } + set { try! _default.put_RasterizePixelWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.urisource) + public var uriSource : WindowsFoundation.Uri! { + get { try! _default.get_UriSourceImpl() } + set { try! _default.put_UriSourceImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.openfailed) + public lazy var openFailed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenFailedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenFailedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesource.opened) + public lazy var opened : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_OpenedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_OpenedImpl($0) + } + ) + }() + + internal enum ISvgImageSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = SvgImageSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSource + } + } + internal typealias Composable = ISvgImageSource + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesourcefailedeventargs) +public final class SvgImageSourceFailedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSourceFailedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceFailedEventArgs + 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_CXaml_CMedia_CImaging_CISvgImageSourceFailedEventArgs>?) -> SvgImageSourceFailedEventArgs? { + 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.xaml.media.imaging.svgimagesourcefailedeventargs.status) + public var status : SvgImageSourceLoadStatus { + get { try! _default.get_StatusImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.svgimagesourceopenedeventargs) +public final class SvgImageSourceOpenedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.ISvgImageSourceOpenedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CISvgImageSourceOpenedEventArgs + 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_CXaml_CMedia_CImaging_CISvgImageSourceOpenedEventArgs>?) -> SvgImageSourceOpenedEventArgs? { + 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.xaml.media.imaging.virtualsurfaceimagesource) +public final class VirtualSurfaceImageSource : WinUI.SurfaceImageSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IVirtualSurfaceImageSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSource + 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_CXaml_CMedia_CImaging_CIVirtualSurfaceImageSource>?) -> VirtualSurfaceImageSource? { + 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 _IVirtualSurfaceImageSourceFactory: __ABI_Microsoft_UI_Xaml_Media_Imaging.IVirtualSurfaceImageSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.VirtualSurfaceImageSource")) + override public init(_ pixelWidth: Int32, _ pixelHeight: Int32) { + super.init(fromAbi: try! Self._IVirtualSurfaceImageSourceFactory.CreateInstanceWithDimensionsImpl(pixelWidth, pixelHeight)) + } + + override public init(_ pixelWidth: Int32, _ pixelHeight: Int32, _ isOpaque: Bool) { + super.init(fromAbi: try! Self._IVirtualSurfaceImageSourceFactory.CreateInstanceWithDimensionsAndOpacityImpl(pixelWidth, pixelHeight, isOpaque)) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.writeablebitmap) +public final class WriteableBitmap : WinUI.BitmapSource { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IWriteableBitmap + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIWriteableBitmap + 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_CXaml_CMedia_CImaging_CIWriteableBitmap>?) -> WriteableBitmap? { + 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 _IWriteableBitmapFactory: __ABI_Microsoft_UI_Xaml_Media_Imaging.IWriteableBitmapFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.WriteableBitmap")) + public init(_ pixelWidth: Int32, _ pixelHeight: Int32) { + super.init(fromAbi: try! Self._IWriteableBitmapFactory.CreateInstanceWithDimensionsImpl(pixelWidth, pixelHeight)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.writeablebitmap.invalidate) + public func invalidate() throws { + try _default.InvalidateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.writeablebitmap.pixelbuffer) + public var pixelBuffer : UWP.AnyIBuffer! { + get { try! _default.get_PixelBufferImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.xamlrenderingbackgroundtask) +open class XamlRenderingBackgroundTask : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTask + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTask + 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_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTask>?) -> XamlRenderingBackgroundTask? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IXamlRenderingBackgroundTaskFactory : __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Imaging.XamlRenderingBackgroundTask")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IXamlRenderingBackgroundTaskFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private lazy var _IXamlRenderingBackgroundTaskOverrides: __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.xamlrenderingbackgroundtask.onrun) + open func onRun(_ taskInstance: UWP.AnyIBackgroundTaskInstance!) throws { + try _IXamlRenderingBackgroundTaskOverrides.OnRunImpl(taskInstance) + } + + internal enum IXamlRenderingBackgroundTaskOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTaskOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTaskOverrides + internal typealias Class = XamlRenderingBackgroundTask + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CIXamlRenderingBackgroundTask + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Imaging.IXamlRenderingBackgroundTask + } + } + internal typealias Composable = IXamlRenderingBackgroundTaskOverrides + deinit { + _default = nil + _IXamlRenderingBackgroundTaskOverrides = nil + } +} + +public typealias DownloadProgressEventHandler = (Any?, DownloadProgressEventArgs?) -> () +extension WinUI.BitmapCreateOptions { + public static var none : WinUI.BitmapCreateOptions { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CBitmapCreateOptions_None + } + public static var ignoreImageCache : WinUI.BitmapCreateOptions { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CBitmapCreateOptions_IgnoreImageCache + } +} +extension WinUI.BitmapCreateOptions: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.DecodePixelType { + public static var physical : WinUI.DecodePixelType { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CDecodePixelType_Physical + } + public static var logical : WinUI.DecodePixelType { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CDecodePixelType_Logical + } +} +extension WinUI.DecodePixelType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.SvgImageSourceLoadStatus { + public static var success : WinUI.SvgImageSourceLoadStatus { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus_Success + } + public static var networkError : WinUI.SvgImageSourceLoadStatus { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus_NetworkError + } + public static var invalidFormat : WinUI.SvgImageSourceLoadStatus { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus_InvalidFormat + } + public static var other : WinUI.SvgImageSourceLoadStatus { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus_Other + } +} +extension WinUI.SvgImageSourceLoadStatus: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+ABI.swift new file mode 100644 index 0000000..e8e7baf --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+ABI.swift @@ -0,0 +1,39 @@ +// 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_CXaml_CMedia_CMedia3D_CITransform3D: WindowsFoundation.IID { + .init(Data1: 0xAFEA4941, Data2: 0x2E49, Data3: 0x533C, Data4: ( 0x9F,0x8F,0x2C,0x12,0x6E,0xF9,0x89,0x3A ))// AFEA4941-2E49-533C-9F8F-2C126EF9893A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3DFactory: WindowsFoundation.IID { + .init(Data1: 0x9BCCE0A1, Data2: 0x10AC, Data3: 0x5319, Data4: ( 0xBD,0xF1,0x54,0x8D,0x2E,0x5A,0xE5,0x04 ))// 9BCCE0A1-10AC-5319-BDF1-548D2E5AE504 +} + +public enum __ABI_Microsoft_UI_Xaml_Media_Media3D { + public class ITransform3D: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3D } + + } + + public class ITransform3DFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3DFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> ITransform3D { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3DFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return ITransform3D(value!) + } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+Impl.swift new file mode 100644 index 0000000..13649cb --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D+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_Xaml_Media_Media3D { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D.swift new file mode 100644 index 0000000..b6fa08e --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.Media3D.swift @@ -0,0 +1,64 @@ +// 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.xaml.media.media3d.transform3d) +open class Transform3D : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Media3D.ITransform3D + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3D + 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_CXaml_CMedia_CMedia3D_CITransform3D>?) -> Transform3D? { + 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 _ITransform3DFactory : __ABI_Microsoft_UI_Xaml_Media_Media3D.ITransform3DFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Media3D.Transform3D")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ITransform3DFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum ITransform3D : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Transform3D + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CMedia3D_CITransform3D + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media_Media3D.ITransform3D + } + } + internal typealias Composable = ITransform3D + deinit { + _default = nil + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.swift new file mode 100644 index 0000000..4ed8f68 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Media.swift @@ -0,0 +1,2973 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brushmappingmode) +public typealias BrushMappingMode = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CBrushMappingMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.colorinterpolationmode) +public typealias ColorInterpolationMode = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CColorInterpolationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.elementcompositemode) +public typealias ElementCompositeMode = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.fastplayfallbackbehaviour) +public typealias FastPlayFallbackBehaviour = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFastPlayFallbackBehaviour +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.fillrule) +public typealias FillRule = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFillRule +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientspreadmethod) +public typealias GradientSpreadMethod = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CGradientSpreadMethod +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.penlinecap) +public typealias PenLineCap = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.penlinejoin) +public typealias PenLineJoin = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineJoin +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.stretch) +public typealias Stretch = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush) +open class AcrylicBrush : WinUI.XamlCompositionBrushBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush + 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_CXaml_CMedia_CIAcrylicBrush>?) -> AcrylicBrush? { + 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 _IAcrylicBrushFactory : __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.AcrylicBrush")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IAcrylicBrushFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IAcrylicBrushStatics: __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrushStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.AcrylicBrush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.alwaysusefallbackproperty) + public class var alwaysUseFallbackProperty : WinUI.DependencyProperty! { + get { try! _IAcrylicBrushStatics.get_AlwaysUseFallbackPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tintcolorproperty) + public class var tintColorProperty : WinUI.DependencyProperty! { + get { try! _IAcrylicBrushStatics.get_TintColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tintopacityproperty) + public class var tintOpacityProperty : WinUI.DependencyProperty! { + get { try! _IAcrylicBrushStatics.get_TintOpacityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tinttransitiondurationproperty) + public class var tintTransitionDurationProperty : WinUI.DependencyProperty! { + get { try! _IAcrylicBrushStatics.get_TintTransitionDurationPropertyImpl() } + } + + private static let _IAcrylicBrushStatics2: __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrushStatics2 = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.AcrylicBrush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tintluminosityopacityproperty) + public class var tintLuminosityOpacityProperty : WinUI.DependencyProperty! { + get { try! _IAcrylicBrushStatics2.get_TintLuminosityOpacityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.alwaysusefallback) + public var alwaysUseFallback : Bool { + get { try! _default.get_AlwaysUseFallbackImpl() } + set { try! _default.put_AlwaysUseFallbackImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.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.xaml.media.acrylicbrush.tintopacity) + public var tintOpacity : Double { + get { try! _default.get_TintOpacityImpl() } + set { try! _default.put_TintOpacityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tinttransitionduration) + public var tintTransitionDuration : WindowsFoundation.TimeSpan { + get { try! _default.get_TintTransitionDurationImpl() } + set { try! _default.put_TintTransitionDurationImpl(newValue) } + } + + private lazy var _IAcrylicBrush2: __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrush2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.acrylicbrush.tintluminosityopacity) + public var tintLuminosityOpacity : Double? { + get { try! _IAcrylicBrush2.get_TintLuminosityOpacityImpl() } + set { try! _IAcrylicBrush2.put_TintLuminosityOpacityImpl(newValue) } + } + + internal enum IXamlCompositionBrushBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverrides + internal typealias Class = AcrylicBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIAcrylicBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IAcrylicBrush + } + } + internal typealias Composable = IXamlCompositionBrushBaseOverrides + deinit { + _default = nil + _IAcrylicBrush2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush) +open class Brush : WinUI.DependencyObject, WinAppSDK.IAnimationObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush + 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_CXaml_CMedia_CIBrush>?) -> Brush? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media.IBrushOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media.IBrushOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IBrushFactory : __ABI_Microsoft_UI_Xaml_Media.IBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Brush")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IBrushFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IBrushStatics: __ABI_Microsoft_UI_Xaml_Media.IBrushStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Brush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.opacityproperty) + public class var opacityProperty : WinUI.DependencyProperty! { + get { try! _IBrushStatics.get_OpacityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.relativetransformproperty) + public class var relativeTransformProperty : WinUI.DependencyProperty! { + get { try! _IBrushStatics.get_RelativeTransformPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.transformproperty) + public class var transformProperty : WinUI.DependencyProperty! { + get { try! _IBrushStatics.get_TransformPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.opacity) + public var opacity : Double { + 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.xaml.media.brush.relativetransform) + public var relativeTransform : Transform! { + get { try! _default.get_RelativeTransformImpl() } + set { try! _default.put_RelativeTransformImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.transform) + public var transform : Transform! { + get { try! _default.get_TransformImpl() } + set { try! _default.put_TransformImpl(newValue) } + } + + private lazy var _IBrushOverrides: __ABI_Microsoft_UI_Xaml_Media.IBrushOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.brush.populatepropertyinfooverride) + open func populatePropertyInfoOverride(_ propertyName: String, _ animationPropertyInfo: WinAppSDK.AnimationPropertyInfo!) throws { + try _IBrushOverrides.PopulatePropertyInfoOverrideImpl(propertyName, animationPropertyInfo) + } + + internal enum IBrushOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrushOverrides + internal typealias Class = Brush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrush + } + } + internal typealias Composable = IBrushOverrides + 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.xaml.media.brush.populatepropertyinfo) + public func populatePropertyInfo(_ propertyName: String, _ propertyInfo: WinAppSDK.AnimationPropertyInfo!) throws { + try _IAnimationObject.PopulatePropertyInfoImpl(propertyName, propertyInfo) + } + + deinit { + _default = nil + _IBrushOverrides = nil + _IAnimationObject = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.cachemode) +open class CacheMode : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ICacheMode + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheMode + 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_CXaml_CMedia_CICacheMode>?) -> CacheMode? { + 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 _ICacheModeFactory : __ABI_Microsoft_UI_Xaml_Media.ICacheModeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.CacheMode")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ICacheModeFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum ICacheMode : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = CacheMode + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICacheMode + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ICacheMode + } + } + internal typealias Composable = ICacheMode + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform) +public final class CompositeTransform : WinUI.Transform { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ICompositeTransform + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform + 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_CXaml_CMedia_CICompositeTransform>?) -> CompositeTransform? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.CompositeTransform"))) + } + + private static let _ICompositeTransformStatics: __ABI_Microsoft_UI_Xaml_Media.ICompositeTransformStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.CompositeTransform")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.centerxproperty) + public static var centerXProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_CenterXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.centeryproperty) + public static var centerYProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_CenterYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.rotationproperty) + public static var rotationProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_RotationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.scalexproperty) + public static var scaleXProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_ScaleXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.scaleyproperty) + public static var scaleYProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_ScaleYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.skewxproperty) + public static var skewXProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_SkewXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.skewyproperty) + public static var skewYProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_SkewYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.translatexproperty) + public static var translateXProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_TranslateXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.translateyproperty) + public static var translateYProperty : WinUI.DependencyProperty! { + get { try! _ICompositeTransformStatics.get_TranslateYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.centerx) + public var centerX : Double { + get { try! _default.get_CenterXImpl() } + set { try! _default.put_CenterXImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.centery) + public var centerY : Double { + get { try! _default.get_CenterYImpl() } + set { try! _default.put_CenterYImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.rotation) + public var rotation : Double { + get { try! _default.get_RotationImpl() } + set { try! _default.put_RotationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.scalex) + public var scaleX : Double { + get { try! _default.get_ScaleXImpl() } + set { try! _default.put_ScaleXImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.scaley) + public var scaleY : Double { + get { try! _default.get_ScaleYImpl() } + set { try! _default.put_ScaleYImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.skewx) + public var skewX : Double { + get { try! _default.get_SkewXImpl() } + set { try! _default.put_SkewXImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.skewy) + public var skewY : Double { + get { try! _default.get_SkewYImpl() } + set { try! _default.put_SkewYImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.translatex) + public var translateX : Double { + get { try! _default.get_TranslateXImpl() } + set { try! _default.put_TranslateXImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositetransform.translatey) + public var translateY : Double { + get { try! _default.get_TranslateYImpl() } + set { try! _default.put_TranslateYImpl(newValue) } + } + + internal enum IGeneralTransformOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverrides + internal typealias Class = CompositeTransform + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositeTransform + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ICompositeTransform + } + } + internal typealias Composable = IGeneralTransformOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositiontarget) +public final class CompositionTarget : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ICompositionTarget + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CICompositionTarget + 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_CXaml_CMedia_CICompositionTarget>?) -> CompositionTarget? { + 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 _ICompositionTargetStatics: __ABI_Microsoft_UI_Xaml_Media.ICompositionTargetStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.CompositionTarget")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositiontarget.getcompositorforcurrentthread) + public static func getCompositorForCurrentThread() -> WinAppSDK.Compositor! { + return try! _ICompositionTargetStatics.GetCompositorForCurrentThreadImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositiontarget.rendered) + public static var rendered : Event> = { + .init( + add: { try! _ICompositionTargetStatics.add_RenderedImpl($0) }, + remove: { try? _ICompositionTargetStatics.remove_RenderedImpl($0) } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositiontarget.rendering) + public static var rendering : Event> = { + .init( + add: { try! _ICompositionTargetStatics.add_RenderingImpl($0) }, + remove: { try? _ICompositionTargetStatics.remove_RenderingImpl($0) } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.compositiontarget.surfacecontentslost) + public static var surfaceContentsLost : Event> = { + .init( + add: { try! _ICompositionTargetStatics.add_SurfaceContentsLostImpl($0) }, + remove: { try? _ICompositionTargetStatics.remove_SurfaceContentsLostImpl($0) } + ) + }() + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection) +public final class DoubleCollection : WinRTClass, IVector, IIterable { + public typealias T = Double + private typealias SwiftABI = WinUI.IVectorDouble + private typealias CABI = __x_ABI_C__FIVector_1_double + 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_double>?) -> DoubleCollection? { + 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.Xaml.Media.DoubleCollection"))) + } + + // 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.xaml.media.doublecollection.getat) + public func getAt(_ index: UInt32) -> Double { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.indexof) + public func indexOf(_ value: Double, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.setat) + public func setAt(_ index: UInt32, _ value: Double) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.insertat) + public func insertAt(_ index: UInt32, _ value: Double) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.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.xaml.media.doublecollection.append) + public func append(_ value: Double) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableDouble! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.doublecollection.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.xaml.media.fontfamily) +open class FontFamily : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IFontFamily + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamily + 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_CXaml_CMedia_CIFontFamily>?) -> FontFamily? { + 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 _IFontFamilyFactory : __ABI_Microsoft_UI_Xaml_Media.IFontFamilyFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.FontFamily")) + + public init(_ familyName: String) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IFontFamilyFactory.CreateInstanceWithNameImpl(familyName, baseInterface, &innerInterface) + } + } + + private static let _IFontFamilyStatics: __ABI_Microsoft_UI_Xaml_Media.IFontFamilyStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.FontFamily")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.fontfamily.xamlautofontfamily) + public class var xamlAutoFontFamily : FontFamily! { + get { try! _IFontFamilyStatics.get_XamlAutoFontFamilyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.fontfamily.source) + public var source : String { + get { try! _default.get_SourceImpl() } + } + + internal enum IFontFamily : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = FontFamily + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIFontFamily + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IFontFamily + } + } + internal typealias Composable = IFontFamily + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform) +open class GeneralTransform : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransform + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform + 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_CXaml_CMedia_CIGeneralTransform>?) -> GeneralTransform? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IGeneralTransformFactory : __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.GeneralTransform")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IGeneralTransformFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.transformpoint) + public func transformPoint(_ point: WindowsFoundation.Point) throws -> WindowsFoundation.Point { + try _default.TransformPointImpl(point) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.trytransform) + public 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.xaml.media.generaltransform.transformbounds) + public func transformBounds(_ rect: WindowsFoundation.Rect) throws -> WindowsFoundation.Rect { + try _default.TransformBoundsImpl(rect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.inverse) + public var inverse : GeneralTransform! { + get { try! _default.get_InverseImpl() } + } + + private lazy var _IGeneralTransformOverrides: __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.trytransformcore) + open func tryTransformCore(_ inPoint: WindowsFoundation.Point, _ outPoint: inout WindowsFoundation.Point) throws -> Bool { + try _IGeneralTransformOverrides.TryTransformCoreImpl(inPoint, &outPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.transformboundscore) + open func transformBoundsCore(_ rect: WindowsFoundation.Rect) throws -> WindowsFoundation.Rect { + try _IGeneralTransformOverrides.TransformBoundsCoreImpl(rect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.generaltransform.inversecore) + open var inverseCore : GeneralTransform! { + get { try! _IGeneralTransformOverrides.get_InverseCoreImpl() } + } + + internal enum IGeneralTransformOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverrides + internal typealias Class = GeneralTransform + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransform + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransform + } + } + internal typealias Composable = IGeneralTransformOverrides + deinit { + _default = nil + _IGeneralTransformOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry) +open class Geometry : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry + 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_CXaml_CMedia_CIGeometry>?) -> Geometry? { + 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 _IGeometryFactory : __ABI_Microsoft_UI_Xaml_Media.IGeometryFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Geometry")) + + private static let _IGeometryStatics: __ABI_Microsoft_UI_Xaml_Media.IGeometryStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Geometry")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry.empty) + public class var empty : Geometry! { + get { try! _IGeometryStatics.get_EmptyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry.standardflatteningtolerance) + public class var standardFlatteningTolerance : Double { + get { try! _IGeometryStatics.get_StandardFlatteningToleranceImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry.transformproperty) + public class var transformProperty : WinUI.DependencyProperty! { + get { try! _IGeometryStatics.get_TransformPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry.bounds) + public var bounds : WindowsFoundation.Rect { + get { try! _default.get_BoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.geometry.transform) + public var transform : Transform! { + get { try! _default.get_TransformImpl() } + set { try! _default.put_TransformImpl(newValue) } + } + + internal enum IGeometry : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Geometry + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeometry + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeometry + } + } + internal typealias Composable = IGeometry + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush) +open class GradientBrush : WinUI.Brush { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGradientBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush + 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_CXaml_CMedia_CIGradientBrush>?) -> GradientBrush? { + 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 _IGradientBrushFactory : __ABI_Microsoft_UI_Xaml_Media.IGradientBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.GradientBrush")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IGradientBrushFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IGradientBrushStatics: __ABI_Microsoft_UI_Xaml_Media.IGradientBrushStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.GradientBrush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.colorinterpolationmodeproperty) + public class var colorInterpolationModeProperty : WinUI.DependencyProperty! { + get { try! _IGradientBrushStatics.get_ColorInterpolationModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.gradientstopsproperty) + public class var gradientStopsProperty : WinUI.DependencyProperty! { + get { try! _IGradientBrushStatics.get_GradientStopsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.mappingmodeproperty) + public class var mappingModeProperty : WinUI.DependencyProperty! { + get { try! _IGradientBrushStatics.get_MappingModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.spreadmethodproperty) + public class var spreadMethodProperty : WinUI.DependencyProperty! { + get { try! _IGradientBrushStatics.get_SpreadMethodPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.colorinterpolationmode) + public var colorInterpolationMode : ColorInterpolationMode { + get { try! _default.get_ColorInterpolationModeImpl() } + set { try! _default.put_ColorInterpolationModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.gradientstops) + public var gradientStops : GradientStopCollection! { + get { try! _default.get_GradientStopsImpl() } + set { try! _default.put_GradientStopsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.mappingmode) + public var mappingMode : BrushMappingMode { + get { try! _default.get_MappingModeImpl() } + set { try! _default.put_MappingModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientbrush.spreadmethod) + public var spreadMethod : GradientSpreadMethod { + get { try! _default.get_SpreadMethodImpl() } + set { try! _default.put_SpreadMethodImpl(newValue) } + } + + internal enum IBrushOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrushOverrides + internal typealias Class = GradientBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGradientBrush + } + } + internal typealias Composable = IBrushOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstop) +public final class GradientStop : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGradientStop + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGradientStop + 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_CXaml_CMedia_CIGradientStop>?) -> GradientStop? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.GradientStop"))) + } + + private static let _IGradientStopStatics: __ABI_Microsoft_UI_Xaml_Media.IGradientStopStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.GradientStop")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstop.colorproperty) + public static var colorProperty : WinUI.DependencyProperty! { + get { try! _IGradientStopStatics.get_ColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstop.offsetproperty) + public static var offsetProperty : WinUI.DependencyProperty! { + get { try! _IGradientStopStatics.get_OffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstop.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.xaml.media.gradientstop.offset) + public var offset : Double { + 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.xaml.media.gradientstopcollection) +public final class GradientStopCollection : WinRTClass, IVector, IIterable { + public typealias T = GradientStop? + private typealias SwiftABI = WinUI.IVectorGradientStop + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop + 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__CXaml__CMedia__CGradientStop>?) -> GradientStopCollection? { + 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.Xaml.Media.GradientStopCollection"))) + } + + // 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.xaml.media.gradientstopcollection.getat) + public func getAt(_ index: UInt32) -> GradientStop? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.indexof) + public func indexOf(_ value: GradientStop?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.setat) + public func setAt(_ index: UInt32, _ value: GradientStop?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.insertat) + public func insertAt(_ index: UInt32, _ value: GradientStop?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.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.xaml.media.gradientstopcollection.append) + public func append(_ value: GradientStop?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableGradientStop! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.gradientstopcollection.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.xaml.media.imagesource) +open class ImageSource : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IImageSource + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSource + 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_CXaml_CMedia_CIImageSource>?) -> ImageSource? { + 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 _IImageSourceFactory : __ABI_Microsoft_UI_Xaml_Media.IImageSourceFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.ImageSource")) + + internal enum IImageSource : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ImageSource + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIImageSource + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IImageSource + } + } + internal typealias Composable = IImageSource + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.linesegment) +public final class LineSegment : WinUI.PathSegment { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ILineSegment + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILineSegment + 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_CXaml_CMedia_CILineSegment>?) -> LineSegment? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.LineSegment"))) + } + + private static let _ILineSegmentStatics: __ABI_Microsoft_UI_Xaml_Media.ILineSegmentStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.LineSegment")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.linesegment.pointproperty) + public static var pointProperty : WinUI.DependencyProperty! { + get { try! _ILineSegmentStatics.get_PointPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.linesegment.point) + public var point : WindowsFoundation.Point { + get { try! _default.get_PointImpl() } + set { try! _default.put_PointImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.lineargradientbrush) +public final class LinearGradientBrush : WinUI.GradientBrush { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ILinearGradientBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush + 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_CXaml_CMedia_CILinearGradientBrush>?) -> LinearGradientBrush? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.LinearGradientBrush"))) + } + + private static let _ILinearGradientBrushFactory: __ABI_Microsoft_UI_Xaml_Media.ILinearGradientBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.LinearGradientBrush")) + public init(_ gradientStopCollection: GradientStopCollection!, _ angle: Double) { + super.init(fromAbi: try! Self._ILinearGradientBrushFactory.CreateInstanceWithGradientStopCollectionAndAngleImpl(gradientStopCollection, angle)) + } + + private static let _ILinearGradientBrushStatics: __ABI_Microsoft_UI_Xaml_Media.ILinearGradientBrushStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.LinearGradientBrush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.lineargradientbrush.endpointproperty) + public static var endPointProperty : WinUI.DependencyProperty! { + get { try! _ILinearGradientBrushStatics.get_EndPointPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.lineargradientbrush.startpointproperty) + public static var startPointProperty : WinUI.DependencyProperty! { + get { try! _ILinearGradientBrushStatics.get_StartPointPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.lineargradientbrush.endpoint) + public var endPoint : WindowsFoundation.Point { + 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.xaml.media.lineargradientbrush.startpoint) + public var startPoint : WindowsFoundation.Point { + get { try! _default.get_StartPointImpl() } + set { try! _default.put_StartPointImpl(newValue) } + } + + internal enum IBrushOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrushOverrides + internal typealias Class = LinearGradientBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CILinearGradientBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ILinearGradientBrush + } + } + internal typealias Composable = IBrushOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.mediatransportcontrolsthumbnailrequestedeventargs) +public final class MediaTransportControlsThumbnailRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IMediaTransportControlsThumbnailRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs + 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_CXaml_CMedia_CIMediaTransportControlsThumbnailRequestedEventArgs>?) -> MediaTransportControlsThumbnailRequestedEventArgs? { + 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.xaml.media.mediatransportcontrolsthumbnailrequestedeventargs.setthumbnailimage) + public func setThumbnailImage(_ source: UWP.AnyIInputStream!) throws { + try _default.SetThumbnailImageImpl(source) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.mediatransportcontrolsthumbnailrequestedeventargs.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.xaml.media.micabackdrop) +open class MicaBackdrop : WinUI.SystemBackdrop { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IMicaBackdrop + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdrop + 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_CXaml_CMedia_CIMicaBackdrop>?) -> MicaBackdrop? { + 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 _IMicaBackdropFactory : __ABI_Microsoft_UI_Xaml_Media.IMicaBackdropFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.MicaBackdrop")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IMicaBackdropFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IMicaBackdropStatics: __ABI_Microsoft_UI_Xaml_Media.IMicaBackdropStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.MicaBackdrop")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.micabackdrop.kindproperty) + public class var kindProperty : WinUI.DependencyProperty! { + get { try! _IMicaBackdropStatics.get_KindPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.micabackdrop.kind) + public var kind : WinAppSDK.MicaKind { + get { try! _default.get_KindImpl() } + set { try! _default.put_KindImpl(newValue) } + } + + internal enum ISystemBackdropOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverrides + internal typealias Class = MicaBackdrop + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIMicaBackdrop + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IMicaBackdrop + } + } + internal typealias Composable = ISystemBackdropOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure) +public final class PathFigure : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IPathFigure + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathFigure + 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_CXaml_CMedia_CIPathFigure>?) -> PathFigure? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.PathFigure"))) + } + + private static let _IPathFigureStatics: __ABI_Microsoft_UI_Xaml_Media.IPathFigureStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.PathFigure")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.isclosedproperty) + public static var isClosedProperty : WinUI.DependencyProperty! { + get { try! _IPathFigureStatics.get_IsClosedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.isfilledproperty) + public static var isFilledProperty : WinUI.DependencyProperty! { + get { try! _IPathFigureStatics.get_IsFilledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.segmentsproperty) + public static var segmentsProperty : WinUI.DependencyProperty! { + get { try! _IPathFigureStatics.get_SegmentsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.startpointproperty) + public static var startPointProperty : WinUI.DependencyProperty! { + get { try! _IPathFigureStatics.get_StartPointPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.isclosed) + public var isClosed : Bool { + get { try! _default.get_IsClosedImpl() } + set { try! _default.put_IsClosedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.isfilled) + public var isFilled : Bool { + get { try! _default.get_IsFilledImpl() } + set { try! _default.put_IsFilledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.segments) + public var segments : PathSegmentCollection! { + get { try! _default.get_SegmentsImpl() } + set { try! _default.put_SegmentsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigure.startpoint) + public var startPoint : WindowsFoundation.Point { + 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.xaml.media.pathfigurecollection) +public final class PathFigureCollection : WinRTClass, IVector, IIterable { + public typealias T = PathFigure? + private typealias SwiftABI = WinUI.IVectorPathFigure + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure + 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__CXaml__CMedia__CPathFigure>?) -> PathFigureCollection? { + 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.Xaml.Media.PathFigureCollection"))) + } + + // 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.xaml.media.pathfigurecollection.getat) + public func getAt(_ index: UInt32) -> PathFigure? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.indexof) + public func indexOf(_ value: PathFigure?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.setat) + public func setAt(_ index: UInt32, _ value: PathFigure?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.insertat) + public func insertAt(_ index: UInt32, _ value: PathFigure?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.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.xaml.media.pathfigurecollection.append) + public func append(_ value: PathFigure?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePathFigure! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathfigurecollection.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.xaml.media.pathgeometry) +public final class PathGeometry : WinUI.Geometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IPathGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathGeometry + 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_CXaml_CMedia_CIPathGeometry>?) -> PathGeometry? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.PathGeometry"))) + } + + private static let _IPathGeometryStatics: __ABI_Microsoft_UI_Xaml_Media.IPathGeometryStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.PathGeometry")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathgeometry.figuresproperty) + public static var figuresProperty : WinUI.DependencyProperty! { + get { try! _IPathGeometryStatics.get_FiguresPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathgeometry.fillruleproperty) + public static var fillRuleProperty : WinUI.DependencyProperty! { + get { try! _IPathGeometryStatics.get_FillRulePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathgeometry.figures) + public var figures : PathFigureCollection! { + get { try! _default.get_FiguresImpl() } + set { try! _default.put_FiguresImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathgeometry.fillrule) + public var fillRule : FillRule { + get { try! _default.get_FillRuleImpl() } + set { try! _default.put_FillRuleImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegment) +open class PathSegment : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IPathSegment + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegment + 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_CXaml_CMedia_CIPathSegment>?) -> PathSegment? { + 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 _IPathSegmentFactory : __ABI_Microsoft_UI_Xaml_Media.IPathSegmentFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.PathSegment")) + + internal enum IPathSegment : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = PathSegment + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPathSegment + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IPathSegment + } + } + internal typealias Composable = IPathSegment + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection) +public final class PathSegmentCollection : WinRTClass, IVector, IIterable { + public typealias T = PathSegment? + private typealias SwiftABI = WinUI.IVectorPathSegment + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment + 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__CXaml__CMedia__CPathSegment>?) -> PathSegmentCollection? { + 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.Xaml.Media.PathSegmentCollection"))) + } + + // 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.xaml.media.pathsegmentcollection.getat) + public func getAt(_ index: UInt32) -> PathSegment? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.indexof) + public func indexOf(_ value: PathSegment?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.setat) + public func setAt(_ index: UInt32, _ value: PathSegment?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.insertat) + public func insertAt(_ index: UInt32, _ value: PathSegment?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.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.xaml.media.pathsegmentcollection.append) + public func append(_ value: PathSegment?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePathSegment! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pathsegmentcollection.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.xaml.media.pointcollection) +public final class PointCollection : WinRTClass, IVector, IIterable { + public typealias T = WindowsFoundation.Point + private typealias SwiftABI = WinUI.IVectorPoint + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint + 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_CWindows__CFoundation__CPoint>?) -> PointCollection? { + 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.Xaml.Media.PointCollection"))) + } + + // 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.xaml.media.pointcollection.getat) + public func getAt(_ index: UInt32) -> WindowsFoundation.Point { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.indexof) + public func indexOf(_ value: WindowsFoundation.Point, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.setat) + public func setAt(_ index: UInt32, _ value: WindowsFoundation.Point) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.insertat) + public func insertAt(_ index: UInt32, _ value: WindowsFoundation.Point) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.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.xaml.media.pointcollection.append) + public func append(_ value: WindowsFoundation.Point) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterablePoint! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.pointcollection.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.xaml.media.polybeziersegment) +public final class PolyBezierSegment : WinUI.PathSegment { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IPolyBezierSegment + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIPolyBezierSegment + 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_CXaml_CMedia_CIPolyBezierSegment>?) -> PolyBezierSegment? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.PolyBezierSegment"))) + } + + private static let _IPolyBezierSegmentStatics: __ABI_Microsoft_UI_Xaml_Media.IPolyBezierSegmentStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.PolyBezierSegment")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.polybeziersegment.pointsproperty) + public static var pointsProperty : WinUI.DependencyProperty! { + get { try! _IPolyBezierSegmentStatics.get_PointsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.polybeziersegment.points) + public var points : PointCollection! { + get { try! _default.get_PointsImpl() } + set { try! _default.put_PointsImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.projection) +open class Projection : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IProjection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjection + 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_CXaml_CMedia_CIProjection>?) -> Projection? { + 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 _IProjectionFactory : __ABI_Microsoft_UI_Xaml_Media.IProjectionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Projection")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IProjectionFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IProjection : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Projection + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIProjection + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IProjection + } + } + internal typealias Composable = IProjection + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.rectanglegeometry) +public final class RectangleGeometry : WinUI.Geometry { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IRectangleGeometry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRectangleGeometry + 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_CXaml_CMedia_CIRectangleGeometry>?) -> RectangleGeometry? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.RectangleGeometry"))) + } + + private static let _IRectangleGeometryStatics: __ABI_Microsoft_UI_Xaml_Media.IRectangleGeometryStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.RectangleGeometry")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.rectanglegeometry.rectproperty) + public static var rectProperty : WinUI.DependencyProperty! { + get { try! _IRectangleGeometryStatics.get_RectPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.rectanglegeometry.rect) + public var rect : WindowsFoundation.Rect { + get { try! _default.get_RectImpl() } + set { try! _default.put_RectImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.renderedeventargs) +public final class RenderedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IRenderedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIRenderedEventArgs + 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_CXaml_CMedia_CIRenderedEventArgs>?) -> RenderedEventArgs? { + 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.xaml.media.renderedeventargs.frameduration) + public var frameDuration : WindowsFoundation.TimeSpan { + get { try! _default.get_FrameDurationImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.shadow) +open class Shadow : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IShadow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadow + 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_CXaml_CMedia_CIShadow>?) -> Shadow? { + 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 _IShadowFactory : __ABI_Microsoft_UI_Xaml_Media.IShadowFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Shadow")) + + internal enum IShadow : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Shadow + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIShadow + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IShadow + } + } + internal typealias Composable = IShadow + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.solidcolorbrush) +public final class SolidColorBrush : WinUI.Brush { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISolidColorBrush + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrush + 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_CXaml_CMedia_CISolidColorBrush>?) -> SolidColorBrush? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.SolidColorBrush"))) + } + + private static let _ISolidColorBrushFactory: __ABI_Microsoft_UI_Xaml_Media.ISolidColorBrushFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.SolidColorBrush")) + public init(_ color: UWP.Color) { + super.init(fromAbi: try! Self._ISolidColorBrushFactory.CreateInstanceWithColorImpl(color)) + } + + private static let _ISolidColorBrushStatics: __ABI_Microsoft_UI_Xaml_Media.ISolidColorBrushStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.SolidColorBrush")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.solidcolorbrush.colorproperty) + public static var colorProperty : WinUI.DependencyProperty! { + get { try! _ISolidColorBrushStatics.get_ColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.solidcolorbrush.color) + public var color : UWP.Color { + get { try! _default.get_ColorImpl() } + set { try! _default.put_ColorImpl(newValue) } + } + + internal enum IBrushOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIBrushOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IBrushOverrides + internal typealias Class = SolidColorBrush + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISolidColorBrush + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISolidColorBrush + } + } + internal typealias Composable = IBrushOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.systembackdrop) +open class SystemBackdrop : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISystemBackdrop + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdrop + 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_CXaml_CMedia_CISystemBackdrop>?) -> SystemBackdrop? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _ISystemBackdropFactory : __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.SystemBackdrop")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._ISystemBackdropFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.systembackdrop.getdefaultsystembackdropconfiguration) + public func getDefaultSystemBackdropConfiguration(_ target: WinAppSDK.AnyICompositionSupportsSystemBackdrop!, _ xamlRoot: WinUI.XamlRoot!) throws -> WinAppSDK.SystemBackdropConfiguration! { + try _default.GetDefaultSystemBackdropConfigurationImpl(target, xamlRoot) + } + + private lazy var _ISystemBackdropOverrides: __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.systembackdrop.ontargetconnected) + open func onTargetConnected(_ connectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!, _ xamlRoot: WinUI.XamlRoot!) throws { + try _ISystemBackdropOverrides.OnTargetConnectedImpl(connectedTarget, xamlRoot) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.systembackdrop.ontargetdisconnected) + open func onTargetDisconnected(_ disconnectedTarget: WinAppSDK.AnyICompositionSupportsSystemBackdrop!) throws { + try _ISystemBackdropOverrides.OnTargetDisconnectedImpl(disconnectedTarget) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.systembackdrop.ondefaultsystembackdropconfigurationchanged) + open func onDefaultSystemBackdropConfigurationChanged(_ target: WinAppSDK.AnyICompositionSupportsSystemBackdrop!, _ xamlRoot: WinUI.XamlRoot!) throws { + try _ISystemBackdropOverrides.OnDefaultSystemBackdropConfigurationChangedImpl(target, xamlRoot) + } + + internal enum ISystemBackdropOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdropOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISystemBackdropOverrides + internal typealias Class = SystemBackdrop + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CISystemBackdrop + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ISystemBackdrop + } + } + internal typealias Composable = ISystemBackdropOverrides + deinit { + _default = nil + _ISystemBackdropOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.themeshadow) +open class ThemeShadow : WinUI.Shadow { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IThemeShadow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadow + 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_CXaml_CMedia_CIThemeShadow>?) -> ThemeShadow? { + 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 _IThemeShadowFactory : __ABI_Microsoft_UI_Xaml_Media.IThemeShadowFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.ThemeShadow")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IThemeShadowFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.themeshadow.receivers) + public var receivers : WinUI.UIElementWeakCollection! { + get { try! _default.get_ReceiversImpl() } + } + + internal enum IThemeShadow : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ThemeShadow + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIThemeShadow + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IThemeShadow + } + } + internal typealias Composable = IThemeShadow + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.transform) +open class Transform : WinUI.GeneralTransform { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ITransform + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransform + 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_CXaml_CMedia_CITransform>?) -> Transform? { + 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 _ITransformFactory : __ABI_Microsoft_UI_Xaml_Media.ITransformFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.Transform")) + + internal enum IGeneralTransformOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverrides + internal typealias Class = Transform + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITransform + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ITransform + } + } + internal typealias Composable = IGeneralTransformOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.translatetransform) +public final class TranslateTransform : WinUI.Transform { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ITranslateTransform + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform + 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_CXaml_CMedia_CITranslateTransform>?) -> TranslateTransform? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Media.TranslateTransform"))) + } + + private static let _ITranslateTransformStatics: __ABI_Microsoft_UI_Xaml_Media.ITranslateTransformStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.TranslateTransform")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.translatetransform.xproperty) + public static var xproperty : WinUI.DependencyProperty! { + get { try! _ITranslateTransformStatics.get_XPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.translatetransform.yproperty) + public static var yproperty : WinUI.DependencyProperty! { + get { try! _ITranslateTransformStatics.get_YPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.translatetransform.x) + public var x : Double { + get { try! _default.get_XImpl() } + set { try! _default.put_XImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.translatetransform.y) + public var y : Double { + get { try! _default.get_YImpl() } + set { try! _default.put_YImpl(newValue) } + } + + internal enum IGeneralTransformOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIGeneralTransformOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IGeneralTransformOverrides + internal typealias Class = TranslateTransform + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CITranslateTransform + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.ITranslateTransform + } + } + internal typealias Composable = IGeneralTransformOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper) +public final class VisualTreeHelper : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IVisualTreeHelper + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIVisualTreeHelper + 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_CXaml_CMedia_CIVisualTreeHelper>?) -> VisualTreeHelper? { + 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 _IVisualTreeHelperStatics: __ABI_Microsoft_UI_Xaml_Media.IVisualTreeHelperStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.VisualTreeHelper")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.findelementsinhostcoordinates) + public static func findElementsInHostCoordinates(_ intersectingPoint: WindowsFoundation.Point, _ subtree: WinUI.UIElement!) -> WindowsFoundation.AnyIIterable! { + return try! _IVisualTreeHelperStatics.FindElementsInHostCoordinatesPointImpl(intersectingPoint, subtree) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.findelementsinhostcoordinates) + public static func findElementsInHostCoordinates(_ intersectingRect: WindowsFoundation.Rect, _ subtree: WinUI.UIElement!) -> WindowsFoundation.AnyIIterable! { + return try! _IVisualTreeHelperStatics.FindElementsInHostCoordinatesRectImpl(intersectingRect, subtree) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.findelementsinhostcoordinates) + public static func findElementsInHostCoordinates(_ intersectingPoint: WindowsFoundation.Point, _ subtree: WinUI.UIElement!, _ includeAllElements: Bool) -> WindowsFoundation.AnyIIterable! { + return try! _IVisualTreeHelperStatics.FindAllElementsInHostCoordinatesPointImpl(intersectingPoint, subtree, includeAllElements) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.findelementsinhostcoordinates) + public static func findElementsInHostCoordinates(_ intersectingRect: WindowsFoundation.Rect, _ subtree: WinUI.UIElement!, _ includeAllElements: Bool) -> WindowsFoundation.AnyIIterable! { + return try! _IVisualTreeHelperStatics.FindAllElementsInHostCoordinatesRectImpl(intersectingRect, subtree, includeAllElements) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.getchild) + public static func getChild(_ reference: WinUI.DependencyObject!, _ childIndex: Int32) -> WinUI.DependencyObject! { + return try! _IVisualTreeHelperStatics.GetChildImpl(reference, childIndex) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.getchildrencount) + public static func getChildrenCount(_ reference: WinUI.DependencyObject!) -> Int32 { + return try! _IVisualTreeHelperStatics.GetChildrenCountImpl(reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.getparent) + public static func getParent(_ reference: WinUI.DependencyObject!) -> WinUI.DependencyObject! { + return try! _IVisualTreeHelperStatics.GetParentImpl(reference) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.disconnectchildrenrecursive) + public static func disconnectChildrenRecursive(_ element: WinUI.UIElement!) { + try! _IVisualTreeHelperStatics.DisconnectChildrenRecursiveImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.getopenpopups) + public static func getOpenPopups(_ window: WinUI.Window!) -> WindowsFoundation.AnyIVectorView! { + return try! _IVisualTreeHelperStatics.GetOpenPopupsImpl(window) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.visualtreehelper.getopenpopupsforxamlroot) + public static func getOpenPopupsForXamlRoot(_ xamlRoot: WinUI.XamlRoot!) -> WindowsFoundation.AnyIVectorView! { + return try! _IVisualTreeHelperStatics.GetOpenPopupsForXamlRootImpl(xamlRoot) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase) +open class XamlCompositionBrushBase : WinUI.Brush { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBase + 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_CXaml_CMedia_CIXamlCompositionBrushBase>?) -> XamlCompositionBrushBase? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IXamlCompositionBrushBaseFactory : __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.XamlCompositionBrushBase")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IXamlCompositionBrushBaseFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IXamlCompositionBrushBaseStatics: __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.XamlCompositionBrushBase")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase.fallbackcolorproperty) + public class var fallbackColorProperty : WinUI.DependencyProperty! { + get { try! _IXamlCompositionBrushBaseStatics.get_FallbackColorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase.fallbackcolor) + public var fallbackColor : UWP.Color { + get { try! _default.get_FallbackColorImpl() } + set { try! _default.put_FallbackColorImpl(newValue) } + } + + private lazy var _IXamlCompositionBrushBaseProtected: __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase.compositionbrush) + public var compositionBrush : WinAppSDK.CompositionBrush! { + get { try! _IXamlCompositionBrushBaseProtected.get_CompositionBrushImpl() } + set { try! _IXamlCompositionBrushBaseProtected.put_CompositionBrushImpl(newValue) } + } + + private lazy var _IXamlCompositionBrushBaseOverrides: __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase.onconnected) + open func onConnected() throws { + try _IXamlCompositionBrushBaseOverrides.OnConnectedImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase.ondisconnected) + open func onDisconnected() throws { + try _IXamlCompositionBrushBaseOverrides.OnDisconnectedImpl() + } + + internal enum IXamlCompositionBrushBaseOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBaseOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBaseOverrides + internal typealias Class = XamlCompositionBrushBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlCompositionBrushBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlCompositionBrushBase + } + } + internal typealias Composable = IXamlCompositionBrushBaseOverrides + deinit { + _default = nil + _IXamlCompositionBrushBaseProtected = nil + _IXamlCompositionBrushBaseOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight) +open class XamlLight : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlLight + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLight + 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_CXaml_CMedia_CIXamlLight>?) -> XamlLight? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Media.IXamlLightOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml_Media.IXamlLightOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IXamlLightFactory : __ABI_Microsoft_UI_Xaml_Media.IXamlLightFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.XamlLight")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IXamlLightFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IXamlLightStatics: __ABI_Microsoft_UI_Xaml_Media.IXamlLightStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Media.XamlLight")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.addtargetelement) + public class func addTargetElement(_ lightId: String, _ element: WinUI.UIElement!) { + try! _IXamlLightStatics.AddTargetElementImpl(lightId, element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.removetargetelement) + public class func removeTargetElement(_ lightId: String, _ element: WinUI.UIElement!) { + try! _IXamlLightStatics.RemoveTargetElementImpl(lightId, element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.addtargetbrush) + public class func addTargetBrush(_ lightId: String, _ brush: Brush!) { + try! _IXamlLightStatics.AddTargetBrushImpl(lightId, brush) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.removetargetbrush) + public class func removeTargetBrush(_ lightId: String, _ brush: Brush!) { + try! _IXamlLightStatics.RemoveTargetBrushImpl(lightId, brush) + } + + private lazy var _IXamlLightProtected: __ABI_Microsoft_UI_Xaml_Media.IXamlLightProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.compositionlight) + public var compositionLight : WinAppSDK.CompositionLight! { + get { try! _IXamlLightProtected.get_CompositionLightImpl() } + set { try! _IXamlLightProtected.put_CompositionLightImpl(newValue) } + } + + private lazy var _IXamlLightOverrides: __ABI_Microsoft_UI_Xaml_Media.IXamlLightOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.getid) + open func getId() throws -> String { + try _IXamlLightOverrides.GetIdImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.onconnected) + open func onConnected(_ newElement: WinUI.UIElement!) throws { + try _IXamlLightOverrides.OnConnectedImpl(newElement) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamllight.ondisconnected) + open func onDisconnected(_ oldElement: WinUI.UIElement!) throws { + try _IXamlLightOverrides.OnDisconnectedImpl(oldElement) + } + + internal enum IXamlLightOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLightOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlLightOverrides + internal typealias Class = XamlLight + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CIXamlLight + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Media.IXamlLight + } + } + internal typealias Composable = IXamlLightOverrides + deinit { + _default = nil + _IXamlLightProtected = nil + _IXamlLightOverrides = nil + } +} + +extension WinUI.BrushMappingMode { + public static var absolute : WinUI.BrushMappingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CBrushMappingMode_Absolute + } + public static var relativeToBoundingBox : WinUI.BrushMappingMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CBrushMappingMode_RelativeToBoundingBox + } +} +extension WinUI.BrushMappingMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ColorInterpolationMode { + public static var scRgbLinearInterpolation : WinUI.ColorInterpolationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CColorInterpolationMode_ScRgbLinearInterpolation + } + public static var srgbLinearInterpolation : WinUI.ColorInterpolationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CColorInterpolationMode_SRgbLinearInterpolation + } +} +extension WinUI.ColorInterpolationMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ElementCompositeMode { + public static var inherit : WinUI.ElementCompositeMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode_Inherit + } + public static var sourceOver : WinUI.ElementCompositeMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode_SourceOver + } + public static var minBlend : WinUI.ElementCompositeMode { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CElementCompositeMode_MinBlend + } +} +extension WinUI.ElementCompositeMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FastPlayFallbackBehaviour { + public static var skip : WinUI.FastPlayFallbackBehaviour { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFastPlayFallbackBehaviour_Skip + } + public static var hide : WinUI.FastPlayFallbackBehaviour { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFastPlayFallbackBehaviour_Hide + } + public static var disable : WinUI.FastPlayFallbackBehaviour { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFastPlayFallbackBehaviour_Disable + } +} +extension WinUI.FastPlayFallbackBehaviour: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FillRule { + public static var evenOdd : WinUI.FillRule { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFillRule_EvenOdd + } + public static var nonzero : WinUI.FillRule { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CFillRule_Nonzero + } +} +extension WinUI.FillRule: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.GradientSpreadMethod { + public static var pad : WinUI.GradientSpreadMethod { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CGradientSpreadMethod_Pad + } + public static var reflect : WinUI.GradientSpreadMethod { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CGradientSpreadMethod_Reflect + } + public static var `repeat` : WinUI.GradientSpreadMethod { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CGradientSpreadMethod_Repeat + } +} +extension WinUI.GradientSpreadMethod: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PenLineCap { + public static var flat : WinUI.PenLineCap { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap_Flat + } + public static var square : WinUI.PenLineCap { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap_Square + } + public static var round : WinUI.PenLineCap { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap_Round + } + public static var triangle : WinUI.PenLineCap { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap_Triangle + } +} +extension WinUI.PenLineCap: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.PenLineJoin { + public static var miter : WinUI.PenLineJoin { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineJoin_Miter + } + public static var bevel : WinUI.PenLineJoin { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineJoin_Bevel + } + public static var round : WinUI.PenLineJoin { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineJoin_Round + } +} +extension WinUI.PenLineJoin: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.Stretch { + public static var none : WinUI.Stretch { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch_None + } + public static var fill : WinUI.Stretch { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch_Fill + } + public static var uniform : WinUI.Stretch { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch_Uniform + } + public static var uniformToFill : WinUI.Stretch { + __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch_UniformToFill + } +} +extension WinUI.Stretch: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+ABI.swift new file mode 100644 index 0000000..99aea3b --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+ABI.swift @@ -0,0 +1,469 @@ +// 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_CXaml_CNavigation_CIFrameNavigationOptions: WindowsFoundation.IID { + .init(Data1: 0x390DE593, Data2: 0x14CF, Data3: 0x5312, Data4: ( 0xAF,0x99,0x6C,0xD8,0xD5,0x9E,0xC5,0xD5 ))// 390DE593-14CF-5312-AF99-6CD8D59EC5D5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptionsFactory: WindowsFoundation.IID { + .init(Data1: 0xDDF3F748, Data2: 0x7127, Data3: 0x5CEE, Data4: ( 0x9F,0x79,0xAC,0x28,0x1A,0x23,0x46,0x32 ))// DDF3F748-7127-5CEE-9F79-AC281A234632 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs: WindowsFoundation.IID { + .init(Data1: 0x172FDE12, Data2: 0xE06F, Data3: 0x5DF6, Data4: ( 0x93,0x0E,0x5F,0xAC,0xF7,0xB3,0xFB,0xE7 ))// 172FDE12-E06F-5DF6-930E-5FACF7B3FBE7 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs: WindowsFoundation.IID { + .init(Data1: 0x876B70B4, Data2: 0x2923, Data3: 0x5785, Data4: ( 0x9C,0xEA,0x2E,0x44,0xAA,0x07,0x61,0xBD ))// 876B70B4-2923-5785-9CEA-2E44AA0761BD +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xF808F9A0, Data2: 0x130C, Data3: 0x5974, Data4: ( 0x87,0xF8,0x44,0x33,0x27,0x1A,0x35,0xA9 ))// F808F9A0-130C-5974-87F8-4433271A35A9 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry: WindowsFoundation.IID { + .init(Data1: 0xD591F56E, Data2: 0x4262, Data3: 0x5C91, Data4: ( 0x9D,0x79,0x29,0x16,0x5C,0xD8,0x21,0x00 ))// D591F56E-4262-5C91-9D79-29165CD82100 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryFactory: WindowsFoundation.IID { + .init(Data1: 0x7E5A9469, Data2: 0x6108, Data3: 0x5E92, Data4: ( 0xA4,0x99,0x5E,0xE9,0xF0,0x65,0xA6,0x8A ))// 7E5A9469-6108-5E92-A499-5EE9F065A68A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryStatics: WindowsFoundation.IID { + .init(Data1: 0x2F1D4CB7, Data2: 0x923B, Data3: 0x59BB, Data4: ( 0xBF,0xC4,0x75,0x09,0x33,0xF2,0x83,0x85 ))// 2F1D4CB7-923B-59BB-BFC4-750933F28385 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x8631B517, Data2: 0x6D8E, Data3: 0x58EE, Data4: ( 0x82,0xFE,0xD4,0x03,0x4D,0x1B,0xD7,0xC1 ))// 8631B517-6D8E-58EE-82FE-D4034D1BD7C1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandler: WindowsFoundation.IID { + .init(Data1: 0xFCAE1401, Data2: 0xEC94, Data3: 0x565F, Data4: ( 0x9F,0x48,0x7C,0x4B,0x62,0x72,0xB3,0xB1 ))// FCAE1401-EC94-565F-9F48-7C4B6272B3B1 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandler: WindowsFoundation.IID { + .init(Data1: 0x97CA2B56, Data2: 0xD6EB, Data3: 0x5FD2, Data4: ( 0xA6,0x75,0xA3,0x39,0x64,0x0E,0xED,0xBA ))// 97CA2B56-D6EB-5FD2-A675-A339640EEDBA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandler: WindowsFoundation.IID { + .init(Data1: 0xB9E796A6, Data2: 0x7FFE, Data3: 0x5A63, Data4: ( 0xAE,0xF4,0xCB,0xC3,0x31,0x66,0x3B,0x66 ))// B9E796A6-7FFE-5A63-AEF4-CBC331663B66 +} + +public enum __ABI_Microsoft_UI_Xaml_Navigation { + public class IFrameNavigationOptions: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions } + + internal func get_IsNavigationStackEnabledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_IsNavigationStackEnabled(pThis, &value)) + } + return .init(from: value) + } + + internal func put_IsNavigationStackEnabledImpl(_ value: Bool) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_IsNavigationStackEnabled(pThis, .init(from: value))) + } + } + + internal func get_TransitionInfoOverrideImpl() throws -> WinUI.NavigationTransitionInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_TransitionInfoOverride(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_TransitionInfoOverrideImpl(_ value: WinUI.NavigationTransitionInfo?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_TransitionInfoOverride(pThis, RawPointer(value))) + } + } + + } + + public class IFrameNavigationOptionsFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptionsFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IFrameNavigationOptions { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptionsFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IFrameNavigationOptions(value!) + } + + } + + public class INavigatingCancelEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs } + + internal func get_CancelImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs.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_CXaml_CNavigation_CINavigatingCancelEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Cancel(pThis, .init(from: value))) + } + } + + internal func get_NavigationModeImpl() throws -> WinUI.NavigationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationMode(pThis, &value)) + } + return value + } + + internal func get_SourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_NavigationTransitionInfoImpl() throws -> WinUI.NavigationTransitionInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationTransitionInfo(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class INavigationEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs } + + internal func get_ContentImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Content(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_ParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_NavigationTransitionInfoImpl() throws -> WinUI.NavigationTransitionInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationTransitionInfo(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_SourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_NavigationModeImpl() throws -> WinUI.NavigationMode { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationMode(pThis, &value)) + } + return value + } + + internal func get_UriImpl() throws -> WindowsFoundation.Uri? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Uri(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_UriImpl(_ value: WindowsFoundation.Uri?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Uri(pThis, RawPointer(value))) + } + } + + } + + public class INavigationFailedEventArgs: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs } + + internal func get_ExceptionImpl() throws -> HRESULT { + var value: HRESULT = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Exception(pThis, &value)) + } + return value + } + + internal func get_HandledImpl() throws -> Bool { + var value: boolean = 0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs.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_CXaml_CNavigation_CINavigationFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Handled(pThis, .init(from: value))) + } + } + + internal func get_SourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + } + + public class IPageStackEntry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry } + + internal func get_SourcePageTypeImpl() throws -> WinUI.TypeName { + var value: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageType(pThis, &value)) + } + return .from(abi: value) + } + + internal func get_ParameterImpl() throws -> Any? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Parameter(pThis, &valueAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: value) + } + + internal func get_NavigationTransitionInfoImpl() throws -> WinUI.NavigationTransitionInfo? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_NavigationTransitionInfo(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IPageStackEntryFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryFactory } + + internal func CreateInstanceImpl(_ sourcePageType: WinUI.TypeName, _ parameter: Any?, _ navigationTransitionInfo: WinUI.NavigationTransitionInfo?) throws -> IPageStackEntry { + let (value) = try ComPtrs.initialize { valueAbi in + let _sourcePageType = __ABI_Windows_UI_Xaml_Interop._ABI_TypeName(from: sourcePageType) + let parameterWrapper = __ABI_.AnyWrapper(parameter) + let _parameter = try! parameterWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _sourcePageType.val, _parameter, RawPointer(navigationTransitionInfo), &valueAbi)) + } + } + return IPageStackEntry(value!) + } + + } + + public class IPageStackEntryStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryStatics } + + internal func get_SourcePageTypePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntryStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_SourcePageTypeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + +} +// MARK - NavigatedEventHandler +extension __ABI_Microsoft_UI_Xaml_Navigation { + public class NavigatedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.NavigationEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias NavigatedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Navigation.NavigatedEventHandlerBridge> + internal static var NavigatedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandlerVtbl = .init( + QueryInterface: { NavigatedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { NavigatedEventHandlerWrapper.addRef($0) }, + Release: { NavigatedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = NavigatedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.NavigationEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Navigation.NavigatedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - NavigatingCancelEventHandler +extension __ABI_Microsoft_UI_Xaml_Navigation { + public class NavigatingCancelEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.NavigatingCancelEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias NavigatingCancelEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Navigation.NavigatingCancelEventHandlerBridge> + internal static var NavigatingCancelEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandlerVtbl = .init( + QueryInterface: { NavigatingCancelEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { NavigatingCancelEventHandlerWrapper.addRef($0) }, + Release: { NavigatingCancelEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = NavigatingCancelEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.NavigatingCancelEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Navigation.NavigatingCancelEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - NavigationFailedEventHandler +extension __ABI_Microsoft_UI_Xaml_Navigation { + public class NavigationFailedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.NavigationFailedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias NavigationFailedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Navigation.NavigationFailedEventHandlerBridge> + internal static var NavigationFailedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandlerVtbl = .init( + QueryInterface: { NavigationFailedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { NavigationFailedEventHandlerWrapper.addRef($0) }, + Release: { NavigationFailedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = NavigationFailedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.NavigationFailedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Navigation.NavigationFailedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +// MARK - NavigationStoppedEventHandler +extension __ABI_Microsoft_UI_Xaml_Navigation { + public class NavigationStoppedEventHandler: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandler } + + open func InvokeImpl(_ sender: Any?, _ e: WinUI.NavigationEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandler.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(e))) + } + } + + } + + + typealias NavigationStoppedEventHandlerWrapper = InterfaceWrapperBase<__IMPL_Microsoft_UI_Xaml_Navigation.NavigationStoppedEventHandlerBridge> + internal static var NavigationStoppedEventHandlerVTable: __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandlerVtbl = .init( + QueryInterface: { NavigationStoppedEventHandlerWrapper.queryInterface($0, $1, $2) }, + AddRef: { NavigationStoppedEventHandlerWrapper.addRef($0) }, + Release: { NavigationStoppedEventHandlerWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = NavigationStoppedEventHandlerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let e: WinUI.NavigationEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, e) + return S_OK + } + ) +} +public extension WinRTDelegateBridge where CABI == __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandler { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Microsoft_UI_Xaml_Navigation.NavigationStoppedEventHandlerVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+Impl.swift new file mode 100644 index 0000000..4452b4b --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation+Impl.swift @@ -0,0 +1,64 @@ +// 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_Xaml_Navigation { + public class NavigatedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = NavigatedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.NavigatedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class NavigatingCancelEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = NavigatingCancelEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.NavigatingCancelEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class NavigationFailedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = NavigationFailedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.NavigationFailedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } + public class NavigationStoppedEventHandlerBridge : WinRTDelegateBridge { + public typealias Handler = NavigationStoppedEventHandler + public typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationStoppedEventHandler + public typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.NavigationStoppedEventHandler + + public static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, e) in + try! _default.InvokeImpl(sender, e) + } + return handler + } + } +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation.swift new file mode 100644 index 0000000..511eb12 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Navigation.swift @@ -0,0 +1,330 @@ +// 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.xaml.navigation.navigationcachemode) +public typealias NavigationCacheMode = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationCacheMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationmode) +public typealias NavigationMode = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.framenavigationoptions) +open class FrameNavigationOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.IFrameNavigationOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions + 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_CXaml_CNavigation_CIFrameNavigationOptions>?) -> FrameNavigationOptions? { + 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 _IFrameNavigationOptionsFactory : __ABI_Microsoft_UI_Xaml_Navigation.IFrameNavigationOptionsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Navigation.FrameNavigationOptions")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IFrameNavigationOptionsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.framenavigationoptions.isnavigationstackenabled) + public var isNavigationStackEnabled : Bool { + get { try! _default.get_IsNavigationStackEnabledImpl() } + set { try! _default.put_IsNavigationStackEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.framenavigationoptions.transitioninfooverride) + public var transitionInfoOverride : WinUI.NavigationTransitionInfo! { + get { try! _default.get_TransitionInfoOverrideImpl() } + set { try! _default.put_TransitionInfoOverrideImpl(newValue) } + } + + internal enum IFrameNavigationOptions : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = FrameNavigationOptions + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIFrameNavigationOptions + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.IFrameNavigationOptions + } + } + internal typealias Composable = IFrameNavigationOptions + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigatingcanceleventargs) +public final class NavigatingCancelEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.INavigatingCancelEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigatingCancelEventArgs + 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_CXaml_CNavigation_CINavigatingCancelEventArgs>?) -> NavigatingCancelEventArgs? { + 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.xaml.navigation.navigatingcanceleventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigatingcanceleventargs.navigationmode) + public var navigationMode : NavigationMode { + get { try! _default.get_NavigationModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigatingcanceleventargs.navigationtransitioninfo) + public var navigationTransitionInfo : WinUI.NavigationTransitionInfo! { + get { try! _default.get_NavigationTransitionInfoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigatingcanceleventargs.parameter) + public var parameter : Any! { + get { try! _default.get_ParameterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigatingcanceleventargs.sourcepagetype) + public var sourcePageType : WinUI.TypeName { + get { try! _default.get_SourcePageTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs) +public final class NavigationEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.INavigationEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationEventArgs + 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_CXaml_CNavigation_CINavigationEventArgs>?) -> NavigationEventArgs? { + 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.xaml.navigation.navigationeventargs.content) + public var content : Any! { + get { try! _default.get_ContentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs.navigationmode) + public var navigationMode : NavigationMode { + get { try! _default.get_NavigationModeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs.navigationtransitioninfo) + public var navigationTransitionInfo : WinUI.NavigationTransitionInfo! { + get { try! _default.get_NavigationTransitionInfoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs.parameter) + public var parameter : Any! { + get { try! _default.get_ParameterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs.sourcepagetype) + public var sourcePageType : WinUI.TypeName { + get { try! _default.get_SourcePageTypeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationeventargs.uri) + public var uri : WindowsFoundation.Uri! { + get { try! _default.get_UriImpl() } + set { try! _default.put_UriImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationfailedeventargs) +public final class NavigationFailedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.INavigationFailedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CINavigationFailedEventArgs + 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_CXaml_CNavigation_CINavigationFailedEventArgs>?) -> NavigationFailedEventArgs? { + 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.xaml.navigation.navigationfailedeventargs.exception) + public var exception : HRESULT { + get { try! _default.get_ExceptionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.navigationfailedeventargs.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.xaml.navigation.navigationfailedeventargs.sourcepagetype) + public var sourcePageType : WinUI.TypeName { + get { try! _default.get_SourcePageTypeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.pagestackentry) +public final class PageStackEntry : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Navigation.IPageStackEntry + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CIPageStackEntry + 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_CXaml_CNavigation_CIPageStackEntry>?) -> PageStackEntry? { + 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 _IPageStackEntryFactory: __ABI_Microsoft_UI_Xaml_Navigation.IPageStackEntryFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Navigation.PageStackEntry")) + public init(_ sourcePageType: WinUI.TypeName, _ parameter: Any!, _ navigationTransitionInfo: WinUI.NavigationTransitionInfo!) { + super.init(fromAbi: try! Self._IPageStackEntryFactory.CreateInstanceImpl(sourcePageType, parameter, navigationTransitionInfo)) + } + + private static let _IPageStackEntryStatics: __ABI_Microsoft_UI_Xaml_Navigation.IPageStackEntryStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Navigation.PageStackEntry")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.pagestackentry.sourcepagetypeproperty) + public static var sourcePageTypeProperty : WinUI.DependencyProperty! { + get { try! _IPageStackEntryStatics.get_SourcePageTypePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.pagestackentry.navigationtransitioninfo) + public var navigationTransitionInfo : WinUI.NavigationTransitionInfo! { + get { try! _default.get_NavigationTransitionInfoImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.pagestackentry.parameter) + public var parameter : Any! { + get { try! _default.get_ParameterImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.navigation.pagestackentry.sourcepagetype) + public var sourcePageType : WinUI.TypeName { + get { try! _default.get_SourcePageTypeImpl() } + } + + deinit { + _default = nil + } +} + +public typealias NavigatedEventHandler = (Any?, NavigationEventArgs?) -> () +public typealias NavigatingCancelEventHandler = (Any?, NavigatingCancelEventArgs?) -> () +public typealias NavigationFailedEventHandler = (Any?, NavigationFailedEventArgs?) -> () +public typealias NavigationStoppedEventHandler = (Any?, NavigationEventArgs?) -> () +extension WinUI.NavigationCacheMode { + public static var disabled : WinUI.NavigationCacheMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationCacheMode_Disabled + } + public static var required : WinUI.NavigationCacheMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationCacheMode_Required + } + public static var enabled : WinUI.NavigationCacheMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationCacheMode_Enabled + } +} +extension WinUI.NavigationCacheMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.NavigationMode { + public static var new : WinUI.NavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode_New + } + public static var back : WinUI.NavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode_Back + } + public static var forward : WinUI.NavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode_Forward + } + public static var refresh : WinUI.NavigationMode { + __x_ABI_CMicrosoft_CUI_CXaml_CNavigation_CNavigationMode_Refresh + } +} +extension WinUI.NavigationMode: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+ABI.swift new file mode 100644 index 0000000..2f639e9 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+ABI.swift @@ -0,0 +1,460 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIEllipse: WindowsFoundation.IID { + .init(Data1: 0x805C39AA, Data2: 0xFA8A, Data3: 0x5E0B, Data4: ( 0x98,0x47,0x4A,0xB8,0x1B,0x42,0xA3,0xDF ))// 805C39AA-FA8A-5E0B-9847-4AB81B42A3DF +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath: WindowsFoundation.IID { + .init(Data1: 0x757D1CD8, Data2: 0x0EC0, Data3: 0x55C5, Data4: ( 0xB4,0x00,0x66,0x65,0x7E,0x49,0x3E,0x78 ))// 757D1CD8-0EC0-55C5-B400-66657E493E78 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathFactory: WindowsFoundation.IID { + .init(Data1: 0x5E82E4C9, Data2: 0x7502, Data3: 0x5B1F, Data4: ( 0xB9,0x40,0xC3,0x34,0x6A,0x71,0x36,0x2A ))// 5E82E4C9-7502-5B1F-B940-C3346A71362A +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathStatics: WindowsFoundation.IID { + .init(Data1: 0x2146D36F, Data2: 0x721C, Data3: 0x5B54, Data4: ( 0xAF,0x7D,0x60,0xF3,0xAD,0xC4,0xFB,0xCA ))// 2146D36F-721C-5B54-AF7D-60F3ADC4FBCA +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle: WindowsFoundation.IID { + .init(Data1: 0xBF7D30B9, Data2: 0x152C, Data3: 0x556E, Data4: ( 0x9F,0x10,0xD0,0xB7,0xEB,0xA4,0xE5,0x2F ))// BF7D30B9-152C-556E-9F10-D0B7EBA4E52F +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangleStatics: WindowsFoundation.IID { + .init(Data1: 0x3CC3CC79, Data2: 0xC332, Data3: 0x5AD0, Data4: ( 0x87,0x43,0x1F,0x1B,0x1E,0x67,0x0A,0x86 ))// 3CC3CC79-C332-5AD0-8743-1F1B1E670A86 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape: WindowsFoundation.IID { + .init(Data1: 0x9941AAD3, Data2: 0x6AF2, Data3: 0x5BA2, Data4: ( 0x90,0x85,0x85,0x06,0xD5,0xF2,0x48,0x5E ))// 9941AAD3-6AF2-5BA2-9085-8506D5F2485E +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeFactory: WindowsFoundation.IID { + .init(Data1: 0x4FECAFAF, Data2: 0x8265, Data3: 0x5252, Data4: ( 0xBA,0x5C,0xF4,0x36,0x39,0xF9,0x74,0xA5 ))// 4FECAFAF-8265-5252-BA5C-F43639F974A5 +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics: WindowsFoundation.IID { + .init(Data1: 0xEA407C43, Data2: 0x8A09, Data3: 0x587A, Data4: ( 0x95,0x8A,0x4D,0xD1,0x7D,0x21,0x7C,0xE1 ))// EA407C43-8A09-587A-958A-4DD17D217CE1 +} + +public enum __ABI_Microsoft_UI_Xaml_Shapes { + public class IEllipse: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIEllipse } + + } + + public class IPath: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath } + + internal func get_DataImpl() throws -> WinUI.Geometry? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Data(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_DataImpl(_ value: WinUI.Geometry?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Data(pThis, RawPointer(value))) + } + } + + } + + public class IPathFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IPath { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IPath(value!) + } + + } + + public class IPathStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathStatics } + + internal func get_DataPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPathStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_DataProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IRectangle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle } + + internal func get_RadiusXImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RadiusX(pThis, &value)) + } + return value + } + + internal func put_RadiusXImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RadiusX(pThis, value)) + } + } + + internal func get_RadiusYImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RadiusY(pThis, &value)) + } + return value + } + + internal func put_RadiusYImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_RadiusY(pThis, value)) + } + } + + } + + public class IRectangleStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangleStatics } + + internal func get_RadiusXPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangleStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RadiusXProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_RadiusYPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangleStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_RadiusYProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + + public class IShape: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape } + + internal func get_FillImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Fill(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_FillImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Fill(pThis, RawPointer(value))) + } + } + + internal func get_StrokeImpl() throws -> WinUI.Brush? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stroke(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_StrokeImpl(_ value: WinUI.Brush?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stroke(pThis, RawPointer(value))) + } + } + + internal func get_StrokeMiterLimitImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeMiterLimit(pThis, &value)) + } + return value + } + + internal func put_StrokeMiterLimitImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeMiterLimit(pThis, value)) + } + } + + internal func get_StrokeThicknessImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeThickness(pThis, &value)) + } + return value + } + + internal func put_StrokeThicknessImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeThickness(pThis, value)) + } + } + + internal func get_StrokeStartLineCapImpl() throws -> WinUI.PenLineCap { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeStartLineCap(pThis, &value)) + } + return value + } + + internal func put_StrokeStartLineCapImpl(_ value: WinUI.PenLineCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeStartLineCap(pThis, value)) + } + } + + internal func get_StrokeEndLineCapImpl() throws -> WinUI.PenLineCap { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeEndLineCap(pThis, &value)) + } + return value + } + + internal func put_StrokeEndLineCapImpl(_ value: WinUI.PenLineCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeEndLineCap(pThis, value)) + } + } + + internal func get_StrokeLineJoinImpl() throws -> WinUI.PenLineJoin { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineJoin = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeLineJoin(pThis, &value)) + } + return value + } + + internal func put_StrokeLineJoinImpl(_ value: WinUI.PenLineJoin) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeLineJoin(pThis, value)) + } + } + + internal func get_StrokeDashOffsetImpl() throws -> Double { + var value: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashOffset(pThis, &value)) + } + return value + } + + internal func put_StrokeDashOffsetImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeDashOffset(pThis, value)) + } + } + + internal func get_StrokeDashCapImpl() throws -> WinUI.PenLineCap { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CPenLineCap = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashCap(pThis, &value)) + } + return value + } + + internal func put_StrokeDashCapImpl(_ value: WinUI.PenLineCap) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeDashCap(pThis, value)) + } + } + + internal func get_StrokeDashArrayImpl() throws -> WinUI.DoubleCollection? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashArray(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func put_StrokeDashArrayImpl(_ value: WinUI.DoubleCollection?) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_StrokeDashArray(pThis, RawPointer(value))) + } + } + + internal func get_StretchImpl() throws -> WinUI.Stretch { + var value: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CStretch = .init(0) + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Stretch(pThis, &value)) + } + return value + } + + internal func put_StretchImpl(_ value: WinUI.Stretch) throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.put_Stretch(pThis, value)) + } + } + + internal func get_GeometryTransformImpl() throws -> WinUI.Transform? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_GeometryTransform(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func GetAlphaMaskImpl() throws -> WinAppSDK.CompositionBrush? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAlphaMask(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + + } + + public class IShapeFactory: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeFactory } + + internal func CreateInstanceImpl(_ baseInterface: UnsealedWinRTClassWrapper?, _ innerInterface: inout WindowsFoundation.IInspectable?) throws -> IShape { + let (value) = try ComPtrs.initialize { valueAbi in + let _baseInterface = baseInterface?.toIInspectableABI { $0 } + let (_innerInterface) = try ComPtrs.initialize { _innerInterfaceAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeFactory.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.CreateInstance(pThis, _baseInterface, &_innerInterfaceAbi, &valueAbi)) + } + } + innerInterface = WindowsFoundation.IInspectable(_innerInterface!) + } + return IShape(value!) + } + + } + + public class IShapeStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics } + + internal func get_FillPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_FillProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokePropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeMiterLimitPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeMiterLimitProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeThicknessPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeThicknessProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeStartLineCapPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeStartLineCapProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeEndLineCapPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeEndLineCapProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeLineJoinPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeLineJoinProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeDashOffsetPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashOffsetProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeDashCapPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashCapProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StrokeDashArrayPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StrokeDashArrayProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + internal func get_StretchPropertyImpl() throws -> WinUI.DependencyProperty? { + let (value) = try ComPtrs.initialize { valueAbi in + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShapeStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_StretchProperty(pThis, &valueAbi)) + } + } + return .from(abi: value) + } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+Impl.swift new file mode 100644 index 0000000..65c5ae6 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes+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_Xaml_Shapes { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes.swift new file mode 100644 index 0000000..4ae5838 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.Shapes.swift @@ -0,0 +1,378 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.ellipse) +public final class Ellipse : WinUI.Shape { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IEllipse + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIEllipse + 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_CXaml_CShapes_CIEllipse>?) -> Ellipse? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Shapes.Ellipse"))) + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Ellipse + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIEllipse + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IEllipse + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.path) +open class Path : WinUI.Shape { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IPath + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath + 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_CXaml_CShapes_CIPath>?) -> Path? { + 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 _IPathFactory : __ABI_Microsoft_UI_Xaml_Shapes.IPathFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Shapes.Path")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IPathFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IPathStatics: __ABI_Microsoft_UI_Xaml_Shapes.IPathStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Shapes.Path")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.path.dataproperty) + public class var dataProperty : WinUI.DependencyProperty! { + get { try! _IPathStatics.get_DataPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.path.data) + public var data : WinUI.Geometry! { + get { try! _default.get_DataImpl() } + set { try! _default.put_DataImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Path + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIPath + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IPath + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle) +public final class Rectangle : WinUI.Shape { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IRectangle + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle + 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_CXaml_CShapes_CIRectangle>?) -> Rectangle? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Shapes.Rectangle"))) + } + + private static let _IRectangleStatics: __ABI_Microsoft_UI_Xaml_Shapes.IRectangleStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Shapes.Rectangle")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusxproperty) + public static var radiusXProperty : WinUI.DependencyProperty! { + get { try! _IRectangleStatics.get_RadiusXPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusyproperty) + public static var radiusYProperty : WinUI.DependencyProperty! { + get { try! _IRectangleStatics.get_RadiusYPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusx) + public var radiusX : Double { + get { try! _default.get_RadiusXImpl() } + set { try! _default.put_RadiusXImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusy) + public var radiusY : Double { + get { try! _default.get_RadiusYImpl() } + set { try! _default.put_RadiusYImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Rectangle + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIRectangle + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IRectangle + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape) +open class Shape : WinUI.FrameworkElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IShape + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape + 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_CXaml_CShapes_CIShape>?) -> Shape? { + 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 _IShapeFactory : __ABI_Microsoft_UI_Xaml_Shapes.IShapeFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Shapes.Shape")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IShapeFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IShapeStatics: __ABI_Microsoft_UI_Xaml_Shapes.IShapeStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Shapes.Shape")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.fillproperty) + public class var fillProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_FillPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.stretchproperty) + public class var stretchProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StretchPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedasharrayproperty) + public class var strokeDashArrayProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeDashArrayPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedashcapproperty) + public class var strokeDashCapProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeDashCapPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedashoffsetproperty) + public class var strokeDashOffsetProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeDashOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokeendlinecapproperty) + public class var strokeEndLineCapProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeEndLineCapPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokelinejoinproperty) + public class var strokeLineJoinProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeLineJoinPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokemiterlimitproperty) + public class var strokeMiterLimitProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeMiterLimitPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokeproperty) + public class var strokeProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokestartlinecapproperty) + public class var strokeStartLineCapProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeStartLineCapPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokethicknessproperty) + public class var strokeThicknessProperty : WinUI.DependencyProperty! { + get { try! _IShapeStatics.get_StrokeThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.getalphamask) + public func getAlphaMask() throws -> WinAppSDK.CompositionBrush! { + try _default.GetAlphaMaskImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.fill) + public var fill : WinUI.Brush! { + get { try! _default.get_FillImpl() } + set { try! _default.put_FillImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.geometrytransform) + public var geometryTransform : WinUI.Transform! { + get { try! _default.get_GeometryTransformImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.stretch) + public var stretch : WinUI.Stretch { + 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.xaml.shapes.shape.stroke) + public var stroke : WinUI.Brush! { + get { try! _default.get_StrokeImpl() } + set { try! _default.put_StrokeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedasharray) + public var strokeDashArray : WinUI.DoubleCollection! { + get { try! _default.get_StrokeDashArrayImpl() } + set { try! _default.put_StrokeDashArrayImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedashcap) + public var strokeDashCap : WinUI.PenLineCap { + 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.xaml.shapes.shape.strokedashoffset) + public var strokeDashOffset : Double { + 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.xaml.shapes.shape.strokeendlinecap) + public var strokeEndLineCap : WinUI.PenLineCap { + get { try! _default.get_StrokeEndLineCapImpl() } + set { try! _default.put_StrokeEndLineCapImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokelinejoin) + public var strokeLineJoin : WinUI.PenLineJoin { + 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.xaml.shapes.shape.strokemiterlimit) + public var strokeMiterLimit : Double { + 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.xaml.shapes.shape.strokestartlinecap) + public var strokeStartLineCap : WinUI.PenLineCap { + get { try! _default.get_StrokeStartLineCapImpl() } + set { try! _default.put_StrokeStartLineCapImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokethickness) + public var strokeThickness : Double { + get { try! _default.get_StrokeThicknessImpl() } + set { try! _default.put_StrokeThicknessImpl(newValue) } + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = Shape + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CShapes_CIShape + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Shapes.IShape + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+ABI.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+ABI.swift new file mode 100644 index 0000000..ad0c604 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+ABI.swift @@ -0,0 +1,32 @@ +// 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_CXaml_CXamlTypeInfo_CIXamlControlsXamlMetaDataProvider: WindowsFoundation.IID { + .init(Data1: 0x17FA3F58, Data2: 0x3472, Data3: 0x5AA2, Data4: ( 0xA0,0xF8,0x1A,0xB8,0xA5,0x19,0x57,0x3D ))// 17FA3F58-3472-5AA2-A0F8-1AB8A519573D +} + +private var IID___x_ABI_CMicrosoft_CUI_CXaml_CXamlTypeInfo_CIXamlControlsXamlMetaDataProviderStatics: WindowsFoundation.IID { + .init(Data1: 0x2D7EB3FD, Data2: 0xECDB, Data3: 0x5084, Data4: ( 0xB7,0xE0,0x12,0xF9,0x59,0x83,0x81,0xEF ))// 2D7EB3FD-ECDB-5084-B7E0-12F9598381EF +} + +public enum __ABI_Microsoft_UI_Xaml_XamlTypeInfo { + public class IXamlControlsXamlMetaDataProvider: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CXamlTypeInfo_CIXamlControlsXamlMetaDataProvider } + + } + + public class IXamlControlsXamlMetaDataProviderStatics: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_CMicrosoft_CUI_CXaml_CXamlTypeInfo_CIXamlControlsXamlMetaDataProviderStatics } + + internal func InitializeImpl() throws { + _ = try perform(as: __x_ABI_CMicrosoft_CUI_CXaml_CXamlTypeInfo_CIXamlControlsXamlMetaDataProviderStatics.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Initialize(pThis)) + } + } + + } + +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+Impl.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+Impl.swift new file mode 100644 index 0000000..ab599a8 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo+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_Xaml_XamlTypeInfo { +} diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo.swift new file mode 100644 index 0000000..5bd0d67 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.XamlTypeInfo.swift @@ -0,0 +1,60 @@ +// 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.xaml.xamltypeinfo.xamlcontrolsxamlmetadataprovider) +public final class XamlControlsXamlMetaDataProvider : WinRTClass, WinUI.IXamlMetadataProvider { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProvider + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CMarkup_CIXamlMetadataProvider + 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_CXaml_CMarkup_CIXamlMetadataProvider>?) -> XamlControlsXamlMetaDataProvider? { + 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.Xaml.XamlTypeInfo.XamlControlsXamlMetaDataProvider"))) + } + + private static let _IXamlControlsXamlMetaDataProviderStatics: __ABI_Microsoft_UI_Xaml_XamlTypeInfo.IXamlControlsXamlMetaDataProviderStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.XamlTypeInfo.XamlControlsXamlMetaDataProvider")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamltypeinfo.xamlcontrolsxamlmetadataprovider.initialize) + public static func initialize() { + try! _IXamlControlsXamlMetaDataProviderStatics.InitializeImpl() + } + + private lazy var _IXamlControlsXamlMetaDataProvider: __ABI_Microsoft_UI_Xaml_XamlTypeInfo.IXamlControlsXamlMetaDataProvider! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamltypeinfo.xamlcontrolsxamlmetadataprovider.getxamltype) + public func getXamlType(_ type: WinUI.TypeName) throws -> WinUI.AnyIXamlType! { + try _default.GetXamlTypeImpl(type) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamltypeinfo.xamlcontrolsxamlmetadataprovider.getxamltype) + public func getXamlType(_ fullName: String) throws -> WinUI.AnyIXamlType! { + try _default.GetXamlTypeByFullNameImpl(fullName) + } + + deinit { + _IXamlControlsXamlMetaDataProvider = nil + _default = nil + } +} + diff --git a/Sources/WinUI/Generated/Microsoft.UI.Xaml.swift b/Sources/WinUI/Generated/Microsoft.UI.Xaml.swift new file mode 100644 index 0000000..4788bc4 --- /dev/null +++ b/Sources/WinUI/Generated/Microsoft.UI.Xaml.swift @@ -0,0 +1,5960 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.applicationhighcontrastadjustment) +public typealias ApplicationHighContrastAdjustment = __x_ABI_CMicrosoft_CUI_CXaml_CApplicationHighContrastAdjustment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.applicationtheme) +public typealias ApplicationTheme = __x_ABI_CMicrosoft_CUI_CXaml_CApplicationTheme +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dispatchershutdownmode) +public typealias DispatcherShutdownMode = __x_ABI_CMicrosoft_CUI_CXaml_CDispatcherShutdownMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.durationtype) +public typealias DurationType = __x_ABI_CMicrosoft_CUI_CXaml_CDurationType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementhighcontrastadjustment) +public typealias ElementHighContrastAdjustment = __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementsoundmode) +public typealias ElementSoundMode = __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementtheme) +public typealias ElementTheme = __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.flowdirection) +public typealias FlowDirection = __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.focusstate) +public typealias FocusState = __x_ABI_CMicrosoft_CUI_CXaml_CFocusState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.focusvisualkind) +public typealias FocusVisualKind = __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.gridunittype) +public typealias GridUnitType = __x_ABI_CMicrosoft_CUI_CXaml_CGridUnitType +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.horizontalalignment) +public typealias HorizontalAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.layoutcycledebugbreaklevel) +public typealias LayoutCycleDebugBreakLevel = __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.layoutcycletracinglevel) +public typealias LayoutCycleTracingLevel = __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.linestackingstrategy) +public typealias LineStackingStrategy = __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.opticalmarginalignment) +public typealias OpticalMarginAlignment = __x_ABI_CMicrosoft_CUI_CXaml_COpticalMarginAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.textalignment) +public typealias TextAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.textlinebounds) +public typealias TextLineBounds = __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.textreadingorder) +public typealias TextReadingOrder = __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.texttrimming) +public typealias TextTrimming = __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.textwrapping) +public typealias TextWrapping = __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.vector3transitioncomponents) +public typealias Vector3TransitionComponents = __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.verticalalignment) +public typealias VerticalAlignment = __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.visibility) +public typealias Visibility = __x_ABI_CMicrosoft_CUI_CXaml_CVisibility +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.windowactivationstate) +public typealias WindowActivationState = __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application) +open class Application : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IApplication + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIApplication + 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_CXaml_CIApplication>?) -> Application? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml.IApplicationOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml.IApplicationOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IApplicationFactory : __ABI_Microsoft_UI_Xaml.IApplicationFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Application")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IApplicationFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IApplicationStatics: __ABI_Microsoft_UI_Xaml.IApplicationStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Application")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.start) + public class func start(_ callback: ApplicationInitializationCallback!) { + try! _IApplicationStatics.StartImpl(callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.loadcomponent) + public class func loadComponent(_ component: Any!, _ resourceLocator: WindowsFoundation.Uri!) { + try! _IApplicationStatics.LoadComponentImpl(component, resourceLocator) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.loadcomponent) + public class func loadComponent(_ component: Any!, _ resourceLocator: WindowsFoundation.Uri!, _ componentResourceLocation: WinUI.ComponentResourceLocation) { + try! _IApplicationStatics.LoadComponentWithResourceLocationImpl(component, resourceLocator, componentResourceLocation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.current) + public class var current : Application! { + get { try! _IApplicationStatics.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.exit) + public func exit() throws { + try _default.ExitImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.debugsettings) + public var debugSettings : DebugSettings! { + get { try! _default.get_DebugSettingsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.focusvisualkind) + public var focusVisualKind : FocusVisualKind { + get { try! _default.get_FocusVisualKindImpl() } + set { try! _default.put_FocusVisualKindImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.highcontrastadjustment) + public var highContrastAdjustment : ApplicationHighContrastAdjustment { + get { try! _default.get_HighContrastAdjustmentImpl() } + set { try! _default.put_HighContrastAdjustmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.requestedtheme) + public var requestedTheme : ApplicationTheme { + get { try! _default.get_RequestedThemeImpl() } + set { try! _default.put_RequestedThemeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.resources) + public var resources : ResourceDictionary! { + get { try! _default.get_ResourcesImpl() } + set { try! _default.put_ResourcesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.unhandledexception) + public lazy var unhandledException : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_UnhandledExceptionImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_UnhandledExceptionImpl($0) + } + ) + }() + + private lazy var _IApplication2: __ABI_Microsoft_UI_Xaml.IApplication2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.resourcemanagerrequested) + public lazy var resourceManagerRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IApplication2 else { return .init() } + return try! this.add_ResourceManagerRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._IApplication2.remove_ResourceManagerRequestedImpl($0) + } + ) + }() + + private lazy var _IApplication3: __ABI_Microsoft_UI_Xaml.IApplication3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.dispatchershutdownmode) + public var dispatcherShutdownMode : DispatcherShutdownMode { + get { try! _IApplication3.get_DispatcherShutdownModeImpl() } + set { try! _IApplication3.put_DispatcherShutdownModeImpl(newValue) } + } + + private lazy var _IApplicationOverrides: __ABI_Microsoft_UI_Xaml.IApplicationOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.onlaunched) + open func onLaunched(_ args: LaunchActivatedEventArgs!) throws { + try _IApplicationOverrides.OnLaunchedImpl(args) + } + + internal enum IApplicationOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IApplicationOverrides + internal typealias Class = Application + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIApplication + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IApplication + } + } + internal typealias Composable = IApplicationOverrides + deinit { + _default = nil + _IApplication2 = nil + _IApplication3 = nil + _IApplicationOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.applicationinitializationcallbackparams) +public final class ApplicationInitializationCallbackParams : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IApplicationInitializationCallbackParams + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIApplicationInitializationCallbackParams + 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_CXaml_CIApplicationInitializationCallbackParams>?) -> ApplicationInitializationCallbackParams? { + 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.xaml.bindingfailedeventargs) +public final class BindingFailedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IBindingFailedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBindingFailedEventArgs + 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_CXaml_CIBindingFailedEventArgs>?) -> BindingFailedEventArgs? { + 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.xaml.bindingfailedeventargs.message) + public var message : String { + get { try! _default.get_MessageImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions) +public final class BringIntoViewOptions : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IBringIntoViewOptions + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewOptions + 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_CXaml_CIBringIntoViewOptions>?) -> BringIntoViewOptions? { + 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.Xaml.BringIntoViewOptions"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions.animationdesired) + public var animationDesired : Bool { + get { try! _default.get_AnimationDesiredImpl() } + set { try! _default.put_AnimationDesiredImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions.horizontalalignmentratio) + public var horizontalAlignmentRatio : Double { + 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.xaml.bringintoviewoptions.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + set { try! _default.put_HorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions.targetrect) + public var targetRect : WindowsFoundation.Rect? { + get { try! _default.get_TargetRectImpl() } + set { try! _default.put_TargetRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions.verticalalignmentratio) + public var verticalAlignmentRatio : Double { + get { try! _default.get_VerticalAlignmentRatioImpl() } + set { try! _default.put_VerticalAlignmentRatioImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewoptions.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + set { try! _default.put_VerticalOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs) +public final class BringIntoViewRequestedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IBringIntoViewRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBringIntoViewRequestedEventArgs + 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_CXaml_CIBringIntoViewRequestedEventArgs>?) -> BringIntoViewRequestedEventArgs? { + 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.xaml.bringintoviewrequestedeventargs.animationdesired) + public var animationDesired : Bool { + get { try! _default.get_AnimationDesiredImpl() } + set { try! _default.put_AnimationDesiredImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.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.xaml.bringintoviewrequestedeventargs.horizontalalignmentratio) + public var horizontalAlignmentRatio : Double { + get { try! _default.get_HorizontalAlignmentRatioImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.horizontaloffset) + public var horizontalOffset : Double { + get { try! _default.get_HorizontalOffsetImpl() } + set { try! _default.put_HorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.targetelement) + public var targetElement : UIElement! { + get { try! _default.get_TargetElementImpl() } + set { try! _default.put_TargetElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.targetrect) + public var targetRect : WindowsFoundation.Rect { + get { try! _default.get_TargetRectImpl() } + set { try! _default.put_TargetRectImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.verticalalignmentratio) + public var verticalAlignmentRatio : Double { + get { try! _default.get_VerticalAlignmentRatioImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.bringintoviewrequestedeventargs.verticaloffset) + public var verticalOffset : Double { + get { try! _default.get_VerticalOffsetImpl() } + set { try! _default.put_VerticalOffsetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.brushtransition) +open class BrushTransition : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IBrushTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition + 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_CXaml_CIBrushTransition>?) -> BrushTransition? { + 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 _IBrushTransitionFactory : __ABI_Microsoft_UI_Xaml.IBrushTransitionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.BrushTransition")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IBrushTransitionFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.brushtransition.duration) + public var duration : WindowsFoundation.TimeSpan { + get { try! _default.get_DurationImpl() } + set { try! _default.put_DurationImpl(newValue) } + } + + internal enum IBrushTransition : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = BrushTransition + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIBrushTransition + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IBrushTransition + } + } + internal typealias Composable = IBrushTransition + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datacontextchangedeventargs) +public final class DataContextChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDataContextChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDataContextChangedEventArgs + 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_CXaml_CIDataContextChangedEventArgs>?) -> DataContextChangedEventArgs? { + 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.xaml.datacontextchangedeventargs.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.xaml.datacontextchangedeventargs.newvalue) + public var newValue : Any! { + get { try! _default.get_NewValueImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate) +open class DataTemplate : WinUI.FrameworkTemplate, IElementFactory { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDataTemplate + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate + 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_CXaml_CIDataTemplate>?) -> DataTemplate? { + 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 _IDataTemplateFactory : __ABI_Microsoft_UI_Xaml.IDataTemplateFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.DataTemplate")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IDataTemplateFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IDataTemplateStatics: __ABI_Microsoft_UI_Xaml.IDataTemplateStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.DataTemplate")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.getextensioninstance) + public class func getExtensionInstance(_ element: FrameworkElement!) -> AnyIDataTemplateExtension! { + return try! _IDataTemplateStatics.GetExtensionInstanceImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.setextensioninstance) + public class func setExtensionInstance(_ element: FrameworkElement!, _ value: AnyIDataTemplateExtension!) { + try! _IDataTemplateStatics.SetExtensionInstanceImpl(element, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.extensioninstanceproperty) + public class var extensionInstanceProperty : DependencyProperty! { + get { try! _IDataTemplateStatics.get_ExtensionInstancePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.loadcontent) + public func loadContent() throws -> DependencyObject! { + try _default.LoadContentImpl() + } + + private lazy var _IElementFactory: __ABI_Microsoft_UI_Xaml.IElementFactory! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.getelement) + public func getElement(_ args: ElementFactoryGetArgs!) throws -> UIElement! { + try _IElementFactory.GetElementImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.datatemplate.recycleelement) + public func recycleElement(_ args: ElementFactoryRecycleArgs!) throws { + try _IElementFactory.RecycleElementImpl(args) + } + + internal enum IDataTemplate : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = DataTemplate + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDataTemplate + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDataTemplate + } + } + internal typealias Composable = IDataTemplate + deinit { + _default = nil + _IElementFactory = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings) +public final class DebugSettings : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDebugSettings + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDebugSettings + 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_CXaml_CIDebugSettings>?) -> DebugSettings? { + 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.xaml.debugsettings.enableframeratecounter) + public var enableFrameRateCounter : Bool { + get { try! _default.get_EnableFrameRateCounterImpl() } + set { try! _default.put_EnableFrameRateCounterImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.failfastonerrors) + public var failFastOnErrors : Bool { + get { try! _default.get_FailFastOnErrorsImpl() } + set { try! _default.put_FailFastOnErrorsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.isbindingtracingenabled) + public var isBindingTracingEnabled : Bool { + get { try! _default.get_IsBindingTracingEnabledImpl() } + set { try! _default.put_IsBindingTracingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.istextperformancevisualizationenabled) + public var isTextPerformanceVisualizationEnabled : Bool { + get { try! _default.get_IsTextPerformanceVisualizationEnabledImpl() } + set { try! _default.put_IsTextPerformanceVisualizationEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.bindingfailed) + public lazy var bindingFailed : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_BindingFailedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_BindingFailedImpl($0) + } + ) + }() + + private lazy var _IDebugSettings2: __ABI_Microsoft_UI_Xaml.IDebugSettings2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.isxamlresourcereferencetracingenabled) + public var isXamlResourceReferenceTracingEnabled : Bool { + get { try! _IDebugSettings2.get_IsXamlResourceReferenceTracingEnabledImpl() } + set { try! _IDebugSettings2.put_IsXamlResourceReferenceTracingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.xamlresourcereferencefailed) + public lazy var xamlResourceReferenceFailed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._IDebugSettings2 else { return .init() } + return try! this.add_XamlResourceReferenceFailedImpl($0) + }, + remove: { [weak self] in + try? self?._IDebugSettings2.remove_XamlResourceReferenceFailedImpl($0) + } + ) + }() + + private lazy var _IDebugSettings3: __ABI_Microsoft_UI_Xaml.IDebugSettings3! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.layoutcycledebugbreaklevel) + public var layoutCycleDebugBreakLevel : LayoutCycleDebugBreakLevel { + get { try! _IDebugSettings3.get_LayoutCycleDebugBreakLevelImpl() } + set { try! _IDebugSettings3.put_LayoutCycleDebugBreakLevelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.debugsettings.layoutcycletracinglevel) + public var layoutCycleTracingLevel : LayoutCycleTracingLevel { + get { try! _IDebugSettings3.get_LayoutCycleTracingLevelImpl() } + set { try! _IDebugSettings3.put_LayoutCycleTracingLevelImpl(newValue) } + } + + deinit { + _default = nil + _IDebugSettings2 = nil + _IDebugSettings3 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject) +open class DependencyObject : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDependencyObject + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject + 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_CXaml_CIDependencyObject>?) -> DependencyObject? { + 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 _IDependencyObjectFactory : __ABI_Microsoft_UI_Xaml.IDependencyObjectFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.DependencyObject")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IDependencyObjectFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.getvalue) + public func getValue(_ dp: DependencyProperty!) throws -> Any! { + try _default.GetValueImpl(dp) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.setvalue) + public func setValue(_ dp: DependencyProperty!, _ value: Any!) throws { + try _default.SetValueImpl(dp, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.clearvalue) + public func clearValue(_ dp: DependencyProperty!) throws { + try _default.ClearValueImpl(dp) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.readlocalvalue) + public func readLocalValue(_ dp: DependencyProperty!) throws -> Any! { + try _default.ReadLocalValueImpl(dp) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.getanimationbasevalue) + public func getAnimationBaseValue(_ dp: DependencyProperty!) throws -> Any! { + try _default.GetAnimationBaseValueImpl(dp) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.registerpropertychangedcallback) + public func registerPropertyChangedCallback(_ dp: DependencyProperty!, _ callback: DependencyPropertyChangedCallback!) throws -> Int64 { + try _default.RegisterPropertyChangedCallbackImpl(dp, callback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.unregisterpropertychangedcallback) + public func unregisterPropertyChangedCallback(_ dp: DependencyProperty!, _ token: Int64) throws { + try _default.UnregisterPropertyChangedCallbackImpl(dp, token) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.dispatcher) + public var dispatcher : UWP.CoreDispatcher! { + get { try! _default.get_DispatcherImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyobject.dispatcherqueue) + public var dispatcherQueue : WinAppSDK.DispatcherQueue! { + get { try! _default.get_DispatcherQueueImpl() } + } + + internal enum IDependencyObject : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = DependencyObject + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyObject + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDependencyObject + } + } + internal typealias Composable = IDependencyObject + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyproperty) +public final class DependencyProperty : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDependencyProperty + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyProperty + 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_CXaml_CIDependencyProperty>?) -> DependencyProperty? { + 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 _IDependencyPropertyStatics: __ABI_Microsoft_UI_Xaml.IDependencyPropertyStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.DependencyProperty")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyproperty.register) + public static func register(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ typeMetadata: PropertyMetadata!) -> DependencyProperty! { + return try! _IDependencyPropertyStatics.RegisterImpl(name, propertyType, ownerType, typeMetadata) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyproperty.registerattached) + public static func registerAttached(_ name: String, _ propertyType: WinUI.TypeName, _ ownerType: WinUI.TypeName, _ defaultMetadata: PropertyMetadata!) -> DependencyProperty! { + return try! _IDependencyPropertyStatics.RegisterAttachedImpl(name, propertyType, ownerType, defaultMetadata) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyproperty.unsetvalue) + public static var unsetValue : Any! { + get { try! _IDependencyPropertyStatics.get_UnsetValueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencyproperty.getmetadata) + public func getMetadata(_ forType: WinUI.TypeName) throws -> PropertyMetadata! { + try _default.GetMetadataImpl(forType) + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencypropertychangedeventargs) +public final class DependencyPropertyChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDependencyPropertyChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDependencyPropertyChangedEventArgs + 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_CXaml_CIDependencyPropertyChangedEventArgs>?) -> DependencyPropertyChangedEventArgs? { + 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.xaml.dependencypropertychangedeventargs.newvalue) + public var newValue : Any! { + get { try! _default.get_NewValueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencypropertychangedeventargs.oldvalue) + public var oldValue : Any! { + get { try! _default.get_OldValueImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dependencypropertychangedeventargs.property) + public var property : DependencyProperty! { + get { try! _default.get_PropertyImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs) +public final class DragEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDragEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragEventArgs + 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_CXaml_CIDragEventArgs>?) -> DragEventArgs? { + 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.xaml.drageventargs.getdeferral) + public func getDeferral() throws -> DragOperationDeferral! { + try _default.GetDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.getposition) + public func getPosition(_ relativeTo: UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.acceptedoperation) + public var acceptedOperation : UWP.DataPackageOperation { + get { try! _default.get_AcceptedOperationImpl() } + set { try! _default.put_AcceptedOperationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.allowedoperations) + public var allowedOperations : UWP.DataPackageOperation { + get { try! _default.get_AllowedOperationsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.data) + public var data : UWP.DataPackage! { + get { try! _default.get_DataImpl() } + set { try! _default.put_DataImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.dataview) + public var dataView : UWP.DataPackageView! { + get { try! _default.get_DataViewImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.draguioverride) + public var dragUIOverride : DragUIOverride! { + get { try! _default.get_DragUIOverrideImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.drageventargs.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.xaml.drageventargs.modifiers) + public var modifiers : UWP.DragDropModifiers { + get { try! _default.get_ModifiersImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragoperationdeferral) +public final class DragOperationDeferral : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDragOperationDeferral + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragOperationDeferral + 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_CXaml_CIDragOperationDeferral>?) -> DragOperationDeferral? { + 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.xaml.dragoperationdeferral.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.xaml.dragstartingeventargs) +public final class DragStartingEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDragStartingEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragStartingEventArgs + 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_CXaml_CIDragStartingEventArgs>?) -> DragStartingEventArgs? { + 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.xaml.dragstartingeventargs.getdeferral) + public func getDeferral() throws -> DragOperationDeferral! { + try _default.GetDeferralImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragstartingeventargs.getposition) + public func getPosition(_ relativeTo: UIElement!) throws -> WindowsFoundation.Point { + try _default.GetPositionImpl(relativeTo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragstartingeventargs.allowedoperations) + public var allowedOperations : UWP.DataPackageOperation { + get { try! _default.get_AllowedOperationsImpl() } + set { try! _default.put_AllowedOperationsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragstartingeventargs.cancel) + public var cancel : Bool { + get { try! _default.get_CancelImpl() } + set { try! _default.put_CancelImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragstartingeventargs.data) + public var data : UWP.DataPackage! { + get { try! _default.get_DataImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragstartingeventargs.dragui) + public var dragUI : DragUI! { + get { try! _default.get_DragUIImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragui) +public final class DragUI : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDragUI + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragUI + 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_CXaml_CIDragUI>?) -> DragUI? { + 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.xaml.dragui.setcontentfrombitmapimage) + public func setContentFromBitmapImage(_ bitmapImage: WinUI.BitmapImage!) throws { + try _default.SetContentFromBitmapImageImpl(bitmapImage) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragui.setcontentfrombitmapimage) + public func setContentFromBitmapImage(_ bitmapImage: WinUI.BitmapImage!, _ anchorPoint: WindowsFoundation.Point) throws { + try _default.SetContentFromBitmapImageWithAnchorPointImpl(bitmapImage, anchorPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragui.setcontentfromsoftwarebitmap) + public func setContentFromSoftwareBitmap(_ softwareBitmap: UWP.SoftwareBitmap!) throws { + try _default.SetContentFromSoftwareBitmapImpl(softwareBitmap) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragui.setcontentfromsoftwarebitmap) + public func setContentFromSoftwareBitmap(_ softwareBitmap: UWP.SoftwareBitmap!, _ anchorPoint: WindowsFoundation.Point) throws { + try _default.SetContentFromSoftwareBitmapWithAnchorPointImpl(softwareBitmap, anchorPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dragui.setcontentfromdatapackage) + public func setContentFromDataPackage() throws { + try _default.SetContentFromDataPackageImpl() + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride) +public final class DragUIOverride : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDragUIOverride + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDragUIOverride + 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_CXaml_CIDragUIOverride>?) -> DragUIOverride? { + 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.xaml.draguioverride.clear) + public func clear() throws { + try _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.setcontentfrombitmapimage) + public func setContentFromBitmapImage(_ bitmapImage: WinUI.BitmapImage!) throws { + try _default.SetContentFromBitmapImageImpl(bitmapImage) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.setcontentfrombitmapimage) + public func setContentFromBitmapImage(_ bitmapImage: WinUI.BitmapImage!, _ anchorPoint: WindowsFoundation.Point) throws { + try _default.SetContentFromBitmapImageWithAnchorPointImpl(bitmapImage, anchorPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.setcontentfromsoftwarebitmap) + public func setContentFromSoftwareBitmap(_ softwareBitmap: UWP.SoftwareBitmap!) throws { + try _default.SetContentFromSoftwareBitmapImpl(softwareBitmap) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.setcontentfromsoftwarebitmap) + public func setContentFromSoftwareBitmap(_ softwareBitmap: UWP.SoftwareBitmap!, _ anchorPoint: WindowsFoundation.Point) throws { + try _default.SetContentFromSoftwareBitmapWithAnchorPointImpl(softwareBitmap, anchorPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.caption) + public var caption : String { + get { try! _default.get_CaptionImpl() } + set { try! _default.put_CaptionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.iscaptionvisible) + public var isCaptionVisible : Bool { + get { try! _default.get_IsCaptionVisibleImpl() } + set { try! _default.put_IsCaptionVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.iscontentvisible) + public var isContentVisible : Bool { + get { try! _default.get_IsContentVisibleImpl() } + set { try! _default.put_IsContentVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.draguioverride.isglyphvisible) + public var isGlyphVisible : Bool { + get { try! _default.get_IsGlyphVisibleImpl() } + set { try! _default.put_IsGlyphVisibleImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.dropcompletedeventargs) +public final class DropCompletedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IDropCompletedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIDropCompletedEventArgs + 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_CXaml_CIDropCompletedEventArgs>?) -> DropCompletedEventArgs? { + 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.xaml.dropcompletedeventargs.dropresult) + public var dropResult : UWP.DataPackageOperation { + get { try! _default.get_DropResultImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.effectiveviewportchangedeventargs) +public final class EffectiveViewportChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IEffectiveViewportChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIEffectiveViewportChangedEventArgs + 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_CXaml_CIEffectiveViewportChangedEventArgs>?) -> EffectiveViewportChangedEventArgs? { + 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.xaml.effectiveviewportchangedeventargs.bringintoviewdistancex) + public var bringIntoViewDistanceX : Double { + get { try! _default.get_BringIntoViewDistanceXImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.effectiveviewportchangedeventargs.bringintoviewdistancey) + public var bringIntoViewDistanceY : Double { + get { try! _default.get_BringIntoViewDistanceYImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.effectiveviewportchangedeventargs.effectiveviewport) + public var effectiveViewport : WindowsFoundation.Rect { + get { try! _default.get_EffectiveViewportImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.effectiveviewportchangedeventargs.maxviewport) + public var maxViewport : WindowsFoundation.Rect { + get { try! _default.get_MaxViewportImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactorygetargs) +open class ElementFactoryGetArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IElementFactoryGetArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs + 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_CXaml_CIElementFactoryGetArgs>?) -> ElementFactoryGetArgs? { + 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 _IElementFactoryGetArgsFactory : __ABI_Microsoft_UI_Xaml.IElementFactoryGetArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.ElementFactoryGetArgs")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IElementFactoryGetArgsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactorygetargs.data) + public var data : Any! { + get { try! _default.get_DataImpl() } + set { try! _default.put_DataImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactorygetargs.parent) + public var parent : UIElement! { + get { try! _default.get_ParentImpl() } + set { try! _default.put_ParentImpl(newValue) } + } + + internal enum IElementFactoryGetArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ElementFactoryGetArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryGetArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IElementFactoryGetArgs + } + } + internal typealias Composable = IElementFactoryGetArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactoryrecycleargs) +open class ElementFactoryRecycleArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IElementFactoryRecycleArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs + 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_CXaml_CIElementFactoryRecycleArgs>?) -> ElementFactoryRecycleArgs? { + 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 _IElementFactoryRecycleArgsFactory : __ABI_Microsoft_UI_Xaml.IElementFactoryRecycleArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.ElementFactoryRecycleArgs")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IElementFactoryRecycleArgsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactoryrecycleargs.element) + public var element : UIElement! { + get { try! _default.get_ElementImpl() } + set { try! _default.put_ElementImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.elementfactoryrecycleargs.parent) + public var parent : UIElement! { + get { try! _default.get_ParentImpl() } + set { try! _default.put_ParentImpl(newValue) } + } + + internal enum IElementFactoryRecycleArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ElementFactoryRecycleArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIElementFactoryRecycleArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IElementFactoryRecycleArgs + } + } + internal typealias Composable = IElementFactoryRecycleArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.exceptionroutedeventargs) +open class ExceptionRoutedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IExceptionRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs + 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_CXaml_CIExceptionRoutedEventArgs>?) -> ExceptionRoutedEventArgs? { + 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 _IExceptionRoutedEventArgsFactory : __ABI_Microsoft_UI_Xaml.IExceptionRoutedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.ExceptionRoutedEventArgs")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.exceptionroutedeventargs.errormessage) + public var errorMessage : String { + get { try! _default.get_ErrorMessageImpl() } + } + + internal enum IExceptionRoutedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ExceptionRoutedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIExceptionRoutedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IExceptionRoutedEventArgs + } + } + internal typealias Composable = IExceptionRoutedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement) +open class FrameworkElement : WinUI.UIElement { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement + 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_CXaml_CIFrameworkElement>?) -> FrameworkElement? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IFrameworkElementFactory : __ABI_Microsoft_UI_Xaml.IFrameworkElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.FrameworkElement")) + + public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFrameworkElementFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IFrameworkElementStatics: __ABI_Microsoft_UI_Xaml.IFrameworkElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.FrameworkElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.defertree) + public class func deferTree(_ element: DependencyObject!) { + try! _IFrameworkElementStatics.DeferTreeImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualheightproperty) + public class var actualHeightProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_ActualHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualthemeproperty) + public class var actualThemeProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_ActualThemePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualwidthproperty) + public class var actualWidthProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_ActualWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.allowfocusoninteractionproperty) + public class var allowFocusOnInteractionProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_AllowFocusOnInteractionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.allowfocuswhendisabledproperty) + public class var allowFocusWhenDisabledProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_AllowFocusWhenDisabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.datacontextproperty) + public class var dataContextProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_DataContextPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.flowdirectionproperty) + public class var flowDirectionProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FlowDirectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualmarginproperty) + public class var focusVisualMarginProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FocusVisualMarginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarybrushproperty) + public class var focusVisualPrimaryBrushProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FocusVisualPrimaryBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarythicknessproperty) + public class var focusVisualPrimaryThicknessProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FocusVisualPrimaryThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualsecondarybrushproperty) + public class var focusVisualSecondaryBrushProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FocusVisualSecondaryBrushPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualsecondarythicknessproperty) + public class var focusVisualSecondaryThicknessProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_FocusVisualSecondaryThicknessPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.heightproperty) + public class var heightProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_HeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.horizontalalignmentproperty) + public class var horizontalAlignmentProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_HorizontalAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.languageproperty) + public class var languageProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_LanguagePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.marginproperty) + public class var marginProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_MarginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.maxheightproperty) + public class var maxHeightProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_MaxHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.maxwidthproperty) + public class var maxWidthProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_MaxWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.minheightproperty) + public class var minHeightProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_MinHeightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.minwidthproperty) + public class var minWidthProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_MinWidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.nameproperty) + public class var nameProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_NamePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.requestedthemeproperty) + public class var requestedThemeProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_RequestedThemePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.styleproperty) + public class var styleProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_StylePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.tagproperty) + public class var tagProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_TagPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.verticalalignmentproperty) + public class var verticalAlignmentProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_VerticalAlignmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.widthproperty) + public class var widthProperty : DependencyProperty! { + get { try! _IFrameworkElementStatics.get_WidthPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.findname) + public func findName(_ name: String) throws -> Any! { + try _default.FindNameImpl(name) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.setbinding) + public func setBinding(_ dp: DependencyProperty!, _ binding: WinUI.BindingBase!) throws { + try _default.SetBindingImpl(dp, binding) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.getbindingexpression) + public func getBindingExpression(_ dp: DependencyProperty!) throws -> WinUI.BindingExpression! { + try _default.GetBindingExpressionImpl(dp) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualheight) + public var actualHeight : Double { + get { try! _default.get_ActualHeightImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualtheme) + public var actualTheme : ElementTheme { + get { try! _default.get_ActualThemeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualwidth) + public var actualWidth : Double { + get { try! _default.get_ActualWidthImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.allowfocusoninteraction) + public var allowFocusOnInteraction : Bool { + get { try! _default.get_AllowFocusOnInteractionImpl() } + set { try! _default.put_AllowFocusOnInteractionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.allowfocuswhendisabled) + public var allowFocusWhenDisabled : Bool { + get { try! _default.get_AllowFocusWhenDisabledImpl() } + set { try! _default.put_AllowFocusWhenDisabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.baseuri) + public var baseUri : WindowsFoundation.Uri! { + get { try! _default.get_BaseUriImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.datacontext) + public var dataContext : Any! { + get { try! _default.get_DataContextImpl() } + set { try! _default.put_DataContextImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.flowdirection) + public var flowDirection : FlowDirection { + get { try! _default.get_FlowDirectionImpl() } + set { try! _default.put_FlowDirectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualmargin) + public var focusVisualMargin : Thickness { + get { try! _default.get_FocusVisualMarginImpl() } + set { try! _default.put_FocusVisualMarginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarybrush) + public var focusVisualPrimaryBrush : WinUI.Brush! { + get { try! _default.get_FocusVisualPrimaryBrushImpl() } + set { try! _default.put_FocusVisualPrimaryBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarythickness) + public var focusVisualPrimaryThickness : Thickness { + get { try! _default.get_FocusVisualPrimaryThicknessImpl() } + set { try! _default.put_FocusVisualPrimaryThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualsecondarybrush) + public var focusVisualSecondaryBrush : WinUI.Brush! { + get { try! _default.get_FocusVisualSecondaryBrushImpl() } + set { try! _default.put_FocusVisualSecondaryBrushImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualsecondarythickness) + public var focusVisualSecondaryThickness : Thickness { + get { try! _default.get_FocusVisualSecondaryThicknessImpl() } + set { try! _default.put_FocusVisualSecondaryThicknessImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.height) + public var height : Double { + get { try! _default.get_HeightImpl() } + set { try! _default.put_HeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.horizontalalignment) + public var horizontalAlignment : HorizontalAlignment { + get { try! _default.get_HorizontalAlignmentImpl() } + set { try! _default.put_HorizontalAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.isloaded) + public var isLoaded : Bool { + get { try! _default.get_IsLoadedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.language) + public var language : String { + get { try! _default.get_LanguageImpl() } + set { try! _default.put_LanguageImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.margin) + public var margin : Thickness { + get { try! _default.get_MarginImpl() } + set { try! _default.put_MarginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.maxheight) + public var maxHeight : Double { + get { try! _default.get_MaxHeightImpl() } + set { try! _default.put_MaxHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.maxwidth) + public var maxWidth : Double { + get { try! _default.get_MaxWidthImpl() } + set { try! _default.put_MaxWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.minheight) + public var minHeight : Double { + get { try! _default.get_MinHeightImpl() } + set { try! _default.put_MinHeightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.minwidth) + public var minWidth : Double { + get { try! _default.get_MinWidthImpl() } + set { try! _default.put_MinWidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.name) + public var name : String { + get { try! _default.get_NameImpl() } + set { try! _default.put_NameImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.parent) + public var parent : DependencyObject! { + get { try! _default.get_ParentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.requestedtheme) + public var requestedTheme : ElementTheme { + get { try! _default.get_RequestedThemeImpl() } + set { try! _default.put_RequestedThemeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.resources) + public var resources : ResourceDictionary! { + get { try! _default.get_ResourcesImpl() } + set { try! _default.put_ResourcesImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.style) + public var style : Style! { + get { try! _default.get_StyleImpl() } + set { try! _default.put_StyleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.tag) + public var tag : Any! { + get { try! _default.get_TagImpl() } + set { try! _default.put_TagImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.triggers) + public var triggers : TriggerCollection! { + get { try! _default.get_TriggersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.verticalalignment) + public var verticalAlignment : VerticalAlignment { + get { try! _default.get_VerticalAlignmentImpl() } + set { try! _default.put_VerticalAlignmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.width) + public var width : Double { + get { try! _default.get_WidthImpl() } + set { try! _default.put_WidthImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.actualthemechanged) + public lazy var actualThemeChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ActualThemeChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ActualThemeChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.datacontextchanged) + public lazy var dataContextChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DataContextChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DataContextChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.effectiveviewportchanged) + public lazy var effectiveViewportChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_EffectiveViewportChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_EffectiveViewportChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.layoutupdated) + public lazy var layoutUpdated : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_LayoutUpdatedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_LayoutUpdatedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.loaded) + public lazy var loaded : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_LoadedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_LoadedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.loading) + public lazy var loading : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_LoadingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_LoadingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.sizechanged) + public lazy var sizeChanged : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SizeChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SizeChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.unloaded) + public lazy var unloaded : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_UnloadedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_UnloadedImpl($0) + } + ) + }() + + private lazy var _IFrameworkElementProtected: __ABI_Microsoft_UI_Xaml.IFrameworkElementProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.invalidateviewport) + public func invalidateViewport() throws { + try _IFrameworkElementProtected.InvalidateViewportImpl() + } + + private lazy var _IFrameworkElementOverrides: __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.measureoverride) + open func measureOverride(_ availableSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _IFrameworkElementOverrides.MeasureOverrideImpl(availableSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.arrangeoverride) + open func arrangeOverride(_ finalSize: WindowsFoundation.Size) throws -> WindowsFoundation.Size { + try _IFrameworkElementOverrides.ArrangeOverrideImpl(finalSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.onapplytemplate) + open func onApplyTemplate() throws { + try _IFrameworkElementOverrides.OnApplyTemplateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.gotoelementstatecore) + open func goToElementStateCore(_ stateName: String, _ useTransitions: Bool) throws -> Bool { + try _IFrameworkElementOverrides.GoToElementStateCoreImpl(stateName, useTransitions) + } + + internal enum IFrameworkElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElementOverrides + internal typealias Class = FrameworkElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkElement + } + } + internal typealias Composable = IFrameworkElementOverrides + deinit { + _default = nil + _IFrameworkElementProtected = nil + _IFrameworkElementOverrides = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworktemplate) +open class FrameworkTemplate : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkTemplate + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate + 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_CXaml_CIFrameworkTemplate>?) -> FrameworkTemplate? { + 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 _IFrameworkTemplateFactory : __ABI_Microsoft_UI_Xaml.IFrameworkTemplateFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.FrameworkTemplate")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IFrameworkTemplateFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + internal enum IFrameworkTemplate : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = FrameworkTemplate + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIFrameworkTemplate + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IFrameworkTemplate + } + } + internal typealias Composable = IFrameworkTemplate + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.launchactivatedeventargs) +public final class LaunchActivatedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ILaunchActivatedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CILaunchActivatedEventArgs + 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_CXaml_CILaunchActivatedEventArgs>?) -> LaunchActivatedEventArgs? { + 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.xaml.launchactivatedeventargs.arguments) + public var arguments : String { + get { try! _default.get_ArgumentsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.launchactivatedeventargs.uwplaunchactivatedeventargs) + public var uwpLaunchActivatedEventArgs : UWP.LaunchActivatedEventArgs! { + get { try! _default.get_UWPLaunchActivatedEventArgsImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata) +open class PropertyMetadata : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IPropertyMetadata + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata + 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_CXaml_CIPropertyMetadata>?) -> PropertyMetadata? { + 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 _IPropertyMetadataFactory : __ABI_Microsoft_UI_Xaml.IPropertyMetadataFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.PropertyMetadata")) + + public init(_ defaultValue: Any!) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IPropertyMetadataFactory.CreateInstanceWithDefaultValueImpl(defaultValue, baseInterface, &innerInterface) + } + } + + public init(_ defaultValue: Any!, _ propertyChangedCallback: PropertyChangedCallback!) { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IPropertyMetadataFactory.CreateInstanceWithDefaultValueAndCallbackImpl(defaultValue, propertyChangedCallback, baseInterface, &innerInterface) + } + } + + private static let _IPropertyMetadataStatics: __ABI_Microsoft_UI_Xaml.IPropertyMetadataStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.PropertyMetadata")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.create) + public class func create(_ defaultValue: Any!) -> PropertyMetadata! { + return try! _IPropertyMetadataStatics.CreateWithDefaultValueImpl(defaultValue) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.create) + public class func create(_ defaultValue: Any!, _ propertyChangedCallback: PropertyChangedCallback!) -> PropertyMetadata! { + return try! _IPropertyMetadataStatics.CreateWithDefaultValueAndCallbackImpl(defaultValue, propertyChangedCallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.create) + public class func create(_ createDefaultValueCallback: CreateDefaultValueCallback!) -> PropertyMetadata! { + return try! _IPropertyMetadataStatics.CreateWithFactoryImpl(createDefaultValueCallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.create) + public class func create(_ createDefaultValueCallback: CreateDefaultValueCallback!, _ propertyChangedCallback: PropertyChangedCallback!) -> PropertyMetadata! { + return try! _IPropertyMetadataStatics.CreateWithFactoryAndCallbackImpl(createDefaultValueCallback, propertyChangedCallback) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.createdefaultvaluecallback) + public var createDefaultValueCallback : CreateDefaultValueCallback! { + get { try! _default.get_CreateDefaultValueCallbackImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertymetadata.defaultvalue) + public var defaultValue : Any! { + get { try! _default.get_DefaultValueImpl() } + } + + internal enum IPropertyMetadata : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = PropertyMetadata + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyMetadata + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IPropertyMetadata + } + } + internal typealias Composable = IPropertyMetadata + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertypath) +public final class PropertyPath : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IPropertyPath + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIPropertyPath + 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_CXaml_CIPropertyPath>?) -> PropertyPath? { + 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 _IPropertyPathFactory: __ABI_Microsoft_UI_Xaml.IPropertyPathFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.PropertyPath")) + public init(_ path: String) { + super.init(fromAbi: try! Self._IPropertyPathFactory.CreateInstanceImpl(path)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.propertypath.path) + public var path : String { + get { try! _default.get_PathImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary) +open class ResourceDictionary : WinUI.DependencyObject, IMap, IIterable { + public typealias K = Any? + public typealias V = Any? + public typealias T = WindowsFoundation.AnyIKeyValuePair? + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IResourceDictionary + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary + 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_CXaml_CIResourceDictionary>?) -> ResourceDictionary? { + 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 _IResourceDictionaryFactory : __ABI_Microsoft_UI_Xaml.IResourceDictionaryFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.ResourceDictionary")) + + override public init() { + super.init(composing: Self.Composable.self) { baseInterface, innerInterface in + try! Self._IResourceDictionaryFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.mergeddictionaries) + public var mergedDictionaries : WindowsFoundation.AnyIVector! { + get { try! _default.get_MergedDictionariesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.source) + public var source : WindowsFoundation.Uri! { + 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.xaml.resourcedictionary.themedictionaries) + public var themeDictionaries : WindowsFoundation.AnyIMap! { + get { try! _default.get_ThemeDictionariesImpl() } + } + + private lazy var _IMap: IMapAny_Any! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.lookup) + public func lookup(_ key: Any?) -> Any? { + try! _IMap.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.haskey) + public func hasKey(_ key: Any?) -> Bool { + try! _IMap.HasKeyImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.getview) + public func getView() -> WindowsFoundation.AnyIMapView? { + try! _IMap.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.insert) + public func insert(_ key: Any?, _ value: Any?) -> Bool { + try! _IMap.InsertImpl(key, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.remove) + public func remove(_ key: Any?) { + try! _IMap.RemoveImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.clear) + public func clear() { + try! _IMap.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.size) + public var size : UInt32 { + get { try! _IMap.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableIKeyValuePairAny_Any! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcedictionary.first) + public func first() -> WindowsFoundation.AnyIIterator?>? { + try! _IIterable.FirstImpl() + } + + internal enum IResourceDictionary : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ResourceDictionary + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIResourceDictionary + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IResourceDictionary + } + } + internal typealias Composable = IResourceDictionary + deinit { + _default = nil + _IMap = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.resourcemanagerrequestedeventargs) +public final class ResourceManagerRequestedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IResourceManagerRequestedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIResourceManagerRequestedEventArgs + 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_CXaml_CIResourceManagerRequestedEventArgs>?) -> ResourceManagerRequestedEventArgs? { + 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.xaml.resourcemanagerrequestedeventargs.customresourcemanager) + public var customResourceManager : WinAppSDK.AnyIResourceManager! { + get { try! _default.get_CustomResourceManagerImpl() } + set { try! _default.put_CustomResourceManagerImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.routedevent) +public final class RoutedEvent : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IRoutedEvent + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEvent + 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_CXaml_CIRoutedEvent>?) -> RoutedEvent? { + 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.xaml.routedeventargs) +open class RoutedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IRoutedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs + 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_CXaml_CIRoutedEventArgs>?) -> RoutedEventArgs? { + 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 _IRoutedEventArgsFactory : __ABI_Microsoft_UI_Xaml.IRoutedEventArgsFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.RoutedEventArgs")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IRoutedEventArgsFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.routedeventargs.originalsource) + public var originalSource : Any! { + get { try! _default.get_OriginalSourceImpl() } + } + + internal enum IRoutedEventArgs : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = RoutedEventArgs + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIRoutedEventArgs + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IRoutedEventArgs + } + } + internal typealias Composable = IRoutedEventArgs + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.scalartransition) +open class ScalarTransition : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IScalarTransition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition + 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_CXaml_CIScalarTransition>?) -> ScalarTransition? { + 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 _IScalarTransitionFactory : __ABI_Microsoft_UI_Xaml.IScalarTransitionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.ScalarTransition")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IScalarTransitionFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.scalartransition.duration) + public var duration : WindowsFoundation.TimeSpan { + get { try! _default.get_DurationImpl() } + set { try! _default.put_DurationImpl(newValue) } + } + + internal enum IScalarTransition : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = ScalarTransition + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIScalarTransition + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IScalarTransition + } + } + internal typealias Composable = IScalarTransition + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setter) +public final class Setter : WinUI.SetterBase { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ISetter + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISetter + 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_CXaml_CISetter>?) -> Setter? { + 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) + } + + public init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Setter"))) + } + + private static let _ISetterFactory: __ABI_Microsoft_UI_Xaml.ISetterFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Setter")) + public init(_ targetProperty: DependencyProperty!, _ value: Any!) { + super.init(fromAbi: try! Self._ISetterFactory.CreateInstanceImpl(targetProperty, value)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setter.property) + public var property : DependencyProperty! { + get { try! _default.get_PropertyImpl() } + set { try! _default.put_PropertyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setter.target) + public var target : TargetPropertyPath! { + get { try! _default.get_TargetImpl() } + set { try! _default.put_TargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setter.value) + public var value : Any! { + 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.xaml.setterbase) +open class SetterBase : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ISetterBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISetterBase + 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_CXaml_CISetterBase>?) -> SetterBase? { + 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 _ISetterBaseFactory : __ABI_Microsoft_UI_Xaml.ISetterBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.SetterBase")) + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbase.issealed) + public var isSealed : Bool { + get { try! _default.get_IsSealedImpl() } + } + + internal enum ISetterBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = SetterBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISetterBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ISetterBase + } + } + internal typealias Composable = ISetterBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection) +public final class SetterBaseCollection : WinRTClass, IVector, IIterable { + public typealias T = SetterBase? + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ISetterBaseCollection + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISetterBaseCollection + 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_CXaml_CISetterBaseCollection>?) -> SetterBaseCollection? { + 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.Xaml.SetterBaseCollection"))) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.issealed) + public var isSealed : Bool { + get { try! _default.get_IsSealedImpl() } + } + + // 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: IVectorSetterBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.getat) + public func getAt(_ index: UInt32) -> SetterBase? { + try! _IVector.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _IVector.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.indexof) + public func indexOf(_ value: SetterBase?, _ index: inout UInt32) -> Bool { + try! _IVector.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.setat) + public func setAt(_ index: UInt32, _ value: SetterBase?) { + try! _IVector.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.insertat) + public func insertAt(_ index: UInt32, _ value: SetterBase?) { + try! _IVector.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.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.xaml.setterbasecollection.append) + public func append(_ value: SetterBase?) { + try! _IVector.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.removeatend) + public func removeAtEnd() { + try! _IVector.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.clear) + public func clear() { + try! _IVector.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.size) + public var size : UInt32 { + get { try! _IVector.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableSetterBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.setterbasecollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + deinit { + _default = nil + _IVector = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.sizechangedeventargs) +public final class SizeChangedEventArgs : WinUI.RoutedEventArgs { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ISizeChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CISizeChangedEventArgs + 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_CXaml_CISizeChangedEventArgs>?) -> SizeChangedEventArgs? { + 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.xaml.sizechangedeventargs.newsize) + public var newSize : WindowsFoundation.Size { + get { try! _default.get_NewSizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.sizechangedeventargs.previoussize) + public var previousSize : WindowsFoundation.Size { + get { try! _default.get_PreviousSizeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style) +public final class Style : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IStyle + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIStyle + 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_CXaml_CIStyle>?) -> Style? { + 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 init() { + super.init(fromAbi: try! RoActivateInstance(HString("Microsoft.UI.Xaml.Style"))) + } + + private static let _IStyleFactory: __ABI_Microsoft_UI_Xaml.IStyleFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Style")) + public init(_ targetType: WinUI.TypeName) { + super.init(fromAbi: try! Self._IStyleFactory.CreateInstanceImpl(targetType)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style.seal) + public func seal() throws { + try _default.SealImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style.basedon) + public var basedOn : Style! { + get { try! _default.get_BasedOnImpl() } + set { try! _default.put_BasedOnImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style.issealed) + public var isSealed : Bool { + get { try! _default.get_IsSealedImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style.setters) + public var setters : SetterBaseCollection! { + get { try! _default.get_SettersImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.style.targettype) + public var targetType : WinUI.TypeName { + get { try! _default.get_TargetTypeImpl() } + set { try! _default.put_TargetTypeImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.targetpropertypath) +public final class TargetPropertyPath : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ITargetPropertyPath + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CITargetPropertyPath + 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_CXaml_CITargetPropertyPath>?) -> TargetPropertyPath? { + 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.Xaml.TargetPropertyPath"))) + } + + private static let _ITargetPropertyPathFactory: __ABI_Microsoft_UI_Xaml.ITargetPropertyPathFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.TargetPropertyPath")) + public init(_ targetProperty: DependencyProperty!) { + super.init(try! Self._ITargetPropertyPathFactory.CreateInstanceImpl(targetProperty)) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.targetpropertypath.path) + public var path : PropertyPath! { + get { try! _default.get_PathImpl() } + set { try! _default.put_PathImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.targetpropertypath.target) + public var target : Any! { + get { try! _default.get_TargetImpl() } + set { try! _default.put_TargetImpl(newValue) } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggeraction) +open class TriggerAction : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ITriggerAction + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction + 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_CXaml_CITriggerAction>?) -> TriggerAction? { + 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 _ITriggerActionFactory : __ABI_Microsoft_UI_Xaml.ITriggerActionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.TriggerAction")) + + internal enum ITriggerAction : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TriggerAction + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CITriggerAction + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ITriggerAction + } + } + internal typealias Composable = ITriggerAction + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggerbase) +open class TriggerBase : WinUI.DependencyObject { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ITriggerBase + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase + 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_CXaml_CITriggerBase>?) -> TriggerBase? { + 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 _ITriggerBaseFactory : __ABI_Microsoft_UI_Xaml.ITriggerBaseFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.TriggerBase")) + + internal enum ITriggerBase : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = TriggerBase + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CITriggerBase + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.ITriggerBase + } + } + internal typealias Composable = ITriggerBase + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection) +public final class TriggerCollection : WinRTClass, IVector, IIterable { + public typealias T = TriggerBase? + private typealias SwiftABI = WinUI.IVectorTriggerBase + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase + 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__CXaml__CTriggerBase>?) -> TriggerCollection? { + 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) + } + // 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.xaml.triggercollection.getat) + public func getAt(_ index: UInt32) -> TriggerBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.indexof) + public func indexOf(_ value: TriggerBase?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.setat) + public func setAt(_ index: UInt32, _ value: TriggerBase?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.insertat) + public func insertAt(_ index: UInt32, _ value: TriggerBase?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.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.xaml.triggercollection.append) + public func append(_ value: TriggerBase?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableTriggerBase! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.triggercollection.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.xaml.uielement) +open class UIElement : WinUI.DependencyObject, WinAppSDK.IAnimationObject, WinAppSDK.IVisualElement, WinAppSDK.IVisualElement2 { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IUIElement + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement + 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_CXaml_CIUIElement>?) -> UIElement? { + 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? { + switch iid { + case __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml.IUIElementOverridesWrapper(self) + return wrapper!.queryInterface(iid) + default: return super.queryInterface(iid) + } + } + private static var _IUIElementFactory : __ABI_Microsoft_UI_Xaml.IUIElementFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.UIElement")) + + private static let _IUIElementStatics: __ABI_Microsoft_UI_Xaml.IUIElementStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.UIElement")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.trystartdirectmanipulation) + public class func tryStartDirectManipulation(_ value: WinUI.Pointer!) -> Bool { + return try! _IUIElementStatics.TryStartDirectManipulationImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.registerasscrollport) + public class func registerAsScrollPort(_ element: UIElement!) { + try! _IUIElementStatics.RegisterAsScrollPortImpl(element) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeyproperty) + public class var accessKeyProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_AccessKeyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeyscopeownerproperty) + public class var accessKeyScopeOwnerProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_AccessKeyScopeOwnerPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.allowdropproperty) + public class var allowDropProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_AllowDropPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.bringintoviewrequestedevent) + public class var bringIntoViewRequestedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_BringIntoViewRequestedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.cachemodeproperty) + public class var cacheModeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_CacheModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.canbescrollanchorproperty) + public class var canBeScrollAnchorProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_CanBeScrollAnchorPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.candragproperty) + public class var canDragProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_CanDragPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.characterreceivedevent) + public class var characterReceivedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_CharacterReceivedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.clipproperty) + public class var clipProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ClipPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.compositemodeproperty) + public class var compositeModeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_CompositeModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.contextflyoutproperty) + public class var contextFlyoutProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ContextFlyoutPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.contextrequestedevent) + public class var contextRequestedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ContextRequestedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.doubletappedevent) + public class var doubleTappedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_DoubleTappedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragenterevent) + public class var dragEnterEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_DragEnterEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragleaveevent) + public class var dragLeaveEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_DragLeaveEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragoverevent) + public class var dragOverEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_DragOverEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dropevent) + public class var dropEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_DropEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.exitdisplaymodeonaccesskeyinvokedproperty) + public class var exitDisplayModeOnAccessKeyInvokedProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ExitDisplayModeOnAccessKeyInvokedPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.focusstateproperty) + public class var focusStateProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_FocusStatePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.gettingfocusevent) + public class var gettingFocusEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_GettingFocusEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.highcontrastadjustmentproperty) + public class var highContrastAdjustmentProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_HighContrastAdjustmentPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.holdingevent) + public class var holdingEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_HoldingEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isaccesskeyscopeproperty) + public class var isAccessKeyScopeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsAccessKeyScopePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isdoubletapenabledproperty) + public class var isDoubleTapEnabledProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsDoubleTapEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.ishittestvisibleproperty) + public class var isHitTestVisibleProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsHitTestVisiblePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isholdingenabledproperty) + public class var isHoldingEnabledProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsHoldingEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isrighttapenabledproperty) + public class var isRightTapEnabledProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsRightTapEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.istabstopproperty) + public class var isTabStopProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsTabStopPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.istapenabledproperty) + public class var isTapEnabledProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_IsTapEnabledPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keydownevent) + public class var keyDownEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_KeyDownEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytiphorizontaloffsetproperty) + public class var keyTipHorizontalOffsetProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyTipHorizontalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytipplacementmodeproperty) + public class var keyTipPlacementModeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyTipPlacementModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytiptargetproperty) + public class var keyTipTargetProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyTipTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytipverticaloffsetproperty) + public class var keyTipVerticalOffsetProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyTipVerticalOffsetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyupevent) + public class var keyUpEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_KeyUpEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyboardacceleratorplacementmodeproperty) + public class var keyboardAcceleratorPlacementModeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyboardAcceleratorPlacementModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyboardacceleratorplacementtargetproperty) + public class var keyboardAcceleratorPlacementTargetProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_KeyboardAcceleratorPlacementTargetPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.lightsproperty) + public class var lightsProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_LightsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.losingfocusevent) + public class var losingFocusEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_LosingFocusEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationcompletedevent) + public class var manipulationCompletedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ManipulationCompletedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationdeltaevent) + public class var manipulationDeltaEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ManipulationDeltaEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationinertiastartingevent) + public class var manipulationInertiaStartingEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ManipulationInertiaStartingEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationmodeproperty) + public class var manipulationModeProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ManipulationModePropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationstartedevent) + public class var manipulationStartedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ManipulationStartedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationstartingevent) + public class var manipulationStartingEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_ManipulationStartingEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.nofocuscandidatefoundevent) + public class var noFocusCandidateFoundEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_NoFocusCandidateFoundEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.opacityproperty) + public class var opacityProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_OpacityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointercanceledevent) + public class var pointerCanceledEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerCanceledEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointercapturelostevent) + public class var pointerCaptureLostEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerCaptureLostEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointercapturesproperty) + public class var pointerCapturesProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_PointerCapturesPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointerenteredevent) + public class var pointerEnteredEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerEnteredEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointerexitedevent) + public class var pointerExitedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerExitedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointermovedevent) + public class var pointerMovedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerMovedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointerpressedevent) + public class var pointerPressedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerPressedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointerreleasedevent) + public class var pointerReleasedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerReleasedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointerwheelchangedevent) + public class var pointerWheelChangedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PointerWheelChangedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.previewkeydownevent) + public class var previewKeyDownEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PreviewKeyDownEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.previewkeyupevent) + public class var previewKeyUpEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_PreviewKeyUpEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.projectionproperty) + public class var projectionProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ProjectionPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendertransformoriginproperty) + public class var renderTransformOriginProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_RenderTransformOriginPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendertransformproperty) + public class var renderTransformProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_RenderTransformPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.righttappedevent) + public class var rightTappedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_RightTappedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.shadowproperty) + public class var shadowProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_ShadowPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tabfocusnavigationproperty) + public class var tabFocusNavigationProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_TabFocusNavigationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tabindexproperty) + public class var tabIndexProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_TabIndexPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tappedevent) + public class var tappedEvent : RoutedEvent! { + get { try! _IUIElementStatics.get_TappedEventImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transform3dproperty) + public class var transform3DProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_Transform3DPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transitionsproperty) + public class var transitionsProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_TransitionsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.uselayoutroundingproperty) + public class var useLayoutRoundingProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_UseLayoutRoundingPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.usesystemfocusvisualsproperty) + public class var useSystemFocusVisualsProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_UseSystemFocusVisualsPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.visibilityproperty) + public class var visibilityProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_VisibilityPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusdownnavigationstrategyproperty) + public class var xyFocusDownNavigationStrategyProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusDownNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusdownproperty) + public class var xyFocusDownProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusDownPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocuskeyboardnavigationproperty) + public class var xyFocusKeyboardNavigationProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusKeyboardNavigationPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusleftnavigationstrategyproperty) + public class var xyFocusLeftNavigationStrategyProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusLeftNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusleftproperty) + public class var xyFocusLeftProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusLeftPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusrightnavigationstrategyproperty) + public class var xyFocusRightNavigationStrategyProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusRightNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusrightproperty) + public class var xyFocusRightProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusRightPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusupnavigationstrategyproperty) + public class var xyFocusUpNavigationStrategyProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusUpNavigationStrategyPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusupproperty) + public class var xyFocusUpProperty : DependencyProperty! { + get { try! _IUIElementStatics.get_XYFocusUpPropertyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.measure) + public func measure(_ availableSize: WindowsFoundation.Size) throws { + try _default.MeasureImpl(availableSize) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.arrange) + public func arrange(_ finalRect: WindowsFoundation.Rect) throws { + try _default.ArrangeImpl(finalRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.capturepointer) + public func capturePointer(_ value: WinUI.Pointer!) throws -> Bool { + try _default.CapturePointerImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.releasepointercapture) + public func releasePointerCapture(_ value: WinUI.Pointer!) throws { + try _default.ReleasePointerCaptureImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.releasepointercaptures) + public func releasePointerCaptures() throws { + try _default.ReleasePointerCapturesImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.addhandler) + public func addHandler(_ routedEvent: RoutedEvent!, _ handler: Any!, _ handledEventsToo: Bool) throws { + try _default.AddHandlerImpl(routedEvent, handler, handledEventsToo) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.removehandler) + public func removeHandler(_ routedEvent: RoutedEvent!, _ handler: Any!) throws { + try _default.RemoveHandlerImpl(routedEvent, handler) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transformtovisual) + public func transformToVisual(_ visual: UIElement!) throws -> WinUI.GeneralTransform! { + try _default.TransformToVisualImpl(visual) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.invalidatemeasure) + public func invalidateMeasure() throws { + try _default.InvalidateMeasureImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.invalidatearrange) + public func invalidateArrange() throws { + try _default.InvalidateArrangeImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.updatelayout) + public func updateLayout() throws { + try _default.UpdateLayoutImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.canceldirectmanipulations) + public func cancelDirectManipulations() throws -> Bool { + try _default.CancelDirectManipulationsImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.startdragasync) + public func startDragAsync(_ pointerPoint: WinAppSDK.PointerPoint!) throws -> WindowsFoundation.AnyIAsyncOperation! { + try _default.StartDragAsyncImpl(pointerPoint) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.startbringintoview) + public func startBringIntoView() throws { + try _default.StartBringIntoViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.startbringintoview) + public func startBringIntoView(_ options: BringIntoViewOptions!) throws { + try _default.StartBringIntoViewWithOptionsImpl(options) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tryinvokekeyboardaccelerator) + public func tryInvokeKeyboardAccelerator(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs!) throws { + try _default.TryInvokeKeyboardAcceleratorImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.focus) + public func focus(_ value: FocusState) throws -> Bool { + try _default.FocusImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.startanimation) + public func startAnimation(_ animation: WinAppSDK.AnyICompositionAnimationBase!) throws { + try _default.StartAnimationImpl(animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.stopanimation) + public func stopAnimation(_ animation: WinAppSDK.AnyICompositionAnimationBase!) throws { + try _default.StopAnimationImpl(animation) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskey) + public var accessKey : String { + get { try! _default.get_AccessKeyImpl() } + set { try! _default.put_AccessKeyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeyscopeowner) + public var accessKeyScopeOwner : DependencyObject! { + get { try! _default.get_AccessKeyScopeOwnerImpl() } + set { try! _default.put_AccessKeyScopeOwnerImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.actualoffset) + public var actualOffset : WindowsFoundation.Vector3 { + get { try! _default.get_ActualOffsetImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.allowdrop) + public var allowDrop : Bool { + get { try! _default.get_AllowDropImpl() } + set { try! _default.put_AllowDropImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.cachemode) + public var cacheMode : WinUI.CacheMode! { + get { try! _default.get_CacheModeImpl() } + set { try! _default.put_CacheModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.canbescrollanchor) + public var canBeScrollAnchor : Bool { + get { try! _default.get_CanBeScrollAnchorImpl() } + set { try! _default.put_CanBeScrollAnchorImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.candrag) + public var canDrag : Bool { + get { try! _default.get_CanDragImpl() } + set { try! _default.put_CanDragImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.clip) + public var clip : WinUI.RectangleGeometry! { + 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.xaml.uielement.compositemode) + public var compositeMode : WinUI.ElementCompositeMode { + 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.xaml.uielement.contextflyout) + public var contextFlyout : WinUI.FlyoutBase! { + get { try! _default.get_ContextFlyoutImpl() } + set { try! _default.put_ContextFlyoutImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.desiredsize) + public var desiredSize : WindowsFoundation.Size { + get { try! _default.get_DesiredSizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.exitdisplaymodeonaccesskeyinvoked) + public var exitDisplayModeOnAccessKeyInvoked : Bool { + get { try! _default.get_ExitDisplayModeOnAccessKeyInvokedImpl() } + set { try! _default.put_ExitDisplayModeOnAccessKeyInvokedImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.focusstate) + public var focusState : FocusState { + get { try! _default.get_FocusStateImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.highcontrastadjustment) + public var highContrastAdjustment : ElementHighContrastAdjustment { + get { try! _default.get_HighContrastAdjustmentImpl() } + set { try! _default.put_HighContrastAdjustmentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isaccesskeyscope) + public var isAccessKeyScope : Bool { + get { try! _default.get_IsAccessKeyScopeImpl() } + set { try! _default.put_IsAccessKeyScopeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isdoubletapenabled) + public var isDoubleTapEnabled : Bool { + get { try! _default.get_IsDoubleTapEnabledImpl() } + set { try! _default.put_IsDoubleTapEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.ishittestvisible) + public var isHitTestVisible : Bool { + get { try! _default.get_IsHitTestVisibleImpl() } + set { try! _default.put_IsHitTestVisibleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isholdingenabled) + public var isHoldingEnabled : Bool { + get { try! _default.get_IsHoldingEnabledImpl() } + set { try! _default.put_IsHoldingEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.isrighttapenabled) + public var isRightTapEnabled : Bool { + get { try! _default.get_IsRightTapEnabledImpl() } + set { try! _default.put_IsRightTapEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.istabstop) + public var isTabStop : Bool { + get { try! _default.get_IsTabStopImpl() } + set { try! _default.put_IsTabStopImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.istapenabled) + public var isTapEnabled : Bool { + get { try! _default.get_IsTapEnabledImpl() } + set { try! _default.put_IsTapEnabledImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytiphorizontaloffset) + public var keyTipHorizontalOffset : Double { + get { try! _default.get_KeyTipHorizontalOffsetImpl() } + set { try! _default.put_KeyTipHorizontalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytipplacementmode) + public var keyTipPlacementMode : WinUI.KeyTipPlacementMode { + get { try! _default.get_KeyTipPlacementModeImpl() } + set { try! _default.put_KeyTipPlacementModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytiptarget) + public var keyTipTarget : DependencyObject! { + get { try! _default.get_KeyTipTargetImpl() } + set { try! _default.put_KeyTipTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keytipverticaloffset) + public var keyTipVerticalOffset : Double { + get { try! _default.get_KeyTipVerticalOffsetImpl() } + set { try! _default.put_KeyTipVerticalOffsetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyboardacceleratorplacementmode) + public var keyboardAcceleratorPlacementMode : WinUI.KeyboardAcceleratorPlacementMode { + get { try! _default.get_KeyboardAcceleratorPlacementModeImpl() } + set { try! _default.put_KeyboardAcceleratorPlacementModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyboardacceleratorplacementtarget) + public var keyboardAcceleratorPlacementTarget : DependencyObject! { + get { try! _default.get_KeyboardAcceleratorPlacementTargetImpl() } + set { try! _default.put_KeyboardAcceleratorPlacementTargetImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyboardaccelerators) + public var keyboardAccelerators : WindowsFoundation.AnyIVector! { + get { try! _default.get_KeyboardAcceleratorsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.lights) + public var lights : WindowsFoundation.AnyIVector! { + get { try! _default.get_LightsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.manipulationmode) + public var manipulationMode : WinUI.ManipulationModes { + get { try! _default.get_ManipulationModeImpl() } + set { try! _default.put_ManipulationModeImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.opacity) + public var opacity : Double { + 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.xaml.uielement.opacitytransition) + public var opacityTransition : ScalarTransition! { + get { try! _default.get_OpacityTransitionImpl() } + set { try! _default.put_OpacityTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointercaptures) + public var pointerCaptures : WindowsFoundation.AnyIVectorView! { + get { try! _default.get_PointerCapturesImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.projection) + public var projection : WinUI.Projection! { + get { try! _default.get_ProjectionImpl() } + set { try! _default.put_ProjectionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rasterizationscale) + public var rasterizationScale : Double { + get { try! _default.get_RasterizationScaleImpl() } + set { try! _default.put_RasterizationScaleImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendersize) + public var renderSize : WindowsFoundation.Size { + get { try! _default.get_RenderSizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendertransform) + public var renderTransform : WinUI.Transform! { + get { try! _default.get_RenderTransformImpl() } + set { try! _default.put_RenderTransformImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendertransformorigin) + public var renderTransformOrigin : WindowsFoundation.Point { + get { try! _default.get_RenderTransformOriginImpl() } + set { try! _default.put_RenderTransformOriginImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rotation) + public var rotation : Float { + get { try! _default.get_RotationImpl() } + set { try! _default.put_RotationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.rotationtransition) + public var rotationTransition : ScalarTransition! { + get { try! _default.get_RotationTransitionImpl() } + set { try! _default.put_RotationTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.scaletransition) + public var scaleTransition : Vector3Transition! { + get { try! _default.get_ScaleTransitionImpl() } + set { try! _default.put_ScaleTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.shadow) + public var shadow : WinUI.Shadow! { + get { try! _default.get_ShadowImpl() } + set { try! _default.put_ShadowImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tabfocusnavigation) + public var tabFocusNavigation : WinUI.KeyboardNavigationMode { + get { try! _default.get_TabFocusNavigationImpl() } + set { try! _default.put_TabFocusNavigationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tabindex) + public var tabIndex : Int32 { + get { try! _default.get_TabIndexImpl() } + set { try! _default.put_TabIndexImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transform3d) + public var transform3D : WinUI.Transform3D! { + get { try! _default.get_Transform3DImpl() } + set { try! _default.put_Transform3DImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transformmatrix) + public var transformMatrix : WindowsFoundation.Matrix4x4 { + get { try! _default.get_TransformMatrixImpl() } + set { try! _default.put_TransformMatrixImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.transitions) + public var transitions : WinUI.TransitionCollection! { + get { try! _default.get_TransitionsImpl() } + set { try! _default.put_TransitionsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.translation) + public var translation : WindowsFoundation.Vector3 { + get { try! _default.get_TranslationImpl() } + set { try! _default.put_TranslationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.translationtransition) + public var translationTransition : Vector3Transition! { + get { try! _default.get_TranslationTransitionImpl() } + set { try! _default.put_TranslationTransitionImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.uselayoutrounding) + public var useLayoutRounding : Bool { + get { try! _default.get_UseLayoutRoundingImpl() } + set { try! _default.put_UseLayoutRoundingImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.usesystemfocusvisuals) + public var useSystemFocusVisuals : Bool { + get { try! _default.get_UseSystemFocusVisualsImpl() } + set { try! _default.put_UseSystemFocusVisualsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.visibility) + public var visibility : Visibility { + get { try! _default.get_VisibilityImpl() } + set { try! _default.put_VisibilityImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusdown) + public var xyFocusDown : DependencyObject! { + get { try! _default.get_XYFocusDownImpl() } + set { try! _default.put_XYFocusDownImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusdownnavigationstrategy) + public var xyFocusDownNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusDownNavigationStrategyImpl() } + set { try! _default.put_XYFocusDownNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocuskeyboardnavigation) + public var xyFocusKeyboardNavigation : WinUI.XYFocusKeyboardNavigationMode { + get { try! _default.get_XYFocusKeyboardNavigationImpl() } + set { try! _default.put_XYFocusKeyboardNavigationImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusleft) + public var xyFocusLeft : DependencyObject! { + get { try! _default.get_XYFocusLeftImpl() } + set { try! _default.put_XYFocusLeftImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusleftnavigationstrategy) + public var xyFocusLeftNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusLeftNavigationStrategyImpl() } + set { try! _default.put_XYFocusLeftNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusright) + public var xyFocusRight : DependencyObject! { + get { try! _default.get_XYFocusRightImpl() } + set { try! _default.put_XYFocusRightImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusrightnavigationstrategy) + public var xyFocusRightNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusRightNavigationStrategyImpl() } + set { try! _default.put_XYFocusRightNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusup) + public var xyFocusUp : DependencyObject! { + get { try! _default.get_XYFocusUpImpl() } + set { try! _default.put_XYFocusUpImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xyfocusupnavigationstrategy) + public var xyFocusUpNavigationStrategy : WinUI.XYFocusNavigationStrategy { + get { try! _default.get_XYFocusUpNavigationStrategyImpl() } + set { try! _default.put_XYFocusUpNavigationStrategyImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.xamlroot) + public var xamlRoot : XamlRoot! { + get { try! _default.get_XamlRootImpl() } + set { try! _default.put_XamlRootImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeydisplaydismissed) + public lazy var accessKeyDisplayDismissed : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyDisplayDismissedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyDisplayDismissedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeydisplayrequested) + public lazy var accessKeyDisplayRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyDisplayRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyDisplayRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.accesskeyinvoked) + public lazy var accessKeyInvoked : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_AccessKeyInvokedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_AccessKeyInvokedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.bringintoviewrequested) + public lazy var bringIntoViewRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_BringIntoViewRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_BringIntoViewRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.characterreceived) + public lazy var characterReceived : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_CharacterReceivedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_CharacterReceivedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.contextcanceled) + public lazy var contextCanceled : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContextCanceledImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContextCanceledImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.contextrequested) + public lazy var contextRequested : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ContextRequestedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ContextRequestedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.doubletapped) + public lazy var doubleTapped : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DoubleTappedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DoubleTappedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragenter) + public lazy var dragEnter : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragEnterImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragEnterImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragleave) + public lazy var dragLeave : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragLeaveImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragLeaveImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragover) + public lazy var dragOver : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragOverImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragOverImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dragstarting) + public lazy var dragStarting : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DragStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DragStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.drop) + public lazy var drop : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DropImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DropImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.dropcompleted) + public lazy var dropCompleted : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_DropCompletedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_DropCompletedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.gettingfocus) + public lazy var gettingFocus : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_GettingFocusImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_GettingFocusImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.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.xaml.uielement.keydown) + public lazy var keyDown : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_KeyDownImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_KeyDownImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.keyup) + public lazy var keyUp : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_KeyUpImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_KeyUpImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.losingfocus) + public lazy var losingFocus : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_LosingFocusImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_LosingFocusImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.manipulationdelta) + public lazy var manipulationDelta : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationDeltaImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationDeltaImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.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.xaml.uielement.manipulationstarting) + public lazy var manipulationStarting : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ManipulationStartingImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ManipulationStartingImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.nofocuscandidatefound) + public lazy var noFocusCandidateFound : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_NoFocusCandidateFoundImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_NoFocusCandidateFoundImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.pointercanceled) + public lazy var pointerCanceled : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PointerCanceledImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PointerCanceledImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.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.xaml.uielement.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.xaml.uielement.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.xaml.uielement.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.xaml.uielement.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.xaml.uielement.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) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.previewkeydown) + public lazy var previewKeyDown : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PreviewKeyDownImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PreviewKeyDownImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.previewkeyup) + public lazy var previewKeyUp : Event = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_PreviewKeyUpImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_PreviewKeyUpImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.processkeyboardaccelerators) + public lazy var processKeyboardAccelerators : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_ProcessKeyboardAcceleratorsImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_ProcessKeyboardAcceleratorsImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.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.xaml.uielement.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) + } + ) + }() + + private lazy var _IUIElementProtected: __ABI_Microsoft_UI_Xaml.IUIElementProtected! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.protectedcursor) + public var protectedCursor : WinAppSDK.InputCursor! { + get { try! _IUIElementProtected.get_ProtectedCursorImpl() } + set { try! _IUIElementProtected.put_ProtectedCursorImpl(newValue) } + } + + private lazy var _IUIElementOverrides: __ABI_Microsoft_UI_Xaml.IUIElementOverrides! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.oncreateautomationpeer) + open func onCreateAutomationPeer() throws -> WinUI.AutomationPeer! { + try _IUIElementOverrides.OnCreateAutomationPeerImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.ondisconnectvisualchildren) + open func onDisconnectVisualChildren() throws { + try _IUIElementOverrides.OnDisconnectVisualChildrenImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.findsubelementsfortouchtargeting) + open func findSubElementsForTouchTargeting(_ point: WindowsFoundation.Point, _ boundingRect: WindowsFoundation.Rect) throws -> WindowsFoundation.AnyIIterable?>! { + try _IUIElementOverrides.FindSubElementsForTouchTargetingImpl(point, boundingRect) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.getchildrenintabfocusorder) + open func getChildrenInTabFocusOrder() throws -> WindowsFoundation.AnyIIterable! { + try _IUIElementOverrides.GetChildrenInTabFocusOrderImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.onkeyboardacceleratorinvoked) + open func onKeyboardAcceleratorInvoked(_ args: WinUI.KeyboardAcceleratorInvokedEventArgs!) throws { + try _IUIElementOverrides.OnKeyboardAcceleratorInvokedImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.onprocesskeyboardaccelerators) + open func onProcessKeyboardAccelerators(_ args: WinUI.ProcessKeyboardAcceleratorEventArgs!) throws { + try _IUIElementOverrides.OnProcessKeyboardAcceleratorsImpl(args) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.onbringintoviewrequested) + open func onBringIntoViewRequested(_ e: BringIntoViewRequestedEventArgs!) throws { + try _IUIElementOverrides.OnBringIntoViewRequestedImpl(e) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.populatepropertyinfooverride) + open func populatePropertyInfoOverride(_ propertyName: String, _ animationPropertyInfo: WinAppSDK.AnimationPropertyInfo!) throws { + try _IUIElementOverrides.PopulatePropertyInfoOverrideImpl(propertyName, animationPropertyInfo) + } + + internal enum IUIElementOverrides : ComposableImpl { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIUIElementOverrides + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IUIElementOverrides + internal typealias Class = UIElement + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIUIElement + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IUIElement + } + } + internal typealias Composable = IUIElementOverrides + 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.xaml.uielement.populatepropertyinfo) + public func populatePropertyInfo(_ propertyName: String, _ propertyInfo: WinAppSDK.AnimationPropertyInfo!) throws { + try _IAnimationObject.PopulatePropertyInfoImpl(propertyName, propertyInfo) + } + + private lazy var _IVisualElement: __ABI_Microsoft_UI_Composition.IVisualElement! = getInterfaceForCaching() + private lazy var _IVisualElement2: __ABI_Microsoft_UI_Composition.IVisualElement2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.getvisualinternal) + public func getVisualInternal() throws -> WinAppSDK.Visual! { + try _IVisualElement2.GetVisualInternalImpl() + } + + deinit { + _default = nil + _IUIElementProtected = nil + _IUIElementOverrides = nil + _IAnimationObject = nil + _IVisualElement = nil + _IVisualElement2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection) +open class UIElementWeakCollection : WinRTClass, IVector, IIterable { + public typealias T = UIElement? + private typealias SwiftABI = WinUI.IVectorUIElement + private typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + 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_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement>?) -> UIElementWeakCollection? { + 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 _IUIElementWeakCollectionFactory : __ABI_Microsoft_UI_Xaml.IUIElementWeakCollectionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.UIElementWeakCollection")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IUIElementWeakCollectionFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + // 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.xaml.uielementweakcollection.getat) + public func getAt(_ index: UInt32) -> UIElement? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.getview) + public func getView() -> WindowsFoundation.AnyIVectorView? { + try! _default.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.indexof) + public func indexOf(_ value: UIElement?, _ index: inout UInt32) -> Bool { + try! _default.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.setat) + public func setAt(_ index: UInt32, _ value: UIElement?) { + try! _default.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.insertat) + public func insertAt(_ index: UInt32, _ value: UIElement?) { + try! _default.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.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.xaml.uielementweakcollection.append) + public func append(_ value: UIElement?) { + try! _default.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.removeatend) + public func removeAtEnd() { + try! _default.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.clear) + public func clear() { + try! _default.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.size) + public var size : UInt32 { + get { try! _default.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableUIElement! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielementweakcollection.first) + public func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + internal enum IVectorUIElement : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = UIElementWeakCollection + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + internal typealias SwiftABI = WinUI.IVectorUIElement + } + } + internal typealias Composable = IVectorUIElement + deinit { + _default = nil + _IIterable = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.unhandledexceptioneventargs) +public final class UnhandledExceptionEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IUnhandledExceptionEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIUnhandledExceptionEventArgs + 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_CXaml_CIUnhandledExceptionEventArgs>?) -> UnhandledExceptionEventArgs? { + 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.xaml.unhandledexceptioneventargs.exception) + public var exception : HRESULT { + get { try! _default.get_ExceptionImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.unhandledexceptioneventargs.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.xaml.unhandledexceptioneventargs.message) + public var message : String { + get { try! _default.get_MessageImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.vector3transition) +open class Vector3Transition : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IVector3Transition + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition + 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_CXaml_CIVector3Transition>?) -> Vector3Transition? { + 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 _IVector3TransitionFactory : __ABI_Microsoft_UI_Xaml.IVector3TransitionFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Vector3Transition")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IVector3TransitionFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.vector3transition.components) + public var components : Vector3TransitionComponents { + get { try! _default.get_ComponentsImpl() } + set { try! _default.put_ComponentsImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.vector3transition.duration) + public var duration : WindowsFoundation.TimeSpan { + get { try! _default.get_DurationImpl() } + set { try! _default.put_DurationImpl(newValue) } + } + + internal enum IVector3Transition : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Vector3Transition + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIVector3Transition + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IVector3Transition + } + } + internal typealias Composable = IVector3Transition + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window) +open class Window : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindow + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindow + 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_CXaml_CIWindow>?) -> Window? { + 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 _IWindowFactory : __ABI_Microsoft_UI_Xaml.IWindowFactory = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Window")) + + override public init() { + super.init() + MakeComposed(composing: Self.Composable.self, self) { baseInterface, innerInterface in + try! Self._IWindowFactory.CreateInstanceImpl(baseInterface, &innerInterface) + } + } + + private static let _IWindowStatics: __ABI_Microsoft_UI_Xaml.IWindowStatics = try! RoGetActivationFactory(HString("Microsoft.UI.Xaml.Window")) + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.current) + public class var current : Window! { + get { try! _IWindowStatics.get_CurrentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.activate) + public func activate() throws { + try _default.ActivateImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.close) + public func close() throws { + try _default.CloseImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.settitlebar) + public func setTitleBar(_ titleBar: UIElement!) throws { + try _default.SetTitleBarImpl(titleBar) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.bounds) + public var bounds : WindowsFoundation.Rect { + get { try! _default.get_BoundsImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.compositor) + public var compositor : WinAppSDK.Compositor! { + get { try! _default.get_CompositorImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.content) + public var content : UIElement! { + get { try! _default.get_ContentImpl() } + set { try! _default.put_ContentImpl(newValue) } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.corewindow) + public var coreWindow : UWP.CoreWindow! { + get { try! _default.get_CoreWindowImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.dispatcher) + public var dispatcher : UWP.CoreDispatcher! { + get { try! _default.get_DispatcherImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.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.xaml.window.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.xaml.window.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.xaml.window.visible) + public var visible : Bool { + get { try! _default.get_VisibleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.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) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.closed) + public 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.xaml.window.sizechanged) + public lazy var sizeChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_SizeChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_SizeChangedImpl($0) + } + ) + }() + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.visibilitychanged) + public lazy var visibilityChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_VisibilityChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_VisibilityChangedImpl($0) + } + ) + }() + + private lazy var _IWindow2: __ABI_Microsoft_UI_Xaml.IWindow2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.appwindow) + public var appWindow : WinAppSDK.AppWindow! { + get { try! _IWindow2.get_AppWindowImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.systembackdrop) + public var systemBackdrop : WinUI.SystemBackdrop! { + get { try! _IWindow2.get_SystemBackdropImpl() } + set { try! _IWindow2.put_SystemBackdropImpl(newValue) } + } + + internal enum IWindow : ComposableImpl { + internal typealias CABI = C_IInspectable + internal typealias SwiftABI = WindowsFoundation.IInspectable + internal typealias Class = Window + internal typealias SwiftProjection = WinRTClassWeakReference + internal enum Default : AbiInterface { + internal typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindow + internal typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindow + } + } + internal typealias Composable = IWindow + deinit { + _default = nil + _IWindow2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.windowactivatedeventargs) +public final class WindowActivatedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindowActivatedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindowActivatedEventArgs + 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_CXaml_CIWindowActivatedEventArgs>?) -> WindowActivatedEventArgs? { + 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.xaml.windowactivatedeventargs.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.xaml.windowactivatedeventargs.windowactivationstate) + public var windowActivationState : WindowActivationState { + get { try! _default.get_WindowActivationStateImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.windoweventargs) +public final class WindowEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindowEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindowEventArgs + 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_CXaml_CIWindowEventArgs>?) -> WindowEventArgs? { + 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.xaml.windoweventargs.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.xaml.windowsizechangedeventargs) +public final class WindowSizeChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindowSizeChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindowSizeChangedEventArgs + 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_CXaml_CIWindowSizeChangedEventArgs>?) -> WindowSizeChangedEventArgs? { + 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.xaml.windowsizechangedeventargs.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.xaml.windowsizechangedeventargs.size) + public var size : WindowsFoundation.Size { + get { try! _default.get_SizeImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.windowvisibilitychangedeventargs) +public final class WindowVisibilityChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IWindowVisibilityChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIWindowVisibilityChangedEventArgs + 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_CXaml_CIWindowVisibilityChangedEventArgs>?) -> WindowVisibilityChangedEventArgs? { + 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.xaml.windowvisibilitychangedeventargs.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.xaml.windowvisibilitychangedeventargs.visible) + public var visible : Bool { + get { try! _default.get_VisibleImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlresourcereferencefailedeventargs) +public final class XamlResourceReferenceFailedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IXamlResourceReferenceFailedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIXamlResourceReferenceFailedEventArgs + 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_CXaml_CIXamlResourceReferenceFailedEventArgs>?) -> XamlResourceReferenceFailedEventArgs? { + 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.xaml.xamlresourcereferencefailedeventargs.message) + public var message : String { + get { try! _default.get_MessageImpl() } + } + + deinit { + _default = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot) +public final class XamlRoot : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IXamlRoot + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRoot + 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_CXaml_CIXamlRoot>?) -> XamlRoot? { + 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.xaml.xamlroot.content) + public var content : UIElement! { + get { try! _default.get_ContentImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot.ishostvisible) + public var isHostVisible : Bool { + get { try! _default.get_IsHostVisibleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot.rasterizationscale) + public var rasterizationScale : Double { + get { try! _default.get_RasterizationScaleImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot.size) + public var size : WindowsFoundation.Size { + get { try! _default.get_SizeImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot.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) + } + ) + }() + + private lazy var _IXamlRoot2: __ABI_Microsoft_UI_Xaml.IXamlRoot2! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlroot.contentislandenvironment) + public var contentIslandEnvironment : WinAppSDK.ContentIslandEnvironment! { + get { try! _IXamlRoot2.get_ContentIslandEnvironmentImpl() } + } + + deinit { + _default = nil + _IXamlRoot2 = nil + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.xamlrootchangedeventargs) +public final class XamlRootChangedEventArgs : WinRTClass { + private typealias SwiftABI = __ABI_Microsoft_UI_Xaml.IXamlRootChangedEventArgs + private typealias CABI = __x_ABI_CMicrosoft_CUI_CXaml_CIXamlRootChangedEventArgs + 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_CXaml_CIXamlRootChangedEventArgs>?) -> XamlRootChangedEventArgs? { + 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 + } +} + +public typealias ApplicationInitializationCallback = (ApplicationInitializationCallbackParams?) -> () +public typealias BindingFailedEventHandler = (Any?, BindingFailedEventArgs?) -> () +public typealias CreateDefaultValueCallback = () -> Any? +public typealias DependencyPropertyChangedCallback = (DependencyObject?, DependencyProperty?) -> () +public typealias DependencyPropertyChangedEventHandler = (Any?, DependencyPropertyChangedEventArgs?) -> () +public typealias DragEventHandler = (Any?, DragEventArgs?) -> () +public typealias ExceptionRoutedEventHandler = (Any?, ExceptionRoutedEventArgs?) -> () +public typealias PropertyChangedCallback = (DependencyObject?, DependencyPropertyChangedEventArgs?) -> () +public typealias RoutedEventHandler = (Any?, RoutedEventArgs?) -> () +public typealias SizeChangedEventHandler = (Any?, SizeChangedEventArgs?) -> () +public typealias UnhandledExceptionEventHandler = (Any?, UnhandledExceptionEventArgs?) -> () +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.cornerradius) +public struct CornerRadius: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.cornerradius.topleft) + public var topLeft: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.cornerradius.topright) + public var topRight: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.cornerradius.bottomright) + public var bottomRight: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.cornerradius.bottomleft) + public var bottomLeft: Double = 0.0 + public init() {} + public init(topLeft: Double, topRight: Double, bottomRight: Double, bottomLeft: Double) { + self.topLeft = topLeft + self.topRight = topRight + self.bottomRight = bottomRight + self.bottomLeft = bottomLeft + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CCornerRadius) -> CornerRadius { + .init(topLeft: abi.TopLeft, topRight: abi.TopRight, bottomRight: abi.BottomRight, bottomLeft: abi.BottomLeft) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.duration) +public struct Duration: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.duration.timespan) + public var timeSpan: WindowsFoundation.TimeSpan = .init() + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.duration.type) + public var type: DurationType = .init(0) + public init() {} + public init(timeSpan: WindowsFoundation.TimeSpan, type: DurationType) { + self.timeSpan = timeSpan + self.type = type + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CDuration) -> Duration { + .init(timeSpan: .from(abi: abi.TimeSpan), type: abi.Type) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.gridlength) +public struct GridLength: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.gridlength.value) + public var value: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.gridlength.gridunittype) + public var gridUnitType: GridUnitType = .init(0) + public init() {} + public init(value: Double, gridUnitType: GridUnitType) { + self.value = value + self.gridUnitType = gridUnitType + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CGridLength) -> GridLength { + .init(value: abi.Value, gridUnitType: abi.GridUnitType) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.thickness) +public struct Thickness: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.thickness.left) + public var left: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.thickness.top) + public var top: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.thickness.right) + public var right: Double = 0.0 + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.thickness.bottom) + public var bottom: Double = 0.0 + public init() {} + public init(left: Double, top: Double, right: Double, bottom: Double) { + self.left = left + self.top = top + self.right = right + self.bottom = bottom + } + public static func from(abi: __x_ABI_CMicrosoft_CUI_CXaml_CThickness) -> Thickness { + .init(left: abi.Left, top: abi.Top, right: abi.Right, bottom: abi.Bottom) + } +} + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension) +public protocol IDataTemplateExtension : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension.resettemplate) + func resetTemplate() throws + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension.processbinding) + func processBinding(_ phase: UInt32) throws -> Bool + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.idatatemplateextension.processbindings) + func processBindings(_ arg: WinUI.ContainerContentChangingEventArgs!) throws -> Int32 +} + +extension IDataTemplateExtension { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml.IDataTemplateExtensionWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIDataTemplateExtension = any IDataTemplateExtension + +/// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ielementfactory) +public protocol IElementFactory : WinRTInterface { + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ielementfactory.getelement) + func getElement(_ args: WinUI.ElementFactoryGetArgs!) throws -> WinUI.UIElement! + /// [Open Microsoft documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.ielementfactory.recycleelement) + func recycleElement(_ args: WinUI.ElementFactoryRecycleArgs!) throws +} + +extension IElementFactory { + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml.IElementFactoryWrapper.IID: + let wrapper = __ABI_Microsoft_UI_Xaml.IElementFactoryWrapper(self) + return wrapper!.queryInterface(iid) + default: return nil + } + } +} +public typealias AnyIElementFactory = any IElementFactory + +extension WinUI.ApplicationHighContrastAdjustment { + public static var none : WinUI.ApplicationHighContrastAdjustment { + __x_ABI_CMicrosoft_CUI_CXaml_CApplicationHighContrastAdjustment_None + } + public static var auto : WinUI.ApplicationHighContrastAdjustment { + __x_ABI_CMicrosoft_CUI_CXaml_CApplicationHighContrastAdjustment_Auto + } +} +extension WinUI.ApplicationHighContrastAdjustment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ApplicationTheme { + public static var light : WinUI.ApplicationTheme { + __x_ABI_CMicrosoft_CUI_CXaml_CApplicationTheme_Light + } + public static var dark : WinUI.ApplicationTheme { + __x_ABI_CMicrosoft_CUI_CXaml_CApplicationTheme_Dark + } +} +extension WinUI.ApplicationTheme: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.DispatcherShutdownMode { + public static var onLastWindowClose : WinUI.DispatcherShutdownMode { + __x_ABI_CMicrosoft_CUI_CXaml_CDispatcherShutdownMode_OnLastWindowClose + } + public static var onExplicitShutdown : WinUI.DispatcherShutdownMode { + __x_ABI_CMicrosoft_CUI_CXaml_CDispatcherShutdownMode_OnExplicitShutdown + } +} +extension WinUI.DispatcherShutdownMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.DurationType { + public static var automatic : WinUI.DurationType { + __x_ABI_CMicrosoft_CUI_CXaml_CDurationType_Automatic + } + public static var timeSpan : WinUI.DurationType { + __x_ABI_CMicrosoft_CUI_CXaml_CDurationType_TimeSpan + } + public static var forever : WinUI.DurationType { + __x_ABI_CMicrosoft_CUI_CXaml_CDurationType_Forever + } +} +extension WinUI.DurationType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ElementHighContrastAdjustment { + public static var none : WinUI.ElementHighContrastAdjustment { + __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment_None + } + public static var application : WinUI.ElementHighContrastAdjustment { + __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment_Application + } + public static var auto : WinUI.ElementHighContrastAdjustment { + __x_ABI_CMicrosoft_CUI_CXaml_CElementHighContrastAdjustment_Auto + } +} +extension WinUI.ElementHighContrastAdjustment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ElementSoundMode { + public static var `default` : WinUI.ElementSoundMode { + __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode_Default + } + public static var focusOnly : WinUI.ElementSoundMode { + __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode_FocusOnly + } + public static var off : WinUI.ElementSoundMode { + __x_ABI_CMicrosoft_CUI_CXaml_CElementSoundMode_Off + } +} +extension WinUI.ElementSoundMode: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.ElementTheme { + public static var `default` : WinUI.ElementTheme { + __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme_Default + } + public static var light : WinUI.ElementTheme { + __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme_Light + } + public static var dark : WinUI.ElementTheme { + __x_ABI_CMicrosoft_CUI_CXaml_CElementTheme_Dark + } +} +extension WinUI.ElementTheme: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FlowDirection { + public static var leftToRight : WinUI.FlowDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection_LeftToRight + } + public static var rightToLeft : WinUI.FlowDirection { + __x_ABI_CMicrosoft_CUI_CXaml_CFlowDirection_RightToLeft + } +} +extension WinUI.FlowDirection: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FocusState { + public static var unfocused : WinUI.FocusState { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusState_Unfocused + } + public static var pointer : WinUI.FocusState { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusState_Pointer + } + public static var keyboard : WinUI.FocusState { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusState_Keyboard + } + public static var programmatic : WinUI.FocusState { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusState_Programmatic + } +} +extension WinUI.FocusState: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.FocusVisualKind { + public static var dottedLine : WinUI.FocusVisualKind { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind_DottedLine + } + public static var highVisibility : WinUI.FocusVisualKind { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind_HighVisibility + } + public static var reveal : WinUI.FocusVisualKind { + __x_ABI_CMicrosoft_CUI_CXaml_CFocusVisualKind_Reveal + } +} +extension WinUI.FocusVisualKind: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.GridUnitType { + public static var auto : WinUI.GridUnitType { + __x_ABI_CMicrosoft_CUI_CXaml_CGridUnitType_Auto + } + public static var pixel : WinUI.GridUnitType { + __x_ABI_CMicrosoft_CUI_CXaml_CGridUnitType_Pixel + } + public static var star : WinUI.GridUnitType { + __x_ABI_CMicrosoft_CUI_CXaml_CGridUnitType_Star + } +} +extension WinUI.GridUnitType: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.HorizontalAlignment { + public static var left : WinUI.HorizontalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment_Left + } + public static var center : WinUI.HorizontalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment_Center + } + public static var right : WinUI.HorizontalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment_Right + } + public static var stretch : WinUI.HorizontalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CHorizontalAlignment_Stretch + } +} +extension WinUI.HorizontalAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.LayoutCycleDebugBreakLevel { + public static var none : WinUI.LayoutCycleDebugBreakLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel_None + } + public static var low : WinUI.LayoutCycleDebugBreakLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel_Low + } + public static var high : WinUI.LayoutCycleDebugBreakLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleDebugBreakLevel_High + } +} +extension WinUI.LayoutCycleDebugBreakLevel: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.LayoutCycleTracingLevel { + public static var none : WinUI.LayoutCycleTracingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel_None + } + public static var low : WinUI.LayoutCycleTracingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel_Low + } + public static var high : WinUI.LayoutCycleTracingLevel { + __x_ABI_CMicrosoft_CUI_CXaml_CLayoutCycleTracingLevel_High + } +} +extension WinUI.LayoutCycleTracingLevel: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.LineStackingStrategy { + public static var maxHeight : WinUI.LineStackingStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy_MaxHeight + } + public static var blockLineHeight : WinUI.LineStackingStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy_BlockLineHeight + } + public static var baselineToBaseline : WinUI.LineStackingStrategy { + __x_ABI_CMicrosoft_CUI_CXaml_CLineStackingStrategy_BaselineToBaseline + } +} +extension WinUI.LineStackingStrategy: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.OpticalMarginAlignment { + public static var none : WinUI.OpticalMarginAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_COpticalMarginAlignment_None + } + public static var trimSideBearings : WinUI.OpticalMarginAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_COpticalMarginAlignment_TrimSideBearings + } +} +extension WinUI.OpticalMarginAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TextAlignment { + public static var center : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_Center + } + public static var left : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_Left + } + public static var start : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_Start + } + public static var right : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_Right + } + public static var end : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_End + } + public static var justify : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_Justify + } + public static var detectFromContent : WinUI.TextAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CTextAlignment_DetectFromContent + } +} +extension WinUI.TextAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TextLineBounds { + public static var full : WinUI.TextLineBounds { + __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds_Full + } + public static var trimToCapHeight : WinUI.TextLineBounds { + __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds_TrimToCapHeight + } + public static var trimToBaseline : WinUI.TextLineBounds { + __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds_TrimToBaseline + } + public static var tight : WinUI.TextLineBounds { + __x_ABI_CMicrosoft_CUI_CXaml_CTextLineBounds_Tight + } +} +extension WinUI.TextLineBounds: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TextReadingOrder { + public static var `default` : WinUI.TextReadingOrder { + __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder_Default + } + public static var useFlowDirection : WinUI.TextReadingOrder { + __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder_UseFlowDirection + } + public static var detectFromContent : WinUI.TextReadingOrder { + __x_ABI_CMicrosoft_CUI_CXaml_CTextReadingOrder_DetectFromContent + } +} +extension WinUI.TextReadingOrder: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TextTrimming { + public static var none : WinUI.TextTrimming { + __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming_None + } + public static var characterEllipsis : WinUI.TextTrimming { + __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming_CharacterEllipsis + } + public static var wordEllipsis : WinUI.TextTrimming { + __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming_WordEllipsis + } + public static var clip : WinUI.TextTrimming { + __x_ABI_CMicrosoft_CUI_CXaml_CTextTrimming_Clip + } +} +extension WinUI.TextTrimming: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.TextWrapping { + public static var noWrap : WinUI.TextWrapping { + __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping_NoWrap + } + public static var wrap : WinUI.TextWrapping { + __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping_Wrap + } + public static var wrapWholeWords : WinUI.TextWrapping { + __x_ABI_CMicrosoft_CUI_CXaml_CTextWrapping_WrapWholeWords + } +} +extension WinUI.TextWrapping: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.Vector3TransitionComponents { + public static var x : WinUI.Vector3TransitionComponents { + __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents_X + } + public static var y : WinUI.Vector3TransitionComponents { + __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents_Y + } + public static var z : WinUI.Vector3TransitionComponents { + __x_ABI_CMicrosoft_CUI_CXaml_CVector3TransitionComponents_Z + } +} +extension WinUI.Vector3TransitionComponents: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.VerticalAlignment { + public static var top : WinUI.VerticalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment_Top + } + public static var center : WinUI.VerticalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment_Center + } + public static var bottom : WinUI.VerticalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment_Bottom + } + public static var stretch : WinUI.VerticalAlignment { + __x_ABI_CMicrosoft_CUI_CXaml_CVerticalAlignment_Stretch + } +} +extension WinUI.VerticalAlignment: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.Visibility { + public static var visible : WinUI.Visibility { + __x_ABI_CMicrosoft_CUI_CXaml_CVisibility_Visible + } + public static var collapsed : WinUI.Visibility { + __x_ABI_CMicrosoft_CUI_CXaml_CVisibility_Collapsed + } +} +extension WinUI.Visibility: @retroactive Hashable, @retroactive Codable {} + +extension WinUI.WindowActivationState { + public static var codeActivated : WinUI.WindowActivationState { + __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState_CodeActivated + } + public static var deactivated : WinUI.WindowActivationState { + __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState_Deactivated + } + public static var pointerActivated : WinUI.WindowActivationState { + __x_ABI_CMicrosoft_CUI_CXaml_CWindowActivationState_PointerActivated + } +} +extension WinUI.WindowActivationState: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/Generated/WinUI+Generics.swift b/Sources/WinUI/Generated/WinUI+Generics.swift new file mode 100644 index 0000000..cc14952 --- /dev/null +++ b/Sources/WinUI/Generated/WinUI+Generics.swift @@ -0,0 +1,37335 @@ +// 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 WinAppSDK +@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation +import CWinRT + +private var IID___x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x3f08262e, Data2: 0xa2e1, Data3: 0x5134, Data4: ( 0x92,0x97,0xe9,0x21,0x1f,0x48,0x1a,0x2d ))// 3f08262e-a2e1-5134-9297-e9211f481a2d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerAny: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectable } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1_IInspectableWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectable + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerAny + + 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__FIAsyncOperationCompletedHandler_1_boolean: WindowsFoundation.IID { + .init(Data1: 0xc1d3d1a2, Data2: 0xae17, Data3: 0x5a5f, Data4: ( 0xb5,0xa2,0xbd,0xcc,0x88,0x44,0x88,0x9a ))// c1d3d1a2-ae17-5a5f-b5a2-bdcc8844889a +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1_boolean { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1_booleanWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerBool: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1_boolean } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1_booleanWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1_boolean.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1_boolean + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerBool + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult: WindowsFoundation.IID { + .init(Data1: 0xc54cb0ed, Data2: 0xa4d3, Data3: 0x5f8e, Data4: ( 0xb5,0xbc,0x91,0xf5,0x09,0x8a,0x26,0x7d ))// c54cb0ed-a4d3-5f8e-b5bc-91f5098a267d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.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__CXaml__CControls__CContentDialogResultWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerContentDialogResult: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerContentDialogResult + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult: WindowsFoundation.IID { + .init(Data1: 0x8806a4d7, Data2: 0x81d6, Data3: 0x50f6, Data4: ( 0x91,0x28,0x52,0xa9,0x53,0x4f,0xeb,0xe1 ))// 8806a4d7-81d6-50f6-9128-52a9534febe1 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.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__CXaml__CData__CLoadMoreItemsResultWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerLoadMoreItemsResult: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerLoadMoreItemsResult + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult: WindowsFoundation.IID { + .init(Data1: 0x276fb687, Data2: 0x4b2c, Data3: 0x535c, Data4: ( 0x91,0x77,0xef,0x70,0x1f,0xdc,0x05,0x2c ))// 276fb687-4b2c-535c-9177-ef701fdc052c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.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__CXaml__CInput__CFocusMovementResultWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerFocusMovementResult: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerFocusMovementResult + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus: WindowsFoundation.IID { + .init(Data1: 0xcf51e7f6, Data2: 0x29ae, Data3: 0x510b, Data4: ( 0x96,0x07,0x0f,0x86,0x10,0x3c,0x61,0xb8 ))// cf51e7f6-29ae-510b-9607-0f86103c61b8 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.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__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerSvgImageSourceLoadStatus: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerSvgImageSourceLoadStatus + + 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__FIAsyncOperationCompletedHandler_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0xb79a741f, Data2: 0x7fb5, Data3: 0x50ae, Data4: ( 0x9e,0x99,0x91,0x12,0x01,0xec,0x3d,0x41 ))// b79a741f-7fb5-50ae-9e99-911201ec3d41 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRING { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerString: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRING } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRING + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerString + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation: WindowsFoundation.IID { + .init(Data1: 0xadd21d46, Data2: 0x17df, Data3: 0x5a43, Data4: ( 0xa6,0x85,0x32,0x62,0xfc,0xe8,0x46,0x43 ))// add21d46-17df-5a43-a685-3262fce84643 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerDataPackageOperation: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerDataPackageOperation + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x7c7899be, Data2: 0x5f2e, Data3: 0x5bf3, Data4: ( 0xad,0xe5,0xad,0x98,0xb7,0x72,0xc7,0xcd ))// 7c7899be-5f2e-5bf3-ade5-ad98b772c7cd +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRING { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation?>? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerIVectorViewString: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRING } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?>?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler?> + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRING + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerIVectorViewString + + 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__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer: WindowsFoundation.IID { + .init(Data1: 0x51c3d2fd, Data2: 0xb8a1, Data3: 0x5620, Data4: ( 0xb7,0x46,0x7e,0xe6,0xd5,0x33,0xac,0xa3 ))// 51c3d2fd-b8a1-5620-b746-7ee6d533aca3 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVTable: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let asyncInfo: WindowsFoundation.AnyIAsyncOperation? = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.unwrapFrom(abi: ComPtr($1)) + let asyncStatus: WindowsFoundation.AsyncStatus = $2 + __unwrapped__instance(asyncInfo, asyncStatus) + return S_OK + } +) +typealias __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper = InterfaceWrapperBase +internal class AsyncOperationCompletedHandlerIBuffer: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer } + + internal func InvokeImpl(_ asyncInfo: WindowsFoundation.AnyIAsyncOperation?, _ asyncStatus: WindowsFoundation.AsyncStatus) throws { + let asyncInfoWrapper = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper(asyncInfo) + let _asyncInfo = try! asyncInfoWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _asyncInfo, asyncStatus)) + } + } + +} + +internal class __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.AsyncOperationCompletedHandler + internal typealias CABI = __x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer + internal typealias SwiftABI = WinUI.AsyncOperationCompletedHandlerIBuffer + + 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_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x092b849b, Data2: 0x60b1, Data3: 0x52be, Data4: ( 0xa4,0x4a,0x6f,0xe8,0xe9,0x33,0xcb,0xe4 ))// 092b849b-60b1-52be-a44a-6fe8e933cbe4 +} + +internal var __x_ABI_C__FIIterable_1_IInspectableVTable: __x_ABI_C__FIIterable_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIIterable_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1_IInspectableWrapper = InterfaceWrapperBase +internal class IIterableAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_IInspectable } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1_IInspectableWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1_IInspectable + internal typealias SwiftABI = IIterableAny + 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_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1_IInspectableImpl : IIterable, AbiInterfaceImpl { + typealias T = Any? + typealias Bridge = __x_ABI_C__FIIterable_1_IInspectableBridge + 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_double: WindowsFoundation.IID { + .init(Data1: 0xc738964e, Data2: 0x9c64, Data3: 0x5bce, Data4: ( 0xb5,0xce,0x61,0xe9,0xa2,0x82,0xec,0x4a ))// c738964e-9c64-5bce-b5ce-61e9a282ec4a +} + +internal var __x_ABI_C__FIIterable_1_doubleVTable: __x_ABI_C__FIIterable_1_doubleVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1_doubleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1_doubleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1_doubleWrapper.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] = WinUI.__x_ABI_C__FIIterable_1_doubleWrapper.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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1_doubleWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1_doubleWrapper = InterfaceWrapperBase +internal class IIterableDouble: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_double } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1_doubleWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1_doubleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1_double + internal typealias SwiftABI = IIterableDouble + 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_doubleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_doubleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1_doubleImpl : IIterable, AbiInterfaceImpl { + typealias T = Double + typealias Bridge = __x_ABI_C__FIIterable_1_doubleBridge + 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_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] = WinUI.__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 = WinUI.__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 WinUI.__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_int: WindowsFoundation.IID { + .init(Data1: 0x81a643fb, Data2: 0xf51c, Data3: 0x5565, Data4: ( 0x83,0xc4,0xf9,0x64,0x25,0x77,0x7b,0x66 ))// 81a643fb-f51c-5565-83c4-f96425777b66 +} + +internal var __x_ABI_C__FIIterable_1_intVTable: __x_ABI_C__FIIterable_1_intVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1_intWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1_intWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1_intWrapper.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] = WinUI.__x_ABI_C__FIIterable_1_intWrapper.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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1_intWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1_intWrapper = InterfaceWrapperBase +internal class IIterableInt32: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1_int } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1_intWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1_intBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1_int + internal typealias SwiftABI = IIterableInt32 + 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_intImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1_intVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1_intImpl : IIterable, AbiInterfaceImpl { + typealias T = Int32 + typealias Bridge = __x_ABI_C__FIIterable_1_intBridge + 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] = WinUI.__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 = WinUI.__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 WinUI.__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__CXaml__CAutomation__CAutomationAnnotation: WindowsFoundation.IID { + .init(Data1: 0x9ff9a2b0, Data2: 0x9188, Data3: 0x5bb1, Data4: ( 0x8d,0xe7,0x81,0xcd,0xbb,0x9f,0xac,0xdf ))// 9ff9a2b0-9188-5bb1-8de7-81cdbb9facdf +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper = InterfaceWrapperBase +internal class IIterableAutomationAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation } + + 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__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation + internal typealias SwiftABI = IIterableAutomationAnnotation + 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__CXaml__CAutomation__CAutomationAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.AutomationAnnotation? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge + 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__CXaml__CAutomation__CPeers__CAutomationPeer: WindowsFoundation.IID { + .init(Data1: 0x3513d61b, Data2: 0xff0f, Data3: 0x523d, Data4: ( 0x87,0x2c,0xa4,0x96,0xad,0xb9,0xbc,0xa2 ))// 3513d61b-ff0f-523d-872c-a496adb9bca2 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper = InterfaceWrapperBase +internal class IIterableAutomationPeer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer } + + 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__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer + internal typealias SwiftABI = IIterableAutomationPeer + 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__CXaml__CAutomation__CPeers__CAutomationPeerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeer? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation: WindowsFoundation.IID { + .init(Data1: 0xae90a2bb, Data2: 0x4062, Data3: 0x586e, Data4: ( 0xb4,0x36,0x1a,0xcf,0x9f,0x4d,0xfd,0x56 ))// ae90a2bb-4062-586e-b436-1acf9f4dfd56 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper = InterfaceWrapperBase +internal class IIterableAutomationPeerAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation } + + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation + internal typealias SwiftABI = IIterableAutomationPeerAnnotation + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeerAnnotation? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge + 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__CXaml__CControls__CColumnDefinition: WindowsFoundation.IID { + .init(Data1: 0x80741c8f, Data2: 0xa401, Data3: 0x5c63, Data4: ( 0xb6,0xc4,0x15,0xd1,0x65,0xe5,0x41,0xc7 ))// 80741c8f-a401-5c63-b6c4-15d165e541c7 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper = InterfaceWrapperBase +internal class IIterableColumnDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition } + + 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__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition + internal typealias SwiftABI = IIterableColumnDefinition + 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__CXaml__CControls__CColumnDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ColumnDefinition? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge + 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__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x0e43baf0, Data2: 0x60ad, Data3: 0x547c, Data4: ( 0xbb,0xc4,0xe5,0x11,0x03,0x6a,0x39,0x15 ))// 0e43baf0-60ad-547c-bbc4-e511036a3915 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class IIterableGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + 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__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = IIterableGroupStyle + 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__CXaml__CControls__CGroupStyleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.GroupStyle? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge + 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__CXaml__CControls__CItemCollectionTransition: WindowsFoundation.IID { + .init(Data1: 0x5c79af60, Data2: 0x043a, Data3: 0x5384, Data4: ( 0xa6,0x31,0x10,0xdc,0xbe,0xe4,0xd4,0xe2 ))// 5c79af60-043a-5384-a631-10dcbee4d4e2 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper = InterfaceWrapperBase +internal class IIterableItemCollectionTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition } + + 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__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition + internal typealias SwiftABI = IIterableItemCollectionTransition + 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__CXaml__CControls__CItemCollectionTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ItemCollectionTransition? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge + 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__CXaml__CControls__CMenuBarItem: WindowsFoundation.IID { + .init(Data1: 0x941f98ad, Data2: 0xab6e, Data3: 0x5caa, Data4: ( 0xa7,0x76,0x83,0xe4,0x2c,0xa7,0xa0,0x6d ))// 941f98ad-ab6e-5caa-a776-83e42ca7a06d +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper = InterfaceWrapperBase +internal class IIterableMenuBarItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem } + + 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__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem + internal typealias SwiftABI = IIterableMenuBarItem + 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__CXaml__CControls__CMenuBarItemImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.MenuBarItem? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge + 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__CXaml__CControls__CMenuFlyoutItemBase: WindowsFoundation.IID { + .init(Data1: 0xe7f6d650, Data2: 0x84ad, Data3: 0x5559, Data4: ( 0xad,0x9d,0x69,0x2c,0xec,0xad,0xdf,0x59 ))// e7f6d650-84ad-5559-ad9d-692cecaddf59 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper = InterfaceWrapperBase +internal class IIterableMenuFlyoutItemBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase } + + 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__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase + internal typealias SwiftABI = IIterableMenuFlyoutItemBase + 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__CXaml__CControls__CMenuFlyoutItemBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.MenuFlyoutItemBase? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge + 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__CXaml__CControls__CPrimitives__CPopup: WindowsFoundation.IID { + .init(Data1: 0x968549c1, Data2: 0x6a38, Data3: 0x52a3, Data4: ( 0xbb,0x27,0xc4,0x3a,0x3b,0xa8,0x12,0x80 ))// 968549c1-6a38-52a3-bb27-c43a3ba81280 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper = InterfaceWrapperBase +internal class IIterablePopup: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup } + + 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__CXaml__CControls__CPrimitives__CPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup + internal typealias SwiftABI = IIterablePopup + 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__CXaml__CControls__CPrimitives__CPopupImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.Popup? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupBridge + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0xb473ae58, Data2: 0x7c88, Data3: 0x5b2d, Data4: ( 0x85,0xfb,0xbf,0x51,0xc6,0x36,0x6b,0x5f ))// b473ae58-7c88-5b2d-85fb-bf51c6366b5f +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper = InterfaceWrapperBase +internal class IIterableScrollSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase } + + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase + internal typealias SwiftABI = IIterableScrollSnapPointBase + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ScrollSnapPointBase? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0xa3e88653, Data2: 0x622e, Data3: 0x597c, Data4: ( 0x8c,0xdb,0x7d,0x54,0xd2,0x34,0x2a,0xec ))// a3e88653-622e-597c-8cdb-7d54d2342aec +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper = InterfaceWrapperBase +internal class IIterableZoomSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase } + + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase + internal typealias SwiftABI = IIterableZoomSnapPointBase + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ZoomSnapPointBase? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge + 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__CXaml__CControls__CRowDefinition: WindowsFoundation.IID { + .init(Data1: 0xb0b30930, Data2: 0x7697, Data3: 0x561e, Data4: ( 0xbd,0x6e,0xfb,0xbb,0x1a,0xd1,0x7c,0x50 ))// b0b30930-7697-561e-bd6e-fbbb1ad17c50 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper = InterfaceWrapperBase +internal class IIterableRowDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition } + + 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__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition + internal typealias SwiftABI = IIterableRowDefinition + 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__CXaml__CControls__CRowDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.RowDefinition? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge + 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__CXaml__CControls__CTreeViewNode: WindowsFoundation.IID { + .init(Data1: 0x81cb52ce, Data2: 0xe34f, Data3: 0x5d1f, Data4: ( 0xa1,0x18,0xfa,0x36,0x75,0xd2,0x10,0x5a ))// 81cb52ce-e34f-5d1f-a118-fa3675d2105a +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper = InterfaceWrapperBase +internal class IIterableTreeViewNode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode } + + 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__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode + internal typealias SwiftABI = IIterableTreeViewNode + 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__CXaml__CControls__CTreeViewNodeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.TreeViewNode? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge + 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__CXaml__CData__CItemIndexRange: WindowsFoundation.IID { + .init(Data1: 0x6f328b92, Data2: 0x1eb5, Data3: 0x54df, Data4: ( 0xb7,0x56,0xe8,0xd9,0xfd,0x9a,0xbe,0xa5 ))// 6f328b92-1eb5-54df-b756-e8d9fd9abea5 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper = InterfaceWrapperBase +internal class IIterableItemIndexRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange } + + 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__CXaml__CData__CItemIndexRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange + internal typealias SwiftABI = IIterableItemIndexRange + 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__CXaml__CData__CItemIndexRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ItemIndexRange? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeBridge + 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__CXaml__CDependencyObject: WindowsFoundation.IID { + .init(Data1: 0x838a6966, Data2: 0x6de6, Data3: 0x5040, Data4: ( 0xa1,0x4f,0xba,0x34,0xd5,0x42,0x5a,0xb4 ))// 838a6966-6de6-5040-a14f-ba34d5425ab4 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper = InterfaceWrapperBase +internal class IIterableDependencyObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject } + + 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__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject + internal typealias SwiftABI = IIterableDependencyObject + 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__CXaml__CDependencyObjectImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.DependencyObject? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge + 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__CXaml__CDocuments__CInline: WindowsFoundation.IID { + .init(Data1: 0xf86f5da2, Data2: 0x1896, Data3: 0x5eed, Data4: ( 0xaa,0x75,0xa0,0x74,0x76,0x95,0x2d,0xbf ))// f86f5da2-1896-5eed-aa75-a07476952dbf +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper = InterfaceWrapperBase +internal class IIterableInline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline } + + 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__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline + internal typealias SwiftABI = IIterableInline + 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__CXaml__CDocuments__CInlineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.Inline? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge + 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__CXaml__CDocuments__CTextHighlighter: WindowsFoundation.IID { + .init(Data1: 0x3a384abd, Data2: 0x9b89, Data3: 0x5b75, Data4: ( 0x97,0x23,0x04,0x7b,0x45,0xaa,0xf4,0x60 ))// 3a384abd-9b89-5b75-9723-047b45aaf460 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper = InterfaceWrapperBase +internal class IIterableTextHighlighter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter } + + 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__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter + internal typealias SwiftABI = IIterableTextHighlighter + 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__CXaml__CDocuments__CTextHighlighterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.TextHighlighter? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge + 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__CXaml__CDocuments__CTextRange: WindowsFoundation.IID { + .init(Data1: 0x078dc9d3, Data2: 0x4f5e, Data3: 0x5ab0, Data4: ( 0xa7,0x84,0x72,0x2a,0x4b,0x1f,0xcb,0x01 ))// 078dc9d3-4f5e-5ab0-a784-722a4b1fcb01 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper = InterfaceWrapperBase +internal class IIterableTextRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange } + + 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__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange + internal typealias SwiftABI = IIterableTextRange + 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__CXaml__CDocuments__CTextRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.TextRange + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge + 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__CXaml__CInput__CInputScopeName: WindowsFoundation.IID { + .init(Data1: 0x91489ea1, Data2: 0x4d95, Data3: 0x55ef, Data4: ( 0xa2,0xe0,0x7d,0x10,0x8c,0x5f,0x5f,0x6b ))// 91489ea1-4d95-55ef-a2e0-7d108c5f5f6b +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper = InterfaceWrapperBase +internal class IIterableInputScopeName: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName } + + 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__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName + internal typealias SwiftABI = IIterableInputScopeName + 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__CXaml__CInput__CInputScopeNameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.InputScopeName? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge + 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__CXaml__CInput__CKeyboardAccelerator: WindowsFoundation.IID { + .init(Data1: 0x68b2e097, Data2: 0xf07e, Data3: 0x580f, Data4: ( 0x8b,0xfd,0xb9,0x0a,0x0b,0x2a,0x88,0x35 ))// 68b2e097-f07e-580f-8bfd-b90a0b2a8835 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper = InterfaceWrapperBase +internal class IIterableKeyboardAccelerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator } + + 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__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator + internal typealias SwiftABI = IIterableKeyboardAccelerator + 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__CXaml__CInput__CKeyboardAcceleratorImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.KeyboardAccelerator? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge + 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__CXaml__CInput__CPointer: WindowsFoundation.IID { + .init(Data1: 0xdbd58230, Data2: 0x79d3, Data3: 0x5947, Data4: ( 0x92,0x4a,0x1e,0xf8,0x6f,0xda,0x3d,0xb5 ))// dbd58230-79d3-5947-924a-1ef86fda3db5 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper = InterfaceWrapperBase +internal class IIterablePointer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer } + + 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__CXaml__CInput__CPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer + internal typealias SwiftABI = IIterablePointer + 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__CXaml__CInput__CPointerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.Pointer? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerBridge + 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__CXaml__CMedia__CAnimation__CColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xfe553349, Data2: 0x5ac6, Data3: 0x5f21, Data4: ( 0x8d,0xff,0x2b,0x24,0x03,0x82,0x51,0x07 ))// fe553349-5ac6-5f21-8dff-2b2403825107 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper = InterfaceWrapperBase +internal class IIterableColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame } + + 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__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame + internal typealias SwiftABI = IIterableColorKeyFrame + 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__CXaml__CMedia__CAnimation__CColorKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ColorKeyFrame? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xbd454020, Data2: 0x1887, Data3: 0x58b8, Data4: ( 0xb1,0xb9,0x27,0x53,0xc4,0x2b,0x6f,0x48 ))// bd454020-1887-58b8-b1b9-2753c42b6f48 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper = InterfaceWrapperBase +internal class IIterableDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame } + + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame + internal typealias SwiftABI = IIterableDoubleKeyFrame + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.DoubleKeyFrame? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge + 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__CXaml__CMedia__CAnimation__CObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xffae3466, Data2: 0xfb63, Data3: 0x527d, Data4: ( 0x86,0x55,0xa8,0xcc,0xdd,0x55,0x39,0xa6 ))// ffae3466-fb63-527d-8655-a8ccdd5539a6 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper = InterfaceWrapperBase +internal class IIterableObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame } + + 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__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame + internal typealias SwiftABI = IIterableObjectKeyFrame + 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__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ObjectKeyFrame? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge + 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__CXaml__CMedia__CAnimation__CPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x04688e75, Data2: 0x0154, Data3: 0x5259, Data4: ( 0x8b,0xd1,0x8d,0xbb,0x68,0xde,0x65,0xe5 ))// 04688e75-0154-5259-8bd1-8dbb68de65e5 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper = InterfaceWrapperBase +internal class IIterablePointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame } + + 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__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame + internal typealias SwiftABI = IIterablePointKeyFrame + 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__CXaml__CMedia__CAnimation__CPointKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.PointKeyFrame? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge + 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__CXaml__CMedia__CAnimation__CTimeline: WindowsFoundation.IID { + .init(Data1: 0x89f87b00, Data2: 0xa552, Data3: 0x5e0a, Data4: ( 0x99,0x80,0xcd,0x6a,0x53,0x70,0xe2,0x0c ))// 89f87b00-a552-5e0a-9980-cd6a5370e20c +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper = InterfaceWrapperBase +internal class IIterableTimeline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline } + + 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__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline + internal typealias SwiftABI = IIterableTimeline + 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__CXaml__CMedia__CAnimation__CTimelineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.Timeline? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge + 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__CXaml__CMedia__CAnimation__CTransition: WindowsFoundation.IID { + .init(Data1: 0x3ccaccb1, Data2: 0x02dc, Data3: 0x5456, Data4: ( 0x92,0x2a,0xa2,0x64,0xc8,0x01,0x05,0xb8 ))// 3ccaccb1-02dc-5456-922a-a264c80105b8 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper = InterfaceWrapperBase +internal class IIterableTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition } + + 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__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition + internal typealias SwiftABI = IIterableTransition + 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__CXaml__CMedia__CAnimation__CTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.Transition? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge + 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__CXaml__CMedia__CGradientStop: WindowsFoundation.IID { + .init(Data1: 0x6b443031, Data2: 0x7f9f, Data3: 0x5c5a, Data4: ( 0x97,0xa9,0x3f,0xf5,0x57,0xbe,0xc5,0x86 ))// 6b443031-7f9f-5c5a-97a9-3ff557bec586 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper = InterfaceWrapperBase +internal class IIterableGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop } + + 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__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop + internal typealias SwiftABI = IIterableGradientStop + 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__CXaml__CMedia__CGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.GradientStop? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge + 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__CXaml__CMedia__CPathFigure: WindowsFoundation.IID { + .init(Data1: 0x387967ce, Data2: 0x013f, Data3: 0x57f5, Data4: ( 0x9a,0x6f,0x4c,0xa5,0x96,0xb0,0xd8,0x0a ))// 387967ce-013f-57f5-9a6f-4ca596b0d80a +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper = InterfaceWrapperBase +internal class IIterablePathFigure: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure } + + 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__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure + internal typealias SwiftABI = IIterablePathFigure + 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__CXaml__CMedia__CPathFigureImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.PathFigure? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge + 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__CXaml__CMedia__CPathSegment: WindowsFoundation.IID { + .init(Data1: 0xfcc860cd, Data2: 0x04a1, Data3: 0x5b10, Data4: ( 0x87,0x27,0xde,0xb2,0xfa,0x51,0xa9,0x6b ))// fcc860cd-04a1-5b10-8727-deb2fa51a96b +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper = InterfaceWrapperBase +internal class IIterablePathSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment } + + 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__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment + internal typealias SwiftABI = IIterablePathSegment + 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__CXaml__CMedia__CPathSegmentImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.PathSegment? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge + 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__CXaml__CMedia__CXamlLight: WindowsFoundation.IID { + .init(Data1: 0xc166d8ca, Data2: 0xb148, Data3: 0x5241, Data4: ( 0xbe,0xd5,0x13,0x00,0x30,0x63,0xbd,0x3e ))// c166d8ca-b148-5241-bed5-13003063bd3e +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper = InterfaceWrapperBase +internal class IIterableXamlLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight } + + 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__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight + internal typealias SwiftABI = IIterableXamlLight + 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__CXaml__CMedia__CXamlLightImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.XamlLight? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge + 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__CXaml__CNavigation__CPageStackEntry: WindowsFoundation.IID { + .init(Data1: 0xc4f16816, Data2: 0x858c, Data3: 0x5ec6, Data4: ( 0xbb,0x69,0xf2,0x7e,0x2e,0x71,0xfc,0x25 ))// c4f16816-858c-5ec6-bb69-f27e2e71fc25 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper = InterfaceWrapperBase +internal class IIterablePageStackEntry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry } + + 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__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry + internal typealias SwiftABI = IIterablePageStackEntry + 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__CXaml__CNavigation__CPageStackEntryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.PageStackEntry? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge + 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__CXaml__CResourceDictionary: WindowsFoundation.IID { + .init(Data1: 0x1da2bea2, Data2: 0x3287, Data3: 0x5edf, Data4: ( 0xb6,0x2e,0x0d,0x07,0x3c,0x68,0xce,0x0b ))// 1da2bea2-3287-5edf-b62e-0d073c68ce0b +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper = InterfaceWrapperBase +internal class IIterableResourceDictionary: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary } + + 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__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary + internal typealias SwiftABI = IIterableResourceDictionary + 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__CXaml__CResourceDictionaryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.ResourceDictionary? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge + 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__CXaml__CSetterBase: WindowsFoundation.IID { + .init(Data1: 0x9fa9cd08, Data2: 0x8676, Data3: 0x51ab, Data4: ( 0xaf,0xf6,0x60,0x4d,0x0d,0xde,0xa1,0x85 ))// 9fa9cd08-8676-51ab-aff6-604d0ddea185 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper = InterfaceWrapperBase +internal class IIterableSetterBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase } + + 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__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase + internal typealias SwiftABI = IIterableSetterBase + 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__CXaml__CSetterBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.SetterBase? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge + 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__CXaml__CTriggerBase: WindowsFoundation.IID { + .init(Data1: 0x4fb6a3b8, Data2: 0x0c07, Data3: 0x57c1, Data4: ( 0xac,0xa7,0xa7,0xbc,0x45,0x3b,0x91,0xe2 ))// 4fb6a3b8-0c07-57c1-aca7-a7bc453b91e2 +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper = InterfaceWrapperBase +internal class IIterableTriggerBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase } + + 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__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase + internal typealias SwiftABI = IIterableTriggerBase + 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__CXaml__CTriggerBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.TriggerBase? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge + 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__CXaml__CUIElement: WindowsFoundation.IID { + .init(Data1: 0x459bb954, Data2: 0x42a3, Data3: 0x5c74, Data4: ( 0x8f,0x87,0x42,0x45,0x8f,0x19,0xae,0xaa ))// 459bb954-42a3-5c74-8f87-42458f19aeaa +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable: __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper = InterfaceWrapperBase +internal class IIterableUIElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement } + + 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__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + internal typealias SwiftABI = IIterableUIElement + 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__CXaml__CUIElementImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementImpl : IIterable, AbiInterfaceImpl { + typealias T = WinUI.UIElement? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge + 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] = WinUI.__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 = WinUI.__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 WinUI.__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__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0xae44597e, Data2: 0xd411, Data3: 0x5b7f, Data4: ( 0xbb,0xec,0x6a,0x96,0xc9,0x4a,0x10,0x7a ))// ae44597e-d411-5b7f-bbec-6a96c94a107a +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IIterableIIterablePoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator?>? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IIterableIIterablePoint + 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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointImpl : IIterable, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIIterable? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge + 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_IInspectable_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x33ac68f0, Data2: 0x1084, Data3: 0x529a, Data4: ( 0x8a,0x17,0x4e,0x7c,0x8a,0xdb,0x7a,0x0c ))// 33ac68f0-1084-529a-8a17-4e7c8adb7a0c +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable: __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper = InterfaceWrapperBase +internal class IIterableIKeyValuePairAny_Any: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable } + + 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_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable + internal typealias SwiftABI = IIterableIKeyValuePairAny_Any + 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_IInspectable_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableImpl : IIterable, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableBridge + 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_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0xc192280d, Data2: 0x3a09, Data3: 0x5423, Data4: ( 0x9d,0xc5,0x67,0xb8,0x3e,0xbd,0xe4,0x1d ))// c192280d-3a09-5423-9dc5-67b83ebde41d +} + +internal var __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.first() + let resultWrapper = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IIterablePoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func FirstImpl() throws -> WindowsFoundation.AnyIIterator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.First(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IIterablePoint + 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_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointImpl : IIterable, AbiInterfaceImpl { + typealias T = WindowsFoundation.Point + typealias Bridge = __x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge + 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_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x44a94f2d, Data2: 0x04f8, Data3: 0x5091, Data4: ( 0xb3,0x36,0xbe,0x78,0x92,0xdd,0x10,0xbe ))// 44a94f2d-04f8-5091-b336-be7892dd10be +} + +internal var __x_ABI_C__FIIterator_1_IInspectableVTable: __x_ABI_C__FIIterator_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIIterator_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1_IInspectableWrapper.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_IInspectableWrapper.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_IInspectableWrapper = InterfaceWrapperBase +internal class IIteratorAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_IInspectable } + + internal func get_CurrentImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_IInspectable.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_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1_IInspectable + internal typealias SwiftABI = IIteratorAny + 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_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1_IInspectableImpl : IIterator, AbiInterfaceImpl { + typealias T = Any? + typealias Bridge = __x_ABI_C__FIIterator_1_IInspectableBridge + 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 : Any? { + 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_double: WindowsFoundation.IID { + .init(Data1: 0x638a2cf4, Data2: 0xf474, Data3: 0x5318, Data4: ( 0x90,0x55,0x14,0x1c,0xb9,0x09,0xac,0x4b ))// 638a2cf4-f474-5318-9055-141cb909ac4b +} + +internal var __x_ABI_C__FIIterator_1_doubleVTable: __x_ABI_C__FIIterator_1_doubleVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1_doubleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1_doubleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1_doubleWrapper.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] = WinUI.__x_ABI_C__FIIterator_1_doubleWrapper.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_doubleWrapper.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_doubleWrapper.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_doubleWrapper.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_doubleWrapper = InterfaceWrapperBase +internal class IIteratorDouble: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_double } + + internal func get_CurrentImpl() throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_C__FIIterator_1_double.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_double.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_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1_doubleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1_double + internal typealias SwiftABI = IIteratorDouble + 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_doubleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_doubleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1_doubleImpl : IIterator, AbiInterfaceImpl { + typealias T = Double + typealias Bridge = __x_ABI_C__FIIterator_1_doubleBridge + 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 : Double { + 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_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] = WinUI.__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_int: WindowsFoundation.IID { + .init(Data1: 0xbfea7f78, Data2: 0x50c2, Data3: 0x5f1d, Data4: ( 0xa6,0xea,0x9e,0x97,0x8d,0x26,0x99,0xff ))// bfea7f78-50c2-5f1d-a6ea-9e978d2699ff +} + +internal var __x_ABI_C__FIIterator_1_intVTable: __x_ABI_C__FIIterator_1_intVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1_intWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1_intWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1_intWrapper.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] = WinUI.__x_ABI_C__FIIterator_1_intWrapper.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_intWrapper.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_intWrapper.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_intWrapper.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_intWrapper = InterfaceWrapperBase +internal class IIteratorInt32: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1_int } + + internal func get_CurrentImpl() throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1_int.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_int.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_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.MoveNext(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIIterator_1_intBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1_int + internal typealias SwiftABI = IIteratorInt32 + 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_intImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1_intVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1_intImpl : IIterator, AbiInterfaceImpl { + typealias T = Int32 + typealias Bridge = __x_ABI_C__FIIterator_1_intBridge + 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 : Int32 { + 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] = WinUI.__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__CXaml__CAutomation__CAutomationAnnotation: WindowsFoundation.IID { + .init(Data1: 0xc6650c15, Data2: 0x8d09, Data3: 0x53f4, Data4: ( 0x8e,0x6c,0x62,0x0b,0xce,0x4f,0xf9,0xae ))// c6650c15-8d09-53f4-8e6c-620bce4ff9ae +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper = InterfaceWrapperBase +internal class IIteratorAutomationAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation } + + internal func get_CurrentImpl() throws -> WinUI.AutomationAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation + internal typealias SwiftABI = IIteratorAutomationAnnotation + 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__CXaml__CAutomation__CAutomationAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.AutomationAnnotation? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge + 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 : WinUI.AutomationAnnotation? { + 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__CXaml__CAutomation__CPeers__CAutomationPeer: WindowsFoundation.IID { + .init(Data1: 0xf5322c8c, Data2: 0xbc0a, Data3: 0x56cf, Data4: ( 0x81,0x2c,0x5f,0xe1,0x40,0x02,0x1f,0x62 ))// f5322c8c-bc0a-56cf-812c-5fe140021f62 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper = InterfaceWrapperBase +internal class IIteratorAutomationPeer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer } + + internal func get_CurrentImpl() throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer + internal typealias SwiftABI = IIteratorAutomationPeer + 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__CXaml__CAutomation__CPeers__CAutomationPeerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeer? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge + 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 : WinUI.AutomationPeer? { + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation: WindowsFoundation.IID { + .init(Data1: 0x27b3501a, Data2: 0x5cb5, Data3: 0x572b, Data4: ( 0xb3,0xa3,0x10,0xc3,0x8d,0x82,0xea,0xcc ))// 27b3501a-5cb5-572b-b3a3-10c38d82eacc +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper = InterfaceWrapperBase +internal class IIteratorAutomationPeerAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation } + + internal func get_CurrentImpl() throws -> WinUI.AutomationPeerAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation + internal typealias SwiftABI = IIteratorAutomationPeerAnnotation + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeerAnnotation? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge + 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 : WinUI.AutomationPeerAnnotation? { + 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__CXaml__CControls__CColumnDefinition: WindowsFoundation.IID { + .init(Data1: 0x9309739c, Data2: 0xa52f, Data3: 0x5130, Data4: ( 0xa0,0x2c,0xc9,0xbc,0xf7,0x05,0xdf,0x7a ))// 9309739c-a52f-5130-a02c-c9bcf705df7a +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper = InterfaceWrapperBase +internal class IIteratorColumnDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition } + + internal func get_CurrentImpl() throws -> WinUI.ColumnDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition + internal typealias SwiftABI = IIteratorColumnDefinition + 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__CXaml__CControls__CColumnDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ColumnDefinition? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge + 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 : WinUI.ColumnDefinition? { + 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__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x862e10bb, Data2: 0x08be, Data3: 0x5a33, Data4: ( 0x84,0xea,0xda,0x75,0x7e,0xa2,0x8d,0x59 ))// 862e10bb-08be-5a33-84ea-da757ea28d59 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class IIteratorGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + internal func get_CurrentImpl() throws -> WinUI.GroupStyle? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = IIteratorGroupStyle + 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__CXaml__CControls__CGroupStyleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.GroupStyle? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge + 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 : WinUI.GroupStyle? { + 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__CXaml__CControls__CItemCollectionTransition: WindowsFoundation.IID { + .init(Data1: 0xd7f2af42, Data2: 0xa436, Data3: 0x5bc1, Data4: ( 0xa7,0x97,0x05,0x39,0xe0,0xee,0x58,0xb1 ))// d7f2af42-a436-5bc1-a797-0539e0ee58b1 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper = InterfaceWrapperBase +internal class IIteratorItemCollectionTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition } + + internal func get_CurrentImpl() throws -> WinUI.ItemCollectionTransition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition + internal typealias SwiftABI = IIteratorItemCollectionTransition + 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__CXaml__CControls__CItemCollectionTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ItemCollectionTransition? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge + 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 : WinUI.ItemCollectionTransition? { + 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__CXaml__CControls__CMenuBarItem: WindowsFoundation.IID { + .init(Data1: 0x1637d07e, Data2: 0xb223, Data3: 0x5f2f, Data4: ( 0xa3,0x75,0xf0,0x94,0xba,0x90,0x97,0x0b ))// 1637d07e-b223-5f2f-a375-f094ba90970b +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper = InterfaceWrapperBase +internal class IIteratorMenuBarItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem } + + internal func get_CurrentImpl() throws -> WinUI.MenuBarItem? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItemBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem + internal typealias SwiftABI = IIteratorMenuBarItem + 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__CXaml__CControls__CMenuBarItemImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.MenuBarItem? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge + 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 : WinUI.MenuBarItem? { + 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__CXaml__CControls__CMenuFlyoutItemBase: WindowsFoundation.IID { + .init(Data1: 0x64dc6e15, Data2: 0x7649, Data3: 0x563f, Data4: ( 0x9a,0xbc,0x05,0x3e,0x01,0x0b,0xc9,0xaf ))// 64dc6e15-7649-563f-9abc-053e010bc9af +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper = InterfaceWrapperBase +internal class IIteratorMenuFlyoutItemBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase } + + internal func get_CurrentImpl() throws -> WinUI.MenuFlyoutItemBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase + internal typealias SwiftABI = IIteratorMenuFlyoutItemBase + 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__CXaml__CControls__CMenuFlyoutItemBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.MenuFlyoutItemBase? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge + 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 : WinUI.MenuFlyoutItemBase? { + 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__CXaml__CControls__CPrimitives__CPopup: WindowsFoundation.IID { + .init(Data1: 0x899ce360, Data2: 0xeade, Data3: 0x504b, Data4: ( 0x8c,0x0f,0xcf,0x3e,0x94,0xa2,0xea,0x4e ))// 899ce360-eade-504b-8c0f-cf3e94a2ea4e +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper = InterfaceWrapperBase +internal class IIteratorPopup: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup } + + internal func get_CurrentImpl() throws -> WinUI.Popup? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup.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__CXaml__CControls__CPrimitives__CPopup.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__CXaml__CControls__CPrimitives__CPopup.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__CXaml__CControls__CPrimitives__CPopupBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup + internal typealias SwiftABI = IIteratorPopup + 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__CXaml__CControls__CPrimitives__CPopupImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.Popup? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupBridge + 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 : WinUI.Popup? { + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x02f96dea, Data2: 0x8fc0, Data3: 0x535f, Data4: ( 0xbd,0x68,0x0b,0xdb,0xc8,0x5c,0x20,0x7f ))// 02f96dea-8fc0-535f-bd68-0bdbc85c207f +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper = InterfaceWrapperBase +internal class IIteratorScrollSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase } + + internal func get_CurrentImpl() throws -> WinUI.ScrollSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase + internal typealias SwiftABI = IIteratorScrollSnapPointBase + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ScrollSnapPointBase? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge + 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 : WinUI.ScrollSnapPointBase? { + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x3bb2735f, Data2: 0x224e, Data3: 0x547b, Data4: ( 0xa7,0xba,0x43,0x31,0x19,0x9a,0xf8,0x93 ))// 3bb2735f-224e-547b-a7ba-4331199af893 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper = InterfaceWrapperBase +internal class IIteratorZoomSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase } + + internal func get_CurrentImpl() throws -> WinUI.ZoomSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase + internal typealias SwiftABI = IIteratorZoomSnapPointBase + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ZoomSnapPointBase? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge + 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 : WinUI.ZoomSnapPointBase? { + 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__CXaml__CControls__CRowDefinition: WindowsFoundation.IID { + .init(Data1: 0x78108cba, Data2: 0xfc4e, Data3: 0x5b6c, Data4: ( 0x80,0x0d,0x6c,0x09,0x1b,0x0a,0x1c,0x22 ))// 78108cba-fc4e-5b6c-800d-6c091b0a1c22 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper = InterfaceWrapperBase +internal class IIteratorRowDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition } + + internal func get_CurrentImpl() throws -> WinUI.RowDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition + internal typealias SwiftABI = IIteratorRowDefinition + 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__CXaml__CControls__CRowDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.RowDefinition? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge + 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 : WinUI.RowDefinition? { + 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__CXaml__CControls__CTreeViewNode: WindowsFoundation.IID { + .init(Data1: 0x6e1c3355, Data2: 0x54fa, Data3: 0x5222, Data4: ( 0x93,0x51,0xd8,0x12,0xc5,0x69,0x4d,0x59 ))// 6e1c3355-54fa-5222-9351-d812c5694d59 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper = InterfaceWrapperBase +internal class IIteratorTreeViewNode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode } + + internal func get_CurrentImpl() throws -> WinUI.TreeViewNode? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNodeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode + internal typealias SwiftABI = IIteratorTreeViewNode + 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__CXaml__CControls__CTreeViewNodeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.TreeViewNode? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge + 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 : WinUI.TreeViewNode? { + 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__CXaml__CData__CItemIndexRange: WindowsFoundation.IID { + .init(Data1: 0x8cbc4e1b, Data2: 0x9d17, Data3: 0x5fec, Data4: ( 0xbb,0xb0,0x0b,0x25,0x60,0x1a,0x4e,0x2d ))// 8cbc4e1b-9d17-5fec-bbb0-0b25601a4e2d +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper = InterfaceWrapperBase +internal class IIteratorItemIndexRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange } + + internal func get_CurrentImpl() throws -> WinUI.ItemIndexRange? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange.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__CXaml__CData__CItemIndexRange.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__CXaml__CData__CItemIndexRange.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__CXaml__CData__CItemIndexRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange + internal typealias SwiftABI = IIteratorItemIndexRange + 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__CXaml__CData__CItemIndexRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ItemIndexRange? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeBridge + 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 : WinUI.ItemIndexRange? { + 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__CXaml__CDependencyObject: WindowsFoundation.IID { + .init(Data1: 0x62e49306, Data2: 0x76d0, Data3: 0x5cd7, Data4: ( 0x97,0xd5,0xef,0x08,0xc9,0x34,0xfe,0x9a ))// 62e49306-76d0-5cd7-97d5-ef08c934fe9a +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper = InterfaceWrapperBase +internal class IIteratorDependencyObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject } + + internal func get_CurrentImpl() throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObject.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__CXaml__CDependencyObject.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__CXaml__CDependencyObjectBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject + internal typealias SwiftABI = IIteratorDependencyObject + 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__CXaml__CDependencyObjectImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.DependencyObject? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge + 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 : WinUI.DependencyObject? { + 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__CXaml__CDocuments__CInline: WindowsFoundation.IID { + .init(Data1: 0x86e55d23, Data2: 0x6538, Data3: 0x5ca8, Data4: ( 0xb9,0x44,0xd6,0x63,0xe1,0x1a,0x51,0x20 ))// 86e55d23-6538-5ca8-b944-d663e11a5120 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper = InterfaceWrapperBase +internal class IIteratorInline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline } + + internal func get_CurrentImpl() throws -> WinUI.Inline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInlineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline + internal typealias SwiftABI = IIteratorInline + 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__CXaml__CDocuments__CInlineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.Inline? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge + 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 : WinUI.Inline? { + 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__CXaml__CDocuments__CTextHighlighter: WindowsFoundation.IID { + .init(Data1: 0xfc6439f0, Data2: 0xabb0, Data3: 0x5228, Data4: ( 0x86,0x22,0xed,0x9b,0x13,0x37,0xbd,0xc9 ))// fc6439f0-abb0-5228-8622-ed9b1337bdc9 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper = InterfaceWrapperBase +internal class IIteratorTextHighlighter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter } + + internal func get_CurrentImpl() throws -> WinUI.TextHighlighter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter + internal typealias SwiftABI = IIteratorTextHighlighter + 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__CXaml__CDocuments__CTextHighlighterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.TextHighlighter? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge + 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 : WinUI.TextHighlighter? { + 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__CXaml__CDocuments__CTextRange: WindowsFoundation.IID { + .init(Data1: 0xc70c1944, Data2: 0x933a, Data3: 0x5ae4, Data4: ( 0xbb,0x65,0x93,0xac,0xfc,0x3f,0x3c,0x40 ))// c70c1944-933a-5ae4-bb65-93acfc3f3c40 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + $1?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper = InterfaceWrapperBase +internal class IIteratorTextRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange } + + internal func get_CurrentImpl() throws -> WinUI.TextRange { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange = .init() + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result)) + } + 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__CXaml__CDocuments__CTextRange.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__CXaml__CDocuments__CTextRange.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__CXaml__CDocuments__CTextRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange + internal typealias SwiftABI = IIteratorTextRange + 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__CXaml__CDocuments__CTextRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.TextRange + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge + 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 : WinUI.TextRange { + 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__CXaml__CInput__CInputScopeName: WindowsFoundation.IID { + .init(Data1: 0x07f0ed85, Data2: 0x97c5, Data3: 0x5d09, Data4: ( 0x98,0xa4,0x7b,0x35,0x4c,0x12,0xae,0x99 ))// 07f0ed85-97c5-5d09-98a4-7b354c12ae99 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper = InterfaceWrapperBase +internal class IIteratorInputScopeName: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName } + + internal func get_CurrentImpl() throws -> WinUI.InputScopeName? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeNameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName + internal typealias SwiftABI = IIteratorInputScopeName + 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__CXaml__CInput__CInputScopeNameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.InputScopeName? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge + 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 : WinUI.InputScopeName? { + 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__CXaml__CInput__CKeyboardAccelerator: WindowsFoundation.IID { + .init(Data1: 0x6a7cb393, Data2: 0x53c9, Data3: 0x5481, Data4: ( 0xba,0x42,0x90,0xd4,0x31,0x24,0x3d,0x14 ))// 6a7cb393-53c9-5481-ba42-90d431243d14 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper = InterfaceWrapperBase +internal class IIteratorKeyboardAccelerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator } + + internal func get_CurrentImpl() throws -> WinUI.KeyboardAccelerator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAcceleratorBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator + internal typealias SwiftABI = IIteratorKeyboardAccelerator + 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__CXaml__CInput__CKeyboardAcceleratorImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.KeyboardAccelerator? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge + 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 : WinUI.KeyboardAccelerator? { + 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__CXaml__CInput__CPointer: WindowsFoundation.IID { + .init(Data1: 0x41b19b91, Data2: 0x7d83, Data3: 0x5bb2, Data4: ( 0x8a,0x98,0x9b,0x20,0xbb,0xc3,0x59,0xcf ))// 41b19b91-7d83-5bb2-8a98-9b20bbc359cf +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper = InterfaceWrapperBase +internal class IIteratorPointer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer } + + internal func get_CurrentImpl() throws -> WinUI.Pointer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer.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__CXaml__CInput__CPointer.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__CXaml__CInput__CPointer.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__CXaml__CInput__CPointerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer + internal typealias SwiftABI = IIteratorPointer + 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__CXaml__CInput__CPointerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.Pointer? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerBridge + 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 : WinUI.Pointer? { + 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__CXaml__CMedia__CAnimation__CColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x2b8a6b92, Data2: 0xf1e3, Data3: 0x5bc4, Data4: ( 0x96,0xd2,0xe4,0x89,0x2d,0x5c,0xd9,0x3a ))// 2b8a6b92-f1e3-5bc4-96d2-e4892d5cd93a +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper = InterfaceWrapperBase +internal class IIteratorColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame } + + internal func get_CurrentImpl() throws -> WinUI.ColorKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame + internal typealias SwiftABI = IIteratorColorKeyFrame + 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__CXaml__CMedia__CAnimation__CColorKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ColorKeyFrame? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge + 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 : WinUI.ColorKeyFrame? { + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x7b911c76, Data2: 0x50e4, Data3: 0x509f, Data4: ( 0x98,0xfa,0xd3,0x8b,0x19,0xf6,0xe1,0x59 ))// 7b911c76-50e4-509f-98fa-d38b19f6e159 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper = InterfaceWrapperBase +internal class IIteratorDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame } + + internal func get_CurrentImpl() throws -> WinUI.DoubleKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame + internal typealias SwiftABI = IIteratorDoubleKeyFrame + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.DoubleKeyFrame? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge + 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 : WinUI.DoubleKeyFrame? { + 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__CXaml__CMedia__CAnimation__CObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xbcb7f7fd, Data2: 0x21a4, Data3: 0x5b86, Data4: ( 0x85,0x05,0x91,0xa5,0xaa,0xc9,0x5f,0x31 ))// bcb7f7fd-21a4-5b86-8505-91a5aac95f31 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper = InterfaceWrapperBase +internal class IIteratorObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame } + + internal func get_CurrentImpl() throws -> WinUI.ObjectKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame + internal typealias SwiftABI = IIteratorObjectKeyFrame + 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__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ObjectKeyFrame? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge + 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 : WinUI.ObjectKeyFrame? { + 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__CXaml__CMedia__CAnimation__CPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x8db0cfbf, Data2: 0x9976, Data3: 0x53a8, Data4: ( 0xa9,0x9a,0xf4,0x23,0x40,0x80,0x85,0x5d ))// 8db0cfbf-9976-53a8-a99a-f4234080855d +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper = InterfaceWrapperBase +internal class IIteratorPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame } + + internal func get_CurrentImpl() throws -> WinUI.PointKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame + internal typealias SwiftABI = IIteratorPointKeyFrame + 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__CXaml__CMedia__CAnimation__CPointKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.PointKeyFrame? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge + 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 : WinUI.PointKeyFrame? { + 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__CXaml__CMedia__CAnimation__CTimeline: WindowsFoundation.IID { + .init(Data1: 0x85301b8e, Data2: 0x275f, Data3: 0x57f3, Data4: ( 0x93,0x44,0xcf,0x04,0x41,0xc7,0x37,0xaa ))// 85301b8e-275f-57f3-9344-cf0441c737aa +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper = InterfaceWrapperBase +internal class IIteratorTimeline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline } + + internal func get_CurrentImpl() throws -> WinUI.Timeline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimelineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline + internal typealias SwiftABI = IIteratorTimeline + 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__CXaml__CMedia__CAnimation__CTimelineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.Timeline? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge + 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 : WinUI.Timeline? { + 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__CXaml__CMedia__CAnimation__CTransition: WindowsFoundation.IID { + .init(Data1: 0x5cfd74c7, Data2: 0x6e4a, Data3: 0x5c7d, Data4: ( 0x93,0x70,0x2f,0x81,0xc6,0x22,0x74,0xf5 ))// 5cfd74c7-6e4a-5c7d-9370-2f81c62274f5 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper = InterfaceWrapperBase +internal class IIteratorTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition } + + internal func get_CurrentImpl() throws -> WinUI.Transition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition + internal typealias SwiftABI = IIteratorTransition + 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__CXaml__CMedia__CAnimation__CTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.Transition? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge + 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 : WinUI.Transition? { + 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__CXaml__CMedia__CGradientStop: WindowsFoundation.IID { + .init(Data1: 0x42d46f68, Data2: 0xdf94, Data3: 0x58f9, Data4: ( 0x8c,0xdf,0x3d,0x40,0x3e,0x7d,0xd1,0xd3 ))// 42d46f68-df94-58f9-8cdf-3d403e7dd1d3 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper = InterfaceWrapperBase +internal class IIteratorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop } + + internal func get_CurrentImpl() throws -> WinUI.GradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop + internal typealias SwiftABI = IIteratorGradientStop + 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__CXaml__CMedia__CGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.GradientStop? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge + 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 : WinUI.GradientStop? { + 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__CXaml__CMedia__CPathFigure: WindowsFoundation.IID { + .init(Data1: 0x0c15c679, Data2: 0x2952, Data3: 0x5fcd, Data4: ( 0xbf,0xb3,0xc9,0x06,0x4c,0x65,0x00,0x72 ))// 0c15c679-2952-5fcd-bfb3-c9064c650072 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper = InterfaceWrapperBase +internal class IIteratorPathFigure: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure } + + internal func get_CurrentImpl() throws -> WinUI.PathFigure? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigureBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure + internal typealias SwiftABI = IIteratorPathFigure + 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__CXaml__CMedia__CPathFigureImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.PathFigure? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge + 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 : WinUI.PathFigure? { + 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__CXaml__CMedia__CPathSegment: WindowsFoundation.IID { + .init(Data1: 0x434e1321, Data2: 0x9560, Data3: 0x5646, Data4: ( 0x8b,0xf7,0xe1,0xb0,0x67,0x96,0x72,0x3f ))// 434e1321-9560-5646-8bf7-e1b06796723f +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper = InterfaceWrapperBase +internal class IIteratorPathSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment } + + internal func get_CurrentImpl() throws -> WinUI.PathSegment? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegmentBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment + internal typealias SwiftABI = IIteratorPathSegment + 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__CXaml__CMedia__CPathSegmentImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.PathSegment? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge + 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 : WinUI.PathSegment? { + 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__CXaml__CMedia__CXamlLight: WindowsFoundation.IID { + .init(Data1: 0xe75863b3, Data2: 0x0b25, Data3: 0x5c28, Data4: ( 0x86,0xc8,0x9e,0xc4,0x9f,0x76,0xd4,0x68 ))// e75863b3-0b25-5c28-86c8-9ec49f76d468 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper = InterfaceWrapperBase +internal class IIteratorXamlLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight } + + internal func get_CurrentImpl() throws -> WinUI.XamlLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLightBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight + internal typealias SwiftABI = IIteratorXamlLight + 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__CXaml__CMedia__CXamlLightImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.XamlLight? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge + 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 : WinUI.XamlLight? { + 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__CXaml__CNavigation__CPageStackEntry: WindowsFoundation.IID { + .init(Data1: 0x162c5e92, Data2: 0x295f, Data3: 0x532c, Data4: ( 0xaf,0x30,0x0e,0x78,0x2e,0x53,0x5a,0x05 ))// 162c5e92-295f-532c-af30-0e782e535a05 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper = InterfaceWrapperBase +internal class IIteratorPageStackEntry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry } + + internal func get_CurrentImpl() throws -> WinUI.PageStackEntry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry + internal typealias SwiftABI = IIteratorPageStackEntry + 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__CXaml__CNavigation__CPageStackEntryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.PageStackEntry? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge + 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 : WinUI.PageStackEntry? { + 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__CXaml__CResourceDictionary: WindowsFoundation.IID { + .init(Data1: 0x9483d8a0, Data2: 0x2803, Data3: 0x50f1, Data4: ( 0x98,0xdb,0xfa,0x3a,0x7e,0x6a,0x56,0xb3 ))// 9483d8a0-2803-50f1-98db-fa3a7e6a56b3 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper = InterfaceWrapperBase +internal class IIteratorResourceDictionary: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary } + + internal func get_CurrentImpl() throws -> WinUI.ResourceDictionary? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.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__CXaml__CResourceDictionaryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary + internal typealias SwiftABI = IIteratorResourceDictionary + 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__CXaml__CResourceDictionaryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.ResourceDictionary? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge + 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 : WinUI.ResourceDictionary? { + 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__CXaml__CSetterBase: WindowsFoundation.IID { + .init(Data1: 0x555894a1, Data2: 0xcc82, Data3: 0x5af0, Data4: ( 0xb2,0x20,0x53,0xe7,0x3b,0x2d,0xba,0x33 ))// 555894a1-cc82-5af0-b220-53e73b2dba33 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper = InterfaceWrapperBase +internal class IIteratorSetterBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase } + + internal func get_CurrentImpl() throws -> WinUI.SetterBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBase.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__CXaml__CSetterBase.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__CXaml__CSetterBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase + internal typealias SwiftABI = IIteratorSetterBase + 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__CXaml__CSetterBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.SetterBase? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge + 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 : WinUI.SetterBase? { + 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__CXaml__CTriggerBase: WindowsFoundation.IID { + .init(Data1: 0x93d0f9fa, Data2: 0x22d2, Data3: 0x5e84, Data4: ( 0xac,0x72,0xaa,0xcf,0x06,0xf9,0x79,0x00 ))// 93d0f9fa-22d2-5e84-ac72-aacf06f97900 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper = InterfaceWrapperBase +internal class IIteratorTriggerBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase } + + internal func get_CurrentImpl() throws -> WinUI.TriggerBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBase.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__CXaml__CTriggerBase.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__CXaml__CTriggerBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase + internal typealias SwiftABI = IIteratorTriggerBase + 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__CXaml__CTriggerBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.TriggerBase? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge + 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 : WinUI.TriggerBase? { + 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__CXaml__CUIElement: WindowsFoundation.IID { + .init(Data1: 0xc5f188b0, Data2: 0xc653, Data3: 0x5209, Data4: ( 0x90,0x9a,0xeb,0x97,0xca,0x69,0x16,0x17 ))// c5f188b0-c653-5209-909a-eb97ca691617 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper = InterfaceWrapperBase +internal class IIteratorUIElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement } + + internal func get_CurrentImpl() throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElement.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__CXaml__CUIElement.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__CXaml__CUIElementBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + internal typealias SwiftABI = IIteratorUIElement + 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__CXaml__CUIElementImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementImpl : IIterator, AbiInterfaceImpl { + typealias T = WinUI.UIElement? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge + 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 : WinUI.UIElement? { + 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] = WinUI.__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__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0x377f6162, Data2: 0x6e4d, Data3: 0x574e, Data4: ( 0xbf,0x01,0x77,0xf4,0xfd,0x02,0x1d,0x0e ))// 377f6162-6e4d-574e-bf01-77f4fd021d0e +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IIteratorIIterablePoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func get_CurrentImpl() throws -> WindowsFoundation.AnyIIterable? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint.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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IIteratorIIterablePoint + 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__FIIterable_1___x_ABI_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointImpl : IIterator, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIIterable? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointBridge + 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.AnyIIterable? { + 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_IInspectable_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x31e55e8a, Data2: 0x0f05, Data3: 0x52fd, Data4: ( 0x90,0xd3,0xb0,0x4a,0xa3,0x31,0xaa,0xa4 ))// 31e55e8a-0f05-52fd-90d3-b04aa331aaa4 +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable: __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + let resultWrapper = WinUI.__x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper = InterfaceWrapperBase +internal class IIteratorIKeyValuePairAny_Any: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable } + + 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_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectable.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_IInspectable_IInspectable.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_IInspectable_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable + internal typealias SwiftABI = IIteratorIKeyValuePairAny_Any + 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_IInspectable_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableImpl : IIterator, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableBridge + 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_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0xc602b59e, Data2: 0x0a8e, Data3: 0x5e99, Data4: ( 0xb4,0x78,0x2b,0x56,0x45,0x85,0x27,0x8d ))// c602b59e-0a8e-5e99-b478-2b564585278d +} + +internal var __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.current + $1?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_HasCurrent: { + guard let __unwrapped__instance = __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IIteratorPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func get_CurrentImpl() throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Current(pThis, &result)) + } + return .from(abi: result) + } + + internal func get_HasCurrentImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPoint.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_CWindows__CFoundation__CPoint.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_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IIteratorPoint + 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_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointImpl : IIterator, AbiInterfaceImpl { + typealias T = WindowsFoundation.Point + typealias Bridge = __x_ABI_C__FIIterator_1___x_ABI_CWindows__CFoundation__CPointBridge + 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.Point { + 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_IInspectable_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x59e7ae0c, Data2: 0xc29d, Data3: 0x5ad6, Data4: ( 0xbe,0xf5,0xde,0xdb,0x52,0xa1,0x98,0xe1 ))// 59e7ae0c-c29d-5ad6-bef5-dedb52a198e1 +} + +internal var __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable: __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.key + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + get_Value: { + guard let __unwrapped__instance = __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.value + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } +) +typealias __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper = InterfaceWrapperBase +internal class IKeyValuePairAny_Any: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable } + + internal func get_KeyImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Key(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_ValueImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Value(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectable + internal typealias SwiftABI = IKeyValuePairAny_Any + 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_IInspectable_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableImpl : IKeyValuePair, AbiInterfaceImpl { + typealias K = Any? + typealias V = Any? + typealias Bridge = __x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableBridge + 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 : Any? { + get { try! _default.get_KeyImpl() } + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ikeyvaluepair-2.value) + fileprivate var value : Any? { + get { try! _default.get_ValueImpl() } + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIMapView_2_IInspectable_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xefe76d10, Data2: 0xcb60, Data3: 0x50ad, Data4: ( 0x8a,0x4f,0x68,0x85,0xcd,0x62,0x12,0xa1 ))// efe76d10-cb60-50ad-8a4f-6885cd6212a1 +} + +internal var __x_ABI_C__FIMapView_2_IInspectable_IInspectableVTable: __x_ABI_C__FIMapView_2_IInspectable_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = __unwrapped__instance.lookup(key) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + var first: WindowsFoundation.AnyIMapView? + var second: WindowsFoundation.AnyIMapView? + __unwrapped__instance.split(&first, &second) + let firstWrapper = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper(first) + firstWrapper?.copyTo($1) + let secondWrapper = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper(second) + secondWrapper?.copyTo($2) + return S_OK + } +) +typealias __x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper = InterfaceWrapperBase +internal class IMapViewAny_Any: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMapView_2_IInspectable_IInspectable } + + internal func LookupImpl(_ key: Any?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMapView_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMapView_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: Any?) throws -> Bool { + var result: boolean = 0 + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMapView_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key, &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_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Split(pThis, &_firstAbi, &_secondAbi)) + } + } + first = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: _first) + second = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: _second) + } + +} + +internal enum __x_ABI_C__FIMapView_2_IInspectable_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMapView_2_IInspectable_IInspectable + internal typealias SwiftABI = IMapViewAny_Any + 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_IInspectable_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMapView_2_IInspectable_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMapView_2_IInspectable_IInspectableImpl : IMapView, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = Any? + typealias V = Any? + typealias Bridge = __x_ABI_C__FIMapView_2_IInspectable_IInspectableBridge + 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: Any?) -> Any? { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imapview-2.haskey) + fileprivate func hasKey(_ key: Any?) -> 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: IIterableIKeyValuePairAny_Any! = 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_IInspectable_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xf5f69427, Data2: 0x55ed, Data3: 0x5512, Data4: ( 0x84,0x29,0xd4,0xf6,0x62,0x6d,0xfc,0xdd ))// f5f69427-55ed-5512-8429-d4f6626dfcdd +} + +internal var __x_ABI_C__FIMap_2_IInspectable_IInspectableVTable: __x_ABI_C__FIMap_2_IInspectable_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let result = __unwrapped__instance.lookup(key) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + Insert: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let value: Any? = __ABI_.AnyWrapper.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_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let key: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + __unwrapped__instance.remove(key) + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.clear() + return S_OK + } +) +typealias __x_ABI_C__FIMap_2_IInspectable_IInspectableWrapper = InterfaceWrapperBase +internal class IMapAny_Any: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIMap_2_IInspectable_IInspectable } + + internal func LookupImpl(_ key: Any?) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Lookup(pThis, _key, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func HasKeyImpl(_ key: Any?) throws -> Bool { + var result: boolean = 0 + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.HasKey(pThis, _key, &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_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIMapView_2_IInspectable_IInspectableWrapper.unwrapFrom(abi: result) + } + + internal func InsertImpl(_ key: Any?, _ value: Any?) throws -> Bool { + var result: boolean = 0 + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Insert(pThis, _key, _value, &result)) + } + return .init(from: result) + } + + internal func RemoveImpl(_ key: Any?) throws { + let keyWrapper = __ABI_.AnyWrapper(key) + let _key = try! keyWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Remove(pThis, _key)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIMap_2_IInspectable_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIMap_2_IInspectable_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIMap_2_IInspectable_IInspectable + internal typealias SwiftABI = IMapAny_Any + 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_IInspectable_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIMap_2_IInspectable_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIMap_2_IInspectable_IInspectableImpl : IMap, AbiInterfaceImpl { + typealias T = WindowsFoundation.AnyIKeyValuePair? + typealias K = Any? + typealias V = Any? + typealias Bridge = __x_ABI_C__FIMap_2_IInspectable_IInspectableBridge + 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: Any?) -> Any? { + try! _default.LookupImpl(key) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.imap-2.haskey) + fileprivate func hasKey(_ key: Any?) -> 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: Any?, _ value: Any?) -> 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: Any?) { + 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: IIterableIKeyValuePairAny_Any! = 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__FIObservableVector_1_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x7b81c56a, Data2: 0x0985, Data3: 0x518d, Data4: ( 0xba,0xa9,0x0d,0xa9,0xae,0x00,0x9f,0x65 ))// 7b81c56a-0985-518d-baa9-0da9ae009f65 +} + +internal var __x_ABI_C__FIObservableVector_1_IInspectableVTable: __x_ABI_C__FIObservableVector_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIObservableVector_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIObservableVector_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIObservableVector_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIObservableVector_1_IInspectableWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.IID + iids[4] = WinUI.__x_ABI_C__FIIterable_1_IInspectableWrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IObservableVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + add_VectorChanged: { + guard let __unwrapped__instance = __x_ABI_C__FIObservableVector_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let vhnd = WinUI.__x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let result = __unwrapped__instance.vectorChanged.addHandler(vhnd) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + remove_VectorChanged: { + guard let __unwrapped__instance = __x_ABI_C__FIObservableVector_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.vectorChanged.removeHandler(token) + return S_OK + } +) +typealias __x_ABI_C__FIObservableVector_1_IInspectableWrapper = InterfaceWrapperBase +internal class IObservableVectorAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIObservableVector_1_IInspectable } + + internal func add_VectorChangedImpl(_ vhnd: VectorChangedEventHandler?) throws -> EventRegistrationToken { + var result: EventRegistrationToken = .init() + let vhndWrapper = WinUI.__x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper(vhnd) + let _vhnd = try! vhndWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIObservableVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_VectorChanged(pThis, _vhnd, &result)) + } + return result + } + + internal func remove_VectorChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_C__FIObservableVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_VectorChanged(pThis, token)) + } + } + +} + +internal enum __x_ABI_C__FIObservableVector_1_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIObservableVector_1_IInspectable + internal typealias SwiftABI = IObservableVectorAny + internal typealias SwiftProjection = WindowsFoundation.AnyIObservableVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIObservableVector_1_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIObservableVector_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIObservableVector_1_IInspectableImpl : IObservableVector, AbiInterfaceImpl { + typealias T = Any? + typealias Bridge = __x_ABI_C__FIObservableVector_1_IInspectableBridge + 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.iobservablevector-1.vectorchanged) + fileprivate lazy var vectorChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_VectorChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_VectorChangedImpl($0) + } + ) + }() + + private lazy var _IVector: IVectorAny! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.getat) + fileprivate func getAt(_ index: UInt32) -> Any? { + try! _IVector.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _IVector.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.indexof) + fileprivate func indexOf(_ value: Any?, _ index: inout UInt32) -> Bool { + try! _IVector.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: Any?) { + try! _IVector.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: Any?) { + try! _IVector.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _IVector.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.append) + fileprivate func append(_ value: Any?) { + try! _IVector.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.removeatend) + fileprivate func removeAtEnd() { + try! _IVector.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.clear) + fileprivate func clear() { + try! _IVector.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.size) + fileprivate var size : UInt32 { + get { try! _IVector.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableAny! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.first) + fileprivate func first() -> WindowsFoundation.AnyIIterator? { + try! _IIterable.FirstImpl() + } + + public func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { nil } +} + +private var IID___x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x80dae4e3, Data2: 0x4fce, Data3: 0x5788, Data4: ( 0x92,0x3b,0xc1,0xb7,0x5b,0x82,0xa6,0x11 ))// 80dae4e3-4fce-5788-923b-c1b75b82a611 +} + +internal var __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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] = WinUI.__x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.IID + iids[4] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.IID + $1!.pointee = 5 + $2!.pointee = iids + return S_OK + }, + + GetRuntimeClassName: { + _ = $0 + let hstring = try! HString("Windows.Foundation.Collections.IObservableVector`1").detach() + $1!.pointee = hstring + return S_OK + }, + + GetTrustLevel: { + _ = $0 + $1!.pointee = TrustLevel(rawValue: 0) + return S_OK + }, + + add_VectorChanged: { + guard let __unwrapped__instance = __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let vhnd = WinUI.__x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.unwrapFrom(abi: ComPtr($1)) else { return E_INVALIDARG } + let result = __unwrapped__instance.vectorChanged.addHandler(vhnd) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + remove_VectorChanged: { + guard let __unwrapped__instance = __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let token: EventRegistrationToken = $1 + __unwrapped__instance.vectorChanged.removeHandler(token) + return S_OK + } +) +typealias __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class IObservableVectorGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + internal func add_VectorChangedImpl(_ vhnd: VectorChangedEventHandler?) throws -> EventRegistrationToken { + var result: EventRegistrationToken = .init() + let vhndWrapper = WinUI.__x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper(vhnd) + let _vhnd = try! vhndWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.add_VectorChanged(pThis, _vhnd, &result)) + } + return result + } + + internal func remove_VectorChangedImpl(_ token: EventRegistrationToken) throws { + _ = try perform(as: __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.remove_VectorChanged(pThis, token)) + } + } + +} + +internal enum __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = IObservableVectorGroupStyle + internal typealias SwiftProjection = WindowsFoundation.AnyIObservableVector + internal static func from(abi: ComPtr?) -> SwiftProjection? { + guard let abi = abi else { return nil } + return __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl : IObservableVector, AbiInterfaceImpl { + typealias T = WinUI.GroupStyle? + typealias Bridge = __x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge + 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.iobservablevector-1.vectorchanged) + fileprivate lazy var vectorChanged : Event> = { + .init( + add: { [weak self] in + guard let this = self?._default else { return .init() } + return try! this.add_VectorChangedImpl($0) + }, + remove: { [weak self] in + try? self?._default.remove_VectorChangedImpl($0) + } + ) + }() + + private lazy var _IVector: IVectorGroupStyle! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.getat) + fileprivate func getAt(_ index: UInt32) -> WinUI.GroupStyle? { + try! _IVector.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.getview) + fileprivate func getView() -> WindowsFoundation.AnyIVectorView? { + try! _IVector.GetViewImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.indexof) + fileprivate func indexOf(_ value: WinUI.GroupStyle?, _ index: inout UInt32) -> Bool { + try! _IVector.IndexOfImpl(value, &index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.setat) + fileprivate func setAt(_ index: UInt32, _ value: WinUI.GroupStyle?) { + try! _IVector.SetAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.insertat) + fileprivate func insertAt(_ index: UInt32, _ value: WinUI.GroupStyle?) { + try! _IVector.InsertAtImpl(index, value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.removeat) + fileprivate func removeAt(_ index: UInt32) { + try! _IVector.RemoveAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.append) + fileprivate func append(_ value: WinUI.GroupStyle?) { + try! _IVector.AppendImpl(value) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.removeatend) + fileprivate func removeAtEnd() { + try! _IVector.RemoveAtEndImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.clear) + fileprivate func clear() { + try! _IVector.ClearImpl() + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-1.size) + fileprivate var size : UInt32 { + get { try! _IVector.get_SizeImpl() } + } + + private lazy var _IIterable: IIterableGroupStyle! = getInterfaceForCaching() + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.iobservablevector-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_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xa6487363, Data2: 0xb074, Data3: 0x5c60, Data4: ( 0xab,0x16,0x86,0x6d,0xce,0x4e,0xe5,0x4d ))// a6487363-b074-5c60-ab16-866dce4ee54d +} + +internal var __x_ABI_C__FIVectorView_1_IInspectableVTable: __x_ABI_C__FIVectorView_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1_IInspectableWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(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_IInspectableWrapper = InterfaceWrapperBase +internal class IVectorViewAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_IInspectable } + + internal func GetAtImpl(_ index: UInt32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: Any?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIVectorView_1_IInspectable.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_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1_IInspectable + internal typealias SwiftABI = IVectorViewAny + 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_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1_IInspectableImpl : IVectorView, AbiInterfaceImpl { + typealias T = Any? + typealias Bridge = __x_ABI_C__FIVectorView_1_IInspectableBridge + 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) -> Any? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: Any?, _ 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: IIterableAny! = 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_double: WindowsFoundation.IID { + .init(Data1: 0xaf7586a8, Data2: 0x6b21, Data3: 0x5f61, Data4: ( 0xbf,0xf1,0x1b,0x68,0x22,0x93,0xad,0x96 ))// af7586a8-6b21-5f61-bff1-1b682293ad96 +} + +internal var __x_ABI_C__FIVectorView_1_doubleVTable: __x_ABI_C__FIVectorView_1_doubleVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1_doubleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1_doubleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1_doubleWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1_doubleWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_doubleWrapper.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_doubleWrapper.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_doubleWrapper.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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Double = $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_doubleWrapper = InterfaceWrapperBase +internal class IVectorViewDouble: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_double } + + internal func GetAtImpl(_ index: UInt32) throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_double.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_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: Double, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_double.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_doubleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1_double + internal typealias SwiftABI = IVectorViewDouble + 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_doubleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_doubleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1_doubleImpl : IVectorView, AbiInterfaceImpl { + typealias T = Double + typealias Bridge = __x_ABI_C__FIVectorView_1_doubleBridge + 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) -> Double { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: Double, _ 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: IIterableDouble! = 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_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] = WinUI.__x_ABI_C__FIVectorView_1_floatWrapper.IID + iids[3] = WinUI.__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_int: WindowsFoundation.IID { + .init(Data1: 0x8d720cdf, Data2: 0x3934, Data3: 0x5d3f, Data4: ( 0x9a,0x55,0x40,0xe8,0x06,0x3b,0x08,0x6a ))// 8d720cdf-3934-5d3f-9a55-40e8063b086a +} + +internal var __x_ABI_C__FIVectorView_1_intVTable: __x_ABI_C__FIVectorView_1_intVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1_intWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1_intWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1_intWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1_intWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_intWrapper.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_intWrapper.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_intWrapper.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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Int32 = $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_intWrapper = InterfaceWrapperBase +internal class IVectorViewInt32: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_int } + + internal func GetAtImpl(_ index: UInt32) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_int.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_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: Int32, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_int.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_intBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1_int + internal typealias SwiftABI = IVectorViewInt32 + 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_intImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_intVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1_intImpl : IVectorView, AbiInterfaceImpl { + typealias T = Int32 + typealias Bridge = __x_ABI_C__FIVectorView_1_intBridge + 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) -> Int32 { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: Int32, _ 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: IIterableInt32! = 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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + iids[3] = WinUI.__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__CXaml__CAutomation__CAutomationAnnotation: WindowsFoundation.IID { + .init(Data1: 0x15c04825, Data2: 0xb975, Data3: 0x5bc5, Data4: ( 0xad,0xf9,0xe3,0xb6,0x06,0x2a,0x7a,0xfa ))// 15c04825-b975-5bc5-adf9-e3b6062a7afa +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationAnnotation? = .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__CXaml__CAutomation__CAutomationAnnotationWrapper = InterfaceWrapperBase +internal class IVectorViewAutomationAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.AutomationAnnotation?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation + internal typealias SwiftABI = IVectorViewAutomationAnnotation + 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__CXaml__CAutomation__CAutomationAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.AutomationAnnotation? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge + 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) -> WinUI.AutomationAnnotation? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.AutomationAnnotation?, _ 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: IIterableAutomationAnnotation! = 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__CXaml__CAutomation__CPeers__CAutomationPeer: WindowsFoundation.IID { + .init(Data1: 0x26501cc8, Data2: 0x81ab, Data3: 0x54e0, Data4: ( 0x80,0x49,0x2b,0xbd,0x47,0xc9,0xff,0x36 ))// 26501cc8-81ab-54e0-8049-2bbd47c9ff36 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeer? = .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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper = InterfaceWrapperBase +internal class IVectorViewAutomationPeer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.AutomationPeer?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer + internal typealias SwiftABI = IVectorViewAutomationPeer + 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__CXaml__CAutomation__CPeers__CAutomationPeerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeer? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge + 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) -> WinUI.AutomationPeer? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.AutomationPeer?, _ 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: IIterableAutomationPeer! = 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation: WindowsFoundation.IID { + .init(Data1: 0x7a5622c2, Data2: 0x354b, Data3: 0x5d4e, Data4: ( 0xb8,0x6d,0x34,0x82,0xeb,0x35,0x51,0x3e ))// 7a5622c2-354b-5d4e-b86d-3482eb35513e +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeerAnnotation? = .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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper = InterfaceWrapperBase +internal class IVectorViewAutomationPeerAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationPeerAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.AutomationPeerAnnotation?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation + internal typealias SwiftABI = IVectorViewAutomationPeerAnnotation + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeerAnnotation? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge + 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) -> WinUI.AutomationPeerAnnotation? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.AutomationPeerAnnotation?, _ 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: IIterableAutomationPeerAnnotation! = 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__CXaml__CControls__CColumnDefinition: WindowsFoundation.IID { + .init(Data1: 0xcdfba81a, Data2: 0x54fa, Data3: 0x557d, Data4: ( 0xa7,0x12,0x21,0x64,0x0f,0x16,0xc5,0x34 ))// cdfba81a-54fa-557d-a712-21640f16c534 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColumnDefinition? = .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__CXaml__CControls__CColumnDefinitionWrapper = InterfaceWrapperBase +internal class IVectorViewColumnDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ColumnDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ColumnDefinition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition + internal typealias SwiftABI = IVectorViewColumnDefinition + 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__CXaml__CControls__CColumnDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ColumnDefinition? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge + 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) -> WinUI.ColumnDefinition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ColumnDefinition?, _ 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: IIterableColumnDefinition! = 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__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x52279bfd, Data2: 0x81a6, Data3: 0x5497, Data4: ( 0x93,0x30,0x16,0x12,0x88,0x6e,0x72,0x31 ))// 52279bfd-81a6-5497-9330-1612886e7231 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GroupStyle? = .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__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class IVectorViewGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.GroupStyle? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.GroupStyle?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = IVectorViewGroupStyle + 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__CXaml__CControls__CGroupStyleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.GroupStyle? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge + 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) -> WinUI.GroupStyle? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.GroupStyle?, _ 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: IIterableGroupStyle! = 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__CXaml__CControls__CItemCollectionTransition: WindowsFoundation.IID { + .init(Data1: 0x801b0b89, Data2: 0x28ef, Data3: 0x5e3c, Data4: ( 0xb6,0x18,0xa9,0x2b,0x28,0x5b,0x30,0x99 ))// 801b0b89-28ef-5e3c-b618-a92b285b3099 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ItemCollectionTransition? = .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__CXaml__CControls__CItemCollectionTransitionWrapper = InterfaceWrapperBase +internal class IVectorViewItemCollectionTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ItemCollectionTransition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ItemCollectionTransition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition + internal typealias SwiftABI = IVectorViewItemCollectionTransition + 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__CXaml__CControls__CItemCollectionTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ItemCollectionTransition? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge + 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) -> WinUI.ItemCollectionTransition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ItemCollectionTransition?, _ 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: IIterableItemCollectionTransition! = 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__CXaml__CControls__CMenuBarItem: WindowsFoundation.IID { + .init(Data1: 0xd99a99f0, Data2: 0xd72d, Data3: 0x5172, Data4: ( 0x87,0x81,0x3d,0xe6,0xee,0x29,0x27,0x49 ))// d99a99f0-d72d-5172-8781-3de6ee292749 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuBarItem? = .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__CXaml__CControls__CMenuBarItemWrapper = InterfaceWrapperBase +internal class IVectorViewMenuBarItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.MenuBarItem? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.MenuBarItem?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItemBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem + internal typealias SwiftABI = IVectorViewMenuBarItem + 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__CXaml__CControls__CMenuBarItemImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.MenuBarItem? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge + 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) -> WinUI.MenuBarItem? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.MenuBarItem?, _ 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: IIterableMenuBarItem! = 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__CXaml__CControls__CMenuFlyoutItemBase: WindowsFoundation.IID { + .init(Data1: 0xf817bdda, Data2: 0x4853, Data3: 0x503a, Data4: ( 0x86,0xc3,0x06,0x2d,0xb9,0x9d,0x04,0x19 ))// f817bdda-4853-503a-86c3-062db99d0419 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuFlyoutItemBase? = .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__CXaml__CControls__CMenuFlyoutItemBaseWrapper = InterfaceWrapperBase +internal class IVectorViewMenuFlyoutItemBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.MenuFlyoutItemBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.MenuFlyoutItemBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase + internal typealias SwiftABI = IVectorViewMenuFlyoutItemBase + 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__CXaml__CControls__CMenuFlyoutItemBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.MenuFlyoutItemBase? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge + 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) -> WinUI.MenuFlyoutItemBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.MenuFlyoutItemBase?, _ 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: IIterableMenuFlyoutItemBase! = 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__CXaml__CControls__CPrimitives__CPopup: WindowsFoundation.IID { + .init(Data1: 0xef55f12e, Data2: 0x1ca7, Data3: 0x51f3, Data4: ( 0x99,0x55,0x46,0xde,0x46,0x22,0xf0,0xaa ))// ef55f12e-1ca7-51f3-9955-46de4622f0aa +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.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__CXaml__CControls__CPrimitives__CPopupWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Popup? = .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__CXaml__CControls__CPrimitives__CPopupWrapper = InterfaceWrapperBase +internal class IVectorViewPopup: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Popup? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup.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__CXaml__CControls__CPrimitives__CPopup.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.Popup?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup.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__CXaml__CControls__CPrimitives__CPopupBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopup + internal typealias SwiftABI = IVectorViewPopup + 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__CXaml__CControls__CPrimitives__CPopupImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.Popup? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CPopupBridge + 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) -> WinUI.Popup? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.Popup?, _ 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: IIterablePopup! = 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__CXaml__CControls__CPrimitives__CScrollSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0xffd69432, Data2: 0x94da, Data3: 0x50ae, Data4: ( 0xac,0x63,0x1d,0xad,0xc0,0xe9,0x90,0x0f ))// ffd69432-94da-50ae-ac63-1dadc0e9900f +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ScrollSnapPointBase? = .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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper = InterfaceWrapperBase +internal class IVectorViewScrollSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ScrollSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ScrollSnapPointBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase + internal typealias SwiftABI = IVectorViewScrollSnapPointBase + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ScrollSnapPointBase? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge + 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) -> WinUI.ScrollSnapPointBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ScrollSnapPointBase?, _ 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: IIterableScrollSnapPointBase! = 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__CXaml__CControls__CPrimitives__CZoomSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x09386c00, Data2: 0x10c1, Data3: 0x5ae0, Data4: ( 0x8e,0x62,0x3d,0xfb,0x51,0x98,0xc4,0x89 ))// 09386c00-10c1-5ae0-8e62-3dfb5198c489 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ZoomSnapPointBase? = .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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper = InterfaceWrapperBase +internal class IVectorViewZoomSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ZoomSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ZoomSnapPointBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase + internal typealias SwiftABI = IVectorViewZoomSnapPointBase + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ZoomSnapPointBase? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge + 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) -> WinUI.ZoomSnapPointBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ZoomSnapPointBase?, _ 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: IIterableZoomSnapPointBase! = 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__CXaml__CControls__CRowDefinition: WindowsFoundation.IID { + .init(Data1: 0xeaa65d85, Data2: 0x3fa0, Data3: 0x5bc2, Data4: ( 0xb1,0xbe,0x7b,0xc7,0x22,0x25,0x3e,0xae ))// eaa65d85-3fa0-5bc2-b1be-7bc722253eae +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.RowDefinition? = .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__CXaml__CControls__CRowDefinitionWrapper = InterfaceWrapperBase +internal class IVectorViewRowDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.RowDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.RowDefinition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition + internal typealias SwiftABI = IVectorViewRowDefinition + 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__CXaml__CControls__CRowDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.RowDefinition? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge + 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) -> WinUI.RowDefinition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.RowDefinition?, _ 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: IIterableRowDefinition! = 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__CXaml__CControls__CTreeViewNode: WindowsFoundation.IID { + .init(Data1: 0xf3c71a15, Data2: 0x7999, Data3: 0x5201, Data4: ( 0x83,0xe7,0xe0,0x19,0xd7,0x62,0x77,0xcb ))// f3c71a15-7999-5201-83e7-e019d76277cb +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TreeViewNode? = .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__CXaml__CControls__CTreeViewNodeWrapper = InterfaceWrapperBase +internal class IVectorViewTreeViewNode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TreeViewNode? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.TreeViewNode?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNodeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode + internal typealias SwiftABI = IVectorViewTreeViewNode + 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__CXaml__CControls__CTreeViewNodeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.TreeViewNode? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge + 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) -> WinUI.TreeViewNode? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.TreeViewNode?, _ 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: IIterableTreeViewNode! = 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__CXaml__CData__CItemIndexRange: WindowsFoundation.IID { + .init(Data1: 0x465af292, Data2: 0xd97c, Data3: 0x5407, Data4: ( 0x9c,0xbe,0x6d,0x35,0xd6,0x7a,0x03,0x0f ))// 465af292-d97c-5407-9cbe-6d35d67a030f +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.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__CXaml__CData__CItemIndexRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ItemIndexRange? = .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__CXaml__CData__CItemIndexRangeWrapper = InterfaceWrapperBase +internal class IVectorViewItemIndexRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ItemIndexRange? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange.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__CXaml__CData__CItemIndexRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ItemIndexRange?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange.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__CXaml__CData__CItemIndexRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRange + internal typealias SwiftABI = IVectorViewItemIndexRange + 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__CXaml__CData__CItemIndexRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ItemIndexRange? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CItemIndexRangeBridge + 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) -> WinUI.ItemIndexRange? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ItemIndexRange?, _ 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: IIterableItemIndexRange! = 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__CXaml__CDependencyObject: WindowsFoundation.IID { + .init(Data1: 0x9eddd815, Data2: 0x4420, Data3: 0x5639, Data4: ( 0x9b,0x26,0xea,0xb8,0x01,0x3f,0xa2,0x94 ))// 9eddd815-4420-5639-9b26-eab8013fa294 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DependencyObject? = .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__CXaml__CDependencyObjectWrapper = InterfaceWrapperBase +internal class IVectorViewDependencyObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.DependencyObject?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObjectBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject + internal typealias SwiftABI = IVectorViewDependencyObject + 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__CXaml__CDependencyObjectImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.DependencyObject? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge + 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) -> WinUI.DependencyObject? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.DependencyObject?, _ 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: IIterableDependencyObject! = 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__CXaml__CDocuments__CInline: WindowsFoundation.IID { + .init(Data1: 0xb0525fd0, Data2: 0xf83c, Data3: 0x54a4, Data4: ( 0xbc,0x08,0xf2,0x57,0x4b,0x42,0xc5,0x36 ))// b0525fd0-f83c-54a4-bc08-f2574b42c536 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Inline? = .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__CXaml__CDocuments__CInlineWrapper = InterfaceWrapperBase +internal class IVectorViewInline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Inline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.Inline?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInlineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline + internal typealias SwiftABI = IVectorViewInline + 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__CXaml__CDocuments__CInlineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.Inline? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge + 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) -> WinUI.Inline? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.Inline?, _ 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: IIterableInline! = 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__CXaml__CDocuments__CTextHighlighter: WindowsFoundation.IID { + .init(Data1: 0x20f348a9, Data2: 0x4ef5, Data3: 0x5f8f, Data4: ( 0xa3,0xce,0xbd,0xc1,0xd8,0x3a,0x2f,0xda ))// 20f348a9-4ef5-5f8f-a3ce-bdc1d83a2fda +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextHighlighter? = .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__CXaml__CDocuments__CTextHighlighterWrapper = InterfaceWrapperBase +internal class IVectorViewTextHighlighter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TextHighlighter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.TextHighlighter?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter + internal typealias SwiftABI = IVectorViewTextHighlighter + 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__CXaml__CDocuments__CTextHighlighterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.TextHighlighter? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge + 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) -> WinUI.TextHighlighter? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.TextHighlighter?, _ 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: IIterableTextHighlighter! = 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__CXaml__CDocuments__CTextRange: WindowsFoundation.IID { + .init(Data1: 0x9d4ea607, Data2: 0x632b, Data3: 0x50f1, Data4: ( 0x95,0x39,0xdd,0xe9,0x8c,0x1e,0xed,0x29 ))// 9d4ea607-632b-50f1-9539-dde98c1eed29 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextRange = .from(abi: $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__CXaml__CDocuments__CTextRangeWrapper = InterfaceWrapperBase +internal class IVectorViewTextRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TextRange { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange = .init() + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + 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__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.TextRange, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, .from(swift: value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange + internal typealias SwiftABI = IVectorViewTextRange + 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__CXaml__CDocuments__CTextRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.TextRange + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge + 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) -> WinUI.TextRange { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.TextRange, _ 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: IIterableTextRange! = 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__CXaml__CInput__CInputScopeName: WindowsFoundation.IID { + .init(Data1: 0x183ab292, Data2: 0xd2b3, Data3: 0x568d, Data4: ( 0x84,0x31,0x4e,0x3f,0xf1,0x8b,0x03,0x7e ))// 183ab292-d2b3-568d-8431-4e3ff18b037e +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.InputScopeName? = .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__CXaml__CInput__CInputScopeNameWrapper = InterfaceWrapperBase +internal class IVectorViewInputScopeName: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.InputScopeName? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.InputScopeName?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeNameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName + internal typealias SwiftABI = IVectorViewInputScopeName + 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__CXaml__CInput__CInputScopeNameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.InputScopeName? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge + 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) -> WinUI.InputScopeName? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.InputScopeName?, _ 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: IIterableInputScopeName! = 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__CXaml__CInput__CKeyboardAccelerator: WindowsFoundation.IID { + .init(Data1: 0x4d4dfa1a, Data2: 0x7153, Data3: 0x51f3, Data4: ( 0x80,0x36,0x6b,0x61,0xde,0x68,0xbc,0xa8 ))// 4d4dfa1a-7153-51f3-8036-6b61de68bca8 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.KeyboardAccelerator? = .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__CXaml__CInput__CKeyboardAcceleratorWrapper = InterfaceWrapperBase +internal class IVectorViewKeyboardAccelerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.KeyboardAccelerator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.KeyboardAccelerator?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAcceleratorBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator + internal typealias SwiftABI = IVectorViewKeyboardAccelerator + 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__CXaml__CInput__CKeyboardAcceleratorImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.KeyboardAccelerator? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge + 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) -> WinUI.KeyboardAccelerator? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.KeyboardAccelerator?, _ 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: IIterableKeyboardAccelerator! = 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__CXaml__CInput__CPointer: WindowsFoundation.IID { + .init(Data1: 0x81082898, Data2: 0xc342, Data3: 0x5b9f, Data4: ( 0x9f,0xcc,0x09,0x27,0x88,0x1f,0x30,0xad ))// 81082898-c342-5b9f-9fcc-0927881f30ad +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.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__CXaml__CInput__CPointerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Pointer? = .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__CXaml__CInput__CPointerWrapper = InterfaceWrapperBase +internal class IVectorViewPointer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Pointer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer.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__CXaml__CInput__CPointer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.Pointer?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer.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__CXaml__CInput__CPointerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointer + internal typealias SwiftABI = IVectorViewPointer + 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__CXaml__CInput__CPointerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.Pointer? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CPointerBridge + 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) -> WinUI.Pointer? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.Pointer?, _ 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: IIterablePointer! = 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__CXaml__CMedia__CAnimation__CColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x7559d8a9, Data2: 0xc9b3, Data3: 0x5450, Data4: ( 0x9a,0x9b,0xd5,0xff,0xba,0x0c,0xe2,0x7f ))// 7559d8a9-c9b3-5450-9a9b-d5ffba0ce27f +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColorKeyFrame? = .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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorViewColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ColorKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ColorKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame + internal typealias SwiftABI = IVectorViewColorKeyFrame + 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__CXaml__CMedia__CAnimation__CColorKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ColorKeyFrame? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge + 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) -> WinUI.ColorKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ColorKeyFrame?, _ 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: IIterableColorKeyFrame! = 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xf8a1ab9d, Data2: 0xcecd, Data3: 0x5857, Data4: ( 0x8e,0xae,0x6e,0x40,0xda,0xac,0xd8,0xbf ))// f8a1ab9d-cecd-5857-8eae-6e40daacd8bf +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DoubleKeyFrame? = .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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorViewDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.DoubleKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.DoubleKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame + internal typealias SwiftABI = IVectorViewDoubleKeyFrame + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.DoubleKeyFrame? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge + 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) -> WinUI.DoubleKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.DoubleKeyFrame?, _ 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: IIterableDoubleKeyFrame! = 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__CXaml__CMedia__CAnimation__CObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xe5873499, Data2: 0xef10, Data3: 0x52fc, Data4: ( 0x93,0xb3,0xc8,0xf7,0xb2,0xa8,0x12,0x20 ))// e5873499-ef10-52fc-93b3-c8f7b2a81220 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ObjectKeyFrame? = .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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorViewObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ObjectKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ObjectKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame + internal typealias SwiftABI = IVectorViewObjectKeyFrame + 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__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ObjectKeyFrame? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge + 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) -> WinUI.ObjectKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ObjectKeyFrame?, _ 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: IIterableObjectKeyFrame! = 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__CXaml__CMedia__CAnimation__CPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xd299bfa3, Data2: 0x7087, Data3: 0x518b, Data4: ( 0x80,0x8e,0xeb,0xa1,0x4b,0x28,0x54,0xf1 ))// d299bfa3-7087-518b-808e-eba14b2854f1 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PointKeyFrame? = .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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorViewPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PointKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.PointKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame + internal typealias SwiftABI = IVectorViewPointKeyFrame + 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__CXaml__CMedia__CAnimation__CPointKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.PointKeyFrame? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge + 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) -> WinUI.PointKeyFrame? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.PointKeyFrame?, _ 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: IIterablePointKeyFrame! = 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__CXaml__CMedia__CAnimation__CTimeline: WindowsFoundation.IID { + .init(Data1: 0xe30abc22, Data2: 0x0631, Data3: 0x5c17, Data4: ( 0xa2,0xcb,0xd1,0xf7,0xcd,0x05,0x25,0x15 ))// e30abc22-0631-5c17-a2cb-d1f7cd052515 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Timeline? = .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__CXaml__CMedia__CAnimation__CTimelineWrapper = InterfaceWrapperBase +internal class IVectorViewTimeline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Timeline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.Timeline?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimelineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline + internal typealias SwiftABI = IVectorViewTimeline + 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__CXaml__CMedia__CAnimation__CTimelineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.Timeline? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge + 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) -> WinUI.Timeline? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.Timeline?, _ 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: IIterableTimeline! = 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__CXaml__CMedia__CAnimation__CTransition: WindowsFoundation.IID { + .init(Data1: 0x6fe2632e, Data2: 0x3c2a, Data3: 0x5087, Data4: ( 0xbd,0xbc,0x8b,0xc5,0x1d,0xa7,0x52,0x0b ))// 6fe2632e-3c2a-5087-bdbc-8bc51da7520b +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Transition? = .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__CXaml__CMedia__CAnimation__CTransitionWrapper = InterfaceWrapperBase +internal class IVectorViewTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Transition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.Transition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition + internal typealias SwiftABI = IVectorViewTransition + 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__CXaml__CMedia__CAnimation__CTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.Transition? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge + 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) -> WinUI.Transition? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.Transition?, _ 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: IIterableTransition! = 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__CXaml__CMedia__CGradientStop: WindowsFoundation.IID { + .init(Data1: 0x48c5bc90, Data2: 0x5bf9, Data3: 0x50ee, Data4: ( 0xae,0x5d,0x07,0x90,0xf7,0xb8,0x1f,0x49 ))// 48c5bc90-5bf9-50ee-ae5d-0790f7b81f49 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GradientStop? = .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__CXaml__CMedia__CGradientStopWrapper = InterfaceWrapperBase +internal class IVectorViewGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.GradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.GradientStop?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop + internal typealias SwiftABI = IVectorViewGradientStop + 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__CXaml__CMedia__CGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.GradientStop? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge + 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) -> WinUI.GradientStop? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.GradientStop?, _ 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: IIterableGradientStop! = 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__CXaml__CMedia__CPathFigure: WindowsFoundation.IID { + .init(Data1: 0xee4d5b1b, Data2: 0xf452, Data3: 0x5397, Data4: ( 0x91,0x44,0x86,0x74,0x64,0x54,0xea,0xa4 ))// ee4d5b1b-f452-5397-9144-86746454eaa4 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathFigure? = .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__CXaml__CMedia__CPathFigureWrapper = InterfaceWrapperBase +internal class IVectorViewPathFigure: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PathFigure? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.PathFigure?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigureBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure + internal typealias SwiftABI = IVectorViewPathFigure + 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__CXaml__CMedia__CPathFigureImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.PathFigure? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge + 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) -> WinUI.PathFigure? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.PathFigure?, _ 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: IIterablePathFigure! = 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__CXaml__CMedia__CPathSegment: WindowsFoundation.IID { + .init(Data1: 0xfff30db4, Data2: 0x7bae, Data3: 0x5c90, Data4: ( 0x92,0xbf,0xdb,0x58,0x81,0xf7,0x6c,0x30 ))// fff30db4-7bae-5c90-92bf-db5881f76c30 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathSegment? = .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__CXaml__CMedia__CPathSegmentWrapper = InterfaceWrapperBase +internal class IVectorViewPathSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PathSegment? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.PathSegment?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegmentBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment + internal typealias SwiftABI = IVectorViewPathSegment + 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__CXaml__CMedia__CPathSegmentImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.PathSegment? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge + 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) -> WinUI.PathSegment? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.PathSegment?, _ 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: IIterablePathSegment! = 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__CXaml__CMedia__CXamlLight: WindowsFoundation.IID { + .init(Data1: 0xcf393ba1, Data2: 0x2605, Data3: 0x543e, Data4: ( 0x8b,0x4e,0xe8,0x00,0xeb,0x17,0x94,0x92 ))// cf393ba1-2605-543e-8b4e-e800eb179492 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.XamlLight? = .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__CXaml__CMedia__CXamlLightWrapper = InterfaceWrapperBase +internal class IVectorViewXamlLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.XamlLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.XamlLight?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLightBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight + internal typealias SwiftABI = IVectorViewXamlLight + 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__CXaml__CMedia__CXamlLightImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.XamlLight? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge + 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) -> WinUI.XamlLight? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.XamlLight?, _ 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: IIterableXamlLight! = 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__CXaml__CNavigation__CPageStackEntry: WindowsFoundation.IID { + .init(Data1: 0x1a07e864, Data2: 0x47dd, Data3: 0x50bc, Data4: ( 0x89,0x48,0x7d,0x2a,0xfb,0x8c,0x33,0x2f ))// 1a07e864-47dd-50bc-8948-7d2afb8c332f +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PageStackEntry? = .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__CXaml__CNavigation__CPageStackEntryWrapper = InterfaceWrapperBase +internal class IVectorViewPageStackEntry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PageStackEntry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.PageStackEntry?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry + internal typealias SwiftABI = IVectorViewPageStackEntry + 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__CXaml__CNavigation__CPageStackEntryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.PageStackEntry? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge + 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) -> WinUI.PageStackEntry? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.PageStackEntry?, _ 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: IIterablePageStackEntry! = 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__CXaml__CResourceDictionary: WindowsFoundation.IID { + .init(Data1: 0x1afc35b6, Data2: 0xd46b, Data3: 0x5d29, Data4: ( 0xa9,0xf6,0xe2,0x1e,0x68,0xb0,0x58,0x46 ))// 1afc35b6-d46b-5d29-a9f6-e21e68b05846 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ResourceDictionary? = .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__CXaml__CResourceDictionaryWrapper = InterfaceWrapperBase +internal class IVectorViewResourceDictionary: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ResourceDictionary? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.ResourceDictionary?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionaryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary + internal typealias SwiftABI = IVectorViewResourceDictionary + 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__CXaml__CResourceDictionaryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.ResourceDictionary? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge + 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) -> WinUI.ResourceDictionary? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.ResourceDictionary?, _ 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: IIterableResourceDictionary! = 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__CXaml__CSetterBase: WindowsFoundation.IID { + .init(Data1: 0x01f305aa, Data2: 0x8ef8, Data3: 0x5237, Data4: ( 0x87,0x67,0x5a,0xda,0xa3,0xb4,0xa5,0x24 ))// 01f305aa-8ef8-5237-8767-5adaa3b4a524 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.SetterBase? = .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__CXaml__CSetterBaseWrapper = InterfaceWrapperBase +internal class IVectorViewSetterBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.SetterBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.SetterBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase + internal typealias SwiftABI = IVectorViewSetterBase + 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__CXaml__CSetterBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.SetterBase? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge + 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) -> WinUI.SetterBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.SetterBase?, _ 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: IIterableSetterBase! = 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__CXaml__CTriggerBase: WindowsFoundation.IID { + .init(Data1: 0x4b947794, Data2: 0x8e5c, Data3: 0x5fed, Data4: ( 0x87,0xbe,0x4d,0x2b,0x37,0x29,0xbd,0xd7 ))// 4b947794-8e5c-5fed-87be-4d2b3729bdd7 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TriggerBase? = .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__CXaml__CTriggerBaseWrapper = InterfaceWrapperBase +internal class IVectorViewTriggerBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TriggerBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.TriggerBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase + internal typealias SwiftABI = IVectorViewTriggerBase + 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__CXaml__CTriggerBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.TriggerBase? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge + 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) -> WinUI.TriggerBase? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.TriggerBase?, _ 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: IIterableTriggerBase! = 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__CXaml__CUIElement: WindowsFoundation.IID { + .init(Data1: 0x4fdea5ee, Data2: 0xc725, Data3: 0x5026, Data4: ( 0xba,0x83,0x24,0xe5,0x77,0x13,0x57,0xc6 ))// 4fdea5ee-c725-5026-ba83-24e5771357c6 +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.UIElement? = .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__CXaml__CUIElementWrapper = InterfaceWrapperBase +internal class IVectorViewUIElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WinUI.UIElement?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElementBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + internal typealias SwiftABI = IVectorViewUIElement + 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__CXaml__CUIElementImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementImpl : IVectorView, AbiInterfaceImpl { + typealias T = WinUI.UIElement? + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge + 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) -> WinUI.UIElement? { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WinUI.UIElement?, _ 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: IIterableUIElement! = 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_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x2f13c006, Data2: 0xa03a, Data3: 0x5f69, Data4: ( 0xb0,0x90,0x75,0xa4,0x3e,0x33,0x42,0x3e ))// 2f13c006-a03a-5f69-b090-75a43e33423e +} + +internal var __x_ABI_C__FIVectorView_1_HSTRINGVTable: __x_ABI_C__FIVectorView_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1_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] = WinUI.__x_ABI_C__FIVectorView_1_HSTRINGWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_HSTRINGWrapper.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_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: try! HString(result).detach()) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1_HSTRINGWrapper.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_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: String = .init(from: $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_HSTRINGWrapper = InterfaceWrapperBase +internal class IVectorViewString: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1_HSTRING } + + internal func GetAtImpl(_ index: UInt32) throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + return .init(from: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: String, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + let _value = try! HString(value) + _ = try perform(as: __x_ABI_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, _value.get(), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1_HSTRING + internal typealias SwiftABI = IVectorViewString + 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_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1_HSTRINGImpl : IVectorView, AbiInterfaceImpl { + typealias T = String + typealias Bridge = __x_ABI_C__FIVectorView_1_HSTRINGBridge + 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) -> String { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: String, _ 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: IIterableString! = 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_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0x0b7b4c9d, Data2: 0x182f, Data3: 0x582a, Data4: ( 0xbd,0xdb,0x42,0xb1,0xaa,0xc3,0x0c,0xad ))// 0b7b4c9d-182f-582a-bddb-42b1aac30cad +} + +internal var __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WindowsFoundation.Point = .from(abi: $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_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IVectorViewPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func GetAtImpl(_ index: UInt32) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &result)) + } + return result + } + + internal func IndexOfImpl(_ value: WindowsFoundation.Point, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, .from(swift: value), &index, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IVectorViewPoint + 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_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointImpl : IVectorView, AbiInterfaceImpl { + typealias T = WindowsFoundation.Point + typealias Bridge = __x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointBridge + 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) -> WindowsFoundation.Point { + try! _default.GetAtImpl(index) + } + + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.foundation.collections.ivectorview-1.indexof) + fileprivate func indexOf(_ value: WindowsFoundation.Point, _ 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: IIterablePoint! = 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_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xb32bdca4, Data2: 0x5e52, Data3: 0x5b27, Data4: ( 0xbc,0x5d,0xd6,0x6a,0x1a,0x26,0x8c,0x2a ))// b32bdca4-5e52-5b27-bc5d-d66a1a268c2a +} + +internal var __x_ABI_C__FIVector_1_IInspectableVTable: __x_ABI_C__FIVector_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIVector_1_IInspectableWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($2) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_IInspectableWrapper.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_IInspectableWrapper = InterfaceWrapperBase +internal class IVectorAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1_IInspectable } + + internal func GetAtImpl(_ index: UInt32) throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.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_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_IInspectableWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: Any?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, _value, &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, _value)) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.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_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: Any?) throws { + let valueWrapper = __ABI_.AnyWrapper(value) + let _value = try! valueWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, _value)) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1_IInspectable + internal typealias SwiftABI = IVectorAny + 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_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1_IInspectableImpl : IVector, AbiInterfaceImpl { + typealias T = Any? + typealias Bridge = __x_ABI_C__FIVector_1_IInspectableBridge + 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) -> Any? { + 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: Any?, _ 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: Any?) { + 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: Any?) { + 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: Any?) { + 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: IIterableAny! = 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_double: WindowsFoundation.IID { + .init(Data1: 0xf452d23c, Data2: 0xbf05, Data3: 0x5f3e, Data4: ( 0x88,0xe7,0xd1,0x7a,0x67,0x16,0xb9,0x11 ))// f452d23c-bf05-5f3e-88e7-d17a6716b911 +} + +internal var __x_ABI_C__FIVector_1_doubleVTable: __x_ABI_C__FIVector_1_doubleVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1_doubleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1_doubleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1_doubleWrapper.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] = WinUI.__x_ABI_C__FIVector_1_doubleWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_doubleWrapper.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_doubleWrapper.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_doubleWrapper.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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1_doubleWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Double = $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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Double = $2 + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Double = $2 + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_doubleWrapper.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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Double = $1 + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_doubleWrapper.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_doubleWrapper = InterfaceWrapperBase +internal class IVectorDouble: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1_double } + + internal func GetAtImpl(_ index: UInt32) throws -> Double { + var result: DOUBLE = 0.0 + _ = try perform(as: __x_ABI_C__FIVector_1_double.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_double.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_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_doubleWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: Double, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: Double) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, value)) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: Double) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_double.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_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: Double) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, value)) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_double.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1_doubleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1_double + internal typealias SwiftABI = IVectorDouble + 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_doubleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1_doubleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1_doubleImpl : IVector, AbiInterfaceImpl { + typealias T = Double + typealias Bridge = __x_ABI_C__FIVector_1_doubleBridge + 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) -> Double { + 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: Double, _ 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: Double) { + 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: Double) { + 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: Double) { + 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: IIterableDouble! = 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_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] = WinUI.__x_ABI_C__FIVector_1_floatWrapper.IID + iids[3] = WinUI.__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 = WinUI.__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 WinUI.__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_int: WindowsFoundation.IID { + .init(Data1: 0xb939af5b, Data2: 0xb45d, Data3: 0x5489, Data4: ( 0x91,0x49,0x61,0x44,0x2c,0x19,0x05,0xfe ))// b939af5b-b45d-5489-9149-61442c1905fe +} + +internal var __x_ABI_C__FIVector_1_intVTable: __x_ABI_C__FIVector_1_intVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1_intWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1_intWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1_intWrapper.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] = WinUI.__x_ABI_C__FIVector_1_intWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1_intWrapper.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_intWrapper.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_intWrapper.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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1_intWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Int32 = $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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Int32 = $2 + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: Int32 = $2 + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_intWrapper.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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: Int32 = $1 + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + __unwrapped__instance.removeAtEnd() + return S_OK + }, + + Clear: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1_intWrapper.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_intWrapper = InterfaceWrapperBase +internal class IVectorInt32: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1_int } + + internal func GetAtImpl(_ index: UInt32) throws -> Int32 { + var result: INT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_int.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_int.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_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_intWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: Int32, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, value, &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: Int32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, value)) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: Int32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_int.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_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: Int32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, value)) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAtEnd(pThis)) + } + } + + internal func ClearImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1_int.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1_intBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1_int + internal typealias SwiftABI = IVectorInt32 + 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_intImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1_intVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1_intImpl : IVector, AbiInterfaceImpl { + typealias T = Int32 + typealias Bridge = __x_ABI_C__FIVector_1_intBridge + 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) -> Int32 { + 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: Int32, _ 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: Int32) { + 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: Int32) { + 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: Int32) { + 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: IIterableInt32! = 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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CInput__CPointerPointWrapper.IID + iids[3] = WinUI.__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 = WinUI.__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 WinUI.__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__CUI__CXaml__CAutomation__CAutomationAnnotation: WindowsFoundation.IID { + .init(Data1: 0xe047e428, Data2: 0x66a6, Data3: 0x5759, Data4: ( 0xa7,0x51,0x84,0xf2,0xbf,0x6f,0xdb,0x30 ))// e047e428-66a6-5759-a751-84f2bf6fdb30 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationAnnotation? = .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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationAnnotation? = .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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationAnnotation? = .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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationAnnotation? = .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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper.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__CXaml__CAutomation__CAutomationAnnotationWrapper = InterfaceWrapperBase +internal class IVectorAutomationAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.AutomationAnnotation?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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: WinUI.AutomationAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.AutomationAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.AutomationAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.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__CXaml__CAutomation__CAutomationAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotation + internal typealias SwiftABI = IVectorAutomationAnnotation + 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__CXaml__CAutomation__CAutomationAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.AutomationAnnotation? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CAutomationAnnotationBridge + 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) -> WinUI.AutomationAnnotation? { + 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: WinUI.AutomationAnnotation?, _ 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: WinUI.AutomationAnnotation?) { + 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: WinUI.AutomationAnnotation?) { + 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: WinUI.AutomationAnnotation?) { + 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: IIterableAutomationAnnotation! = 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__CXaml__CAutomation__CPeers__CAutomationPeer: WindowsFoundation.IID { + .init(Data1: 0x91d7782f, Data2: 0xc53a, Data3: 0x5620, Data4: ( 0x8c,0xe1,0x0d,0x94,0x19,0x24,0x93,0x22 ))// 91d7782f-c53a-5620-8ce1-0d9419249322 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeer? = .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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationPeer? = .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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationPeer? = .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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeer? = .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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerWrapper = InterfaceWrapperBase +internal class IVectorAutomationPeer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationPeer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.AutomationPeer?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.AutomationPeer?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.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__CXaml__CAutomation__CPeers__CAutomationPeer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeer + internal typealias SwiftABI = IVectorAutomationPeer + 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__CXaml__CAutomation__CPeers__CAutomationPeerImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeer? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerBridge + 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) -> WinUI.AutomationPeer? { + 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: WinUI.AutomationPeer?, _ 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: WinUI.AutomationPeer?) { + 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: WinUI.AutomationPeer?) { + 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: WinUI.AutomationPeer?) { + 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: IIterableAutomationPeer! = 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation: WindowsFoundation.IID { + .init(Data1: 0xfe9ed1b7, Data2: 0x7185, Data3: 0x52e9, Data4: ( 0xb0,0x37,0xbf,0x99,0x02,0xac,0x35,0x61 ))// fe9ed1b7-7185-52e9-b037-bf9902ac3561 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeerAnnotation? = .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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationPeerAnnotation? = .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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.AutomationPeerAnnotation? = .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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.AutomationPeerAnnotation? = .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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper = InterfaceWrapperBase +internal class IVectorAutomationPeerAnnotation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.AutomationPeerAnnotation? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.AutomationPeerAnnotation?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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: WinUI.AutomationPeerAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.AutomationPeerAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.AutomationPeerAnnotation?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotation + internal typealias SwiftABI = IVectorAutomationPeerAnnotation + 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__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.AutomationPeerAnnotation? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CAutomation__CPeers__CAutomationPeerAnnotationBridge + 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) -> WinUI.AutomationPeerAnnotation? { + 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: WinUI.AutomationPeerAnnotation?, _ 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: WinUI.AutomationPeerAnnotation?) { + 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: WinUI.AutomationPeerAnnotation?) { + 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: WinUI.AutomationPeerAnnotation?) { + 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: IIterableAutomationPeerAnnotation! = 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__CXaml__CControls__CColumnDefinition: WindowsFoundation.IID { + .init(Data1: 0x749bc47c, Data2: 0x1743, Data3: 0x5c21, Data4: ( 0x9c,0xed,0xc8,0xa1,0x13,0x4c,0x7b,0xa7 ))// 749bc47c-1743-5c21-9ced-c8a1134c7ba7 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColumnDefinition? = .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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ColumnDefinition? = .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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ColumnDefinition? = .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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColumnDefinition? = .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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper.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__CXaml__CControls__CColumnDefinitionWrapper = InterfaceWrapperBase +internal class IVectorColumnDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ColumnDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ColumnDefinition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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: WinUI.ColumnDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ColumnDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ColumnDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.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__CXaml__CControls__CColumnDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinition + internal typealias SwiftABI = IVectorColumnDefinition + 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__CXaml__CControls__CColumnDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ColumnDefinition? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CColumnDefinitionBridge + 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) -> WinUI.ColumnDefinition? { + 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: WinUI.ColumnDefinition?, _ 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: WinUI.ColumnDefinition?) { + 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: WinUI.ColumnDefinition?) { + 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: WinUI.ColumnDefinition?) { + 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: IIterableColumnDefinition! = 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__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x8fba608e, Data2: 0xf076, Data3: 0x5f2a, Data4: ( 0x89,0x72,0x4f,0x97,0xd9,0x2c,0xa8,0x45 ))// 8fba608e-f076-5f2a-8972-4f97d92ca845 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GroupStyle? = .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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.GroupStyle? = .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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.GroupStyle? = .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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GroupStyle? = .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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper.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__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class IVectorGroupStyle: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.GroupStyle? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.GroupStyle?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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: WinUI.GroupStyle?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.GroupStyle?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.GroupStyle?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.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__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = IVectorGroupStyle + 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__CXaml__CControls__CGroupStyleImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.GroupStyle? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge + 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) -> WinUI.GroupStyle? { + 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: WinUI.GroupStyle?, _ 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: WinUI.GroupStyle?) { + 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: WinUI.GroupStyle?) { + 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: WinUI.GroupStyle?) { + 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: IIterableGroupStyle! = 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__CXaml__CControls__CItemCollectionTransition: WindowsFoundation.IID { + .init(Data1: 0x93000c75, Data2: 0x6549, Data3: 0x5d11, Data4: ( 0xb1,0xbb,0xc4,0x7c,0x77,0x72,0x76,0xb5 ))// 93000c75-6549-5d11-b1bb-c47c777276b5 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ItemCollectionTransition? = .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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ItemCollectionTransition? = .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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ItemCollectionTransition? = .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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ItemCollectionTransition? = .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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper.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__CXaml__CControls__CItemCollectionTransitionWrapper = InterfaceWrapperBase +internal class IVectorItemCollectionTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ItemCollectionTransition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ItemCollectionTransition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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: WinUI.ItemCollectionTransition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ItemCollectionTransition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ItemCollectionTransition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.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__CXaml__CControls__CItemCollectionTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransition + internal typealias SwiftABI = IVectorItemCollectionTransition + 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__CXaml__CControls__CItemCollectionTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ItemCollectionTransition? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionBridge + 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) -> WinUI.ItemCollectionTransition? { + 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: WinUI.ItemCollectionTransition?, _ 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: WinUI.ItemCollectionTransition?) { + 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: WinUI.ItemCollectionTransition?) { + 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: WinUI.ItemCollectionTransition?) { + 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: IIterableItemCollectionTransition! = 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__CXaml__CControls__CMenuBarItem: WindowsFoundation.IID { + .init(Data1: 0x94c4dfcf, Data2: 0x1af2, Data3: 0x5621, Data4: ( 0x8b,0x99,0x4e,0x56,0x43,0xd1,0xb5,0x2f ))// 94c4dfcf-1af2-5621-8b99-4e5643d1b52f +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuBarItem? = .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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.MenuBarItem? = .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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.MenuBarItem? = .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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuBarItem? = .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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper.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__CXaml__CControls__CMenuBarItemWrapper = InterfaceWrapperBase +internal class IVectorMenuBarItem: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.MenuBarItem? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.MenuBarItem?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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: WinUI.MenuBarItem?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.MenuBarItem?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.MenuBarItem?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.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__CXaml__CControls__CMenuBarItem.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItem + internal typealias SwiftABI = IVectorMenuBarItem + 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__CXaml__CControls__CMenuBarItemImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.MenuBarItem? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuBarItemBridge + 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) -> WinUI.MenuBarItem? { + 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: WinUI.MenuBarItem?, _ 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: WinUI.MenuBarItem?) { + 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: WinUI.MenuBarItem?) { + 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: WinUI.MenuBarItem?) { + 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: IIterableMenuBarItem! = 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__CXaml__CControls__CMenuFlyoutItemBase: WindowsFoundation.IID { + .init(Data1: 0xebe273f7, Data2: 0x4731, Data3: 0x5ac8, Data4: ( 0x85,0x13,0xde,0x76,0x48,0x68,0xfb,0x9b ))// ebe273f7-4731-5ac8-8513-de764868fb9b +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuFlyoutItemBase? = .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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.MenuFlyoutItemBase? = .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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.MenuFlyoutItemBase? = .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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.MenuFlyoutItemBase? = .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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper.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__CXaml__CControls__CMenuFlyoutItemBaseWrapper = InterfaceWrapperBase +internal class IVectorMenuFlyoutItemBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.MenuFlyoutItemBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.MenuFlyoutItemBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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: WinUI.MenuFlyoutItemBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.MenuFlyoutItemBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.MenuFlyoutItemBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.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__CXaml__CControls__CMenuFlyoutItemBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBase + internal typealias SwiftABI = IVectorMenuFlyoutItemBase + 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__CXaml__CControls__CMenuFlyoutItemBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.MenuFlyoutItemBase? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMenuFlyoutItemBaseBridge + 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) -> WinUI.MenuFlyoutItemBase? { + 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: WinUI.MenuFlyoutItemBase?, _ 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: WinUI.MenuFlyoutItemBase?) { + 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: WinUI.MenuFlyoutItemBase?) { + 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: WinUI.MenuFlyoutItemBase?) { + 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: IIterableMenuFlyoutItemBase! = 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__CXaml__CControls__CPrimitives__CScrollSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x44786fbd, Data2: 0xd376, Data3: 0x5b07, Data4: ( 0xb4,0xfd,0x54,0x11,0x32,0x68,0xd3,0xa6 ))// 44786fbd-d376-5b07-b4fd-54113268d3a6 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ScrollSnapPointBase? = .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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ScrollSnapPointBase? = .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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ScrollSnapPointBase? = .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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ScrollSnapPointBase? = .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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper = InterfaceWrapperBase +internal class IVectorScrollSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ScrollSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ScrollSnapPointBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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: WinUI.ScrollSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ScrollSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ScrollSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.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__CXaml__CControls__CPrimitives__CScrollSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBase + internal typealias SwiftABI = IVectorScrollSnapPointBase + 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__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ScrollSnapPointBase? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollSnapPointBaseBridge + 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) -> WinUI.ScrollSnapPointBase? { + 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: WinUI.ScrollSnapPointBase?, _ 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: WinUI.ScrollSnapPointBase?) { + 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: WinUI.ScrollSnapPointBase?) { + 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: WinUI.ScrollSnapPointBase?) { + 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: IIterableScrollSnapPointBase! = 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__CXaml__CControls__CPrimitives__CZoomSnapPointBase: WindowsFoundation.IID { + .init(Data1: 0x2705789a, Data2: 0xe69c, Data3: 0x5274, Data4: ( 0xb1,0x5b,0xca,0x24,0x5b,0xe2,0x67,0xe2 ))// 2705789a-e69c-5274-b15b-ca245be267e2 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ZoomSnapPointBase? = .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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ZoomSnapPointBase? = .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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ZoomSnapPointBase? = .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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ZoomSnapPointBase? = .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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper = InterfaceWrapperBase +internal class IVectorZoomSnapPointBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ZoomSnapPointBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ZoomSnapPointBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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: WinUI.ZoomSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ZoomSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ZoomSnapPointBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.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__CXaml__CControls__CPrimitives__CZoomSnapPointBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBase + internal typealias SwiftABI = IVectorZoomSnapPointBase + 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__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ZoomSnapPointBase? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CZoomSnapPointBaseBridge + 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) -> WinUI.ZoomSnapPointBase? { + 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: WinUI.ZoomSnapPointBase?, _ 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: WinUI.ZoomSnapPointBase?) { + 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: WinUI.ZoomSnapPointBase?) { + 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: WinUI.ZoomSnapPointBase?) { + 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: IIterableZoomSnapPointBase! = 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__CXaml__CControls__CRowDefinition: WindowsFoundation.IID { + .init(Data1: 0x5ddd9577, Data2: 0x3f94, Data3: 0x567f, Data4: ( 0xbe,0xef,0x54,0x05,0x68,0x52,0x22,0x89 ))// 5ddd9577-3f94-567f-beef-540568522289 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.RowDefinition? = .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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.RowDefinition? = .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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.RowDefinition? = .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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.RowDefinition? = .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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper.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__CXaml__CControls__CRowDefinitionWrapper = InterfaceWrapperBase +internal class IVectorRowDefinition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.RowDefinition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.RowDefinition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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: WinUI.RowDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.RowDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.RowDefinition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.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__CXaml__CControls__CRowDefinition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinition + internal typealias SwiftABI = IVectorRowDefinition + 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__CXaml__CControls__CRowDefinitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.RowDefinition? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CRowDefinitionBridge + 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) -> WinUI.RowDefinition? { + 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: WinUI.RowDefinition?, _ 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: WinUI.RowDefinition?) { + 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: WinUI.RowDefinition?) { + 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: WinUI.RowDefinition?) { + 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: IIterableRowDefinition! = 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__CXaml__CControls__CTreeViewNode: WindowsFoundation.IID { + .init(Data1: 0xfb11ab97, Data2: 0x9ea3, Data3: 0x5e29, Data4: ( 0x97,0x7b,0x3c,0xe4,0x7d,0xac,0x68,0xde ))// fb11ab97-9ea3-5e29-977b-3ce47dac68de +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TreeViewNode? = .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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TreeViewNode? = .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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TreeViewNode? = .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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TreeViewNode? = .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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper.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__CXaml__CControls__CTreeViewNodeWrapper = InterfaceWrapperBase +internal class IVectorTreeViewNode: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TreeViewNode? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.TreeViewNode?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.TreeViewNode?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.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__CXaml__CControls__CTreeViewNode.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNode + internal typealias SwiftABI = IVectorTreeViewNode + 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__CXaml__CControls__CTreeViewNodeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.TreeViewNode? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewNodeBridge + 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) -> WinUI.TreeViewNode? { + 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: WinUI.TreeViewNode?, _ 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: WinUI.TreeViewNode?) { + 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: WinUI.TreeViewNode?) { + 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: WinUI.TreeViewNode?) { + 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: IIterableTreeViewNode! = 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__CXaml__CDependencyObject: WindowsFoundation.IID { + .init(Data1: 0x8e6b597a, Data2: 0xab20, Data3: 0x585f, Data4: ( 0x9d,0xb1,0x93,0x94,0xaa,0xc5,0xa4,0x69 ))// 8e6b597a-ab20-585f-9db1-9394aac5a469 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DependencyObject? = .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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.DependencyObject? = .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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.DependencyObject? = .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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DependencyObject? = .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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper.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__CXaml__CDependencyObjectWrapper = InterfaceWrapperBase +internal class IVectorDependencyObject: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.DependencyObject? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObject.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__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.DependencyObject?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.DependencyObject?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject.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__CXaml__CDependencyObject.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__CXaml__CDependencyObject.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObject + internal typealias SwiftABI = IVectorDependencyObject + 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__CXaml__CDependencyObjectImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.DependencyObject? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDependencyObjectBridge + 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) -> WinUI.DependencyObject? { + 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: WinUI.DependencyObject?, _ 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: WinUI.DependencyObject?) { + 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: WinUI.DependencyObject?) { + 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: WinUI.DependencyObject?) { + 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: IIterableDependencyObject! = 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__CXaml__CDocuments__CInline: WindowsFoundation.IID { + .init(Data1: 0x0015a441, Data2: 0x4c98, Data3: 0x5d3f, Data4: ( 0x88,0x23,0x03,0xe7,0x22,0x61,0x5c,0x48 ))// 0015a441-4c98-5d3f-8823-03e722615c48 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Inline? = .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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Inline? = .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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Inline? = .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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Inline? = .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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper.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__CXaml__CDocuments__CInlineWrapper = InterfaceWrapperBase +internal class IVectorInline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Inline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.Inline?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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: WinUI.Inline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.Inline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.Inline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.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__CXaml__CDocuments__CInline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInline + internal typealias SwiftABI = IVectorInline + 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__CXaml__CDocuments__CInlineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.Inline? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CInlineBridge + 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) -> WinUI.Inline? { + 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: WinUI.Inline?, _ 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: WinUI.Inline?) { + 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: WinUI.Inline?) { + 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: WinUI.Inline?) { + 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: IIterableInline! = 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__CXaml__CDocuments__CTextHighlighter: WindowsFoundation.IID { + .init(Data1: 0x6d576f67, Data2: 0x1548, Data3: 0x51c9, Data4: ( 0x83,0xa8,0x2b,0x54,0x01,0xb0,0x28,0x1b ))// 6d576f67-1548-51c9-83a8-2b5401b0281b +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextHighlighter? = .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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TextHighlighter? = .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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TextHighlighter? = .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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextHighlighter? = .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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper.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__CXaml__CDocuments__CTextHighlighterWrapper = InterfaceWrapperBase +internal class IVectorTextHighlighter: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TextHighlighter? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.TextHighlighter?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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: WinUI.TextHighlighter?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.TextHighlighter?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.TextHighlighter?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.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__CXaml__CDocuments__CTextHighlighter.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighter + internal typealias SwiftABI = IVectorTextHighlighter + 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__CXaml__CDocuments__CTextHighlighterImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.TextHighlighter? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextHighlighterBridge + 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) -> WinUI.TextHighlighter? { + 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: WinUI.TextHighlighter?, _ 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: WinUI.TextHighlighter?) { + 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: WinUI.TextHighlighter?) { + 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: WinUI.TextHighlighter?) { + 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: IIterableTextHighlighter! = 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__CXaml__CDocuments__CTextRange: WindowsFoundation.IID { + .init(Data1: 0x5338571c, Data2: 0x77b4, Data3: 0x560e, Data4: ( 0x8d,0xfd,0xa5,0x9d,0xad,0x27,0x0e,0xbb ))// 5338571c-77b4-560e-8dfd-a59dad270ebb +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextRange = .from(abi: $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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TextRange = .from(abi: $2) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TextRange = .from(abi: $2) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TextRange = .from(abi: $1) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper.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__CXaml__CDocuments__CTextRangeWrapper = InterfaceWrapperBase +internal class IVectorTextRange: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TextRange { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CDocuments_CTextRange = .init() + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + 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__CXaml__CDocuments__CTextRange.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__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.TextRange, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, .from(swift: value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WinUI.TextRange) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, .from(swift: value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.TextRange) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, .from(swift: value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.TextRange) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, .from(swift: value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange.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__CXaml__CDocuments__CTextRange.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRange + internal typealias SwiftABI = IVectorTextRange + 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__CXaml__CDocuments__CTextRangeImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.TextRange + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextRangeBridge + 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) -> WinUI.TextRange { + 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: WinUI.TextRange, _ 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: WinUI.TextRange) { + 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: WinUI.TextRange) { + 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: WinUI.TextRange) { + 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: IIterableTextRange! = 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__CXaml__CInput__CInputScopeName: WindowsFoundation.IID { + .init(Data1: 0xfe4c93e9, Data2: 0xd6fa, Data3: 0x5b96, Data4: ( 0x9c,0x74,0xde,0x96,0x8c,0x79,0xc3,0x6e ))// fe4c93e9-d6fa-5b96-9c74-de968c79c36e +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.InputScopeName? = .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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.InputScopeName? = .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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.InputScopeName? = .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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.InputScopeName? = .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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper.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__CXaml__CInput__CInputScopeNameWrapper = InterfaceWrapperBase +internal class IVectorInputScopeName: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.InputScopeName? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.InputScopeName?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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: WinUI.InputScopeName?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.InputScopeName?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.InputScopeName?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.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__CXaml__CInput__CInputScopeName.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeName + internal typealias SwiftABI = IVectorInputScopeName + 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__CXaml__CInput__CInputScopeNameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.InputScopeName? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CInputScopeNameBridge + 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) -> WinUI.InputScopeName? { + 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: WinUI.InputScopeName?, _ 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: WinUI.InputScopeName?) { + 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: WinUI.InputScopeName?) { + 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: WinUI.InputScopeName?) { + 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: IIterableInputScopeName! = 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__CXaml__CInput__CKeyboardAccelerator: WindowsFoundation.IID { + .init(Data1: 0x0db091c3, Data2: 0x8538, Data3: 0x5d25, Data4: ( 0x93,0x7f,0xdb,0x6e,0x00,0x3e,0x1f,0x71 ))// 0db091c3-8538-5d25-937f-db6e003e1f71 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.KeyboardAccelerator? = .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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.KeyboardAccelerator? = .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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.KeyboardAccelerator? = .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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.KeyboardAccelerator? = .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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper.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__CXaml__CInput__CKeyboardAcceleratorWrapper = InterfaceWrapperBase +internal class IVectorKeyboardAccelerator: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.KeyboardAccelerator? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.KeyboardAccelerator?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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: WinUI.KeyboardAccelerator?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.KeyboardAccelerator?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.KeyboardAccelerator?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.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__CXaml__CInput__CKeyboardAccelerator.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator + internal typealias SwiftABI = IVectorKeyboardAccelerator + 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__CXaml__CInput__CKeyboardAcceleratorImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.KeyboardAccelerator? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorBridge + 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) -> WinUI.KeyboardAccelerator? { + 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: WinUI.KeyboardAccelerator?, _ 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: WinUI.KeyboardAccelerator?) { + 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: WinUI.KeyboardAccelerator?) { + 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: WinUI.KeyboardAccelerator?) { + 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: IIterableKeyboardAccelerator! = 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__CXaml__CMedia__CAnimation__CColorKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x8e452000, Data2: 0xd3af, Data3: 0x506f, Data4: ( 0x9b,0x09,0x31,0x61,0x75,0x3d,0xfc,0x94 ))// 8e452000-d3af-506f-9b09-3161753dfc94 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColorKeyFrame? = .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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ColorKeyFrame? = .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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ColorKeyFrame? = .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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ColorKeyFrame? = .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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorColorKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ColorKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ColorKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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: WinUI.ColorKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ColorKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ColorKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.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__CXaml__CMedia__CAnimation__CColorKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrame + internal typealias SwiftABI = IVectorColorKeyFrame + 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__CXaml__CMedia__CAnimation__CColorKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ColorKeyFrame? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CColorKeyFrameBridge + 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) -> WinUI.ColorKeyFrame? { + 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: WinUI.ColorKeyFrame?, _ 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: WinUI.ColorKeyFrame?) { + 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: WinUI.ColorKeyFrame?) { + 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: WinUI.ColorKeyFrame?) { + 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: IIterableColorKeyFrame! = 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__CXaml__CMedia__CAnimation__CDoubleKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x0ff0eaee, Data2: 0x9514, Data3: 0x5010, Data4: ( 0x9a,0xc4,0x8f,0x6a,0xa6,0xd2,0x94,0xbc ))// 0ff0eaee-9514-5010-9ac4-8f6aa6d294bc +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DoubleKeyFrame? = .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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.DoubleKeyFrame? = .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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.DoubleKeyFrame? = .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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.DoubleKeyFrame? = .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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorDoubleKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.DoubleKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.DoubleKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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: WinUI.DoubleKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.DoubleKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.DoubleKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.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__CXaml__CMedia__CAnimation__CDoubleKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrame + internal typealias SwiftABI = IVectorDoubleKeyFrame + 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__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.DoubleKeyFrame? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CDoubleKeyFrameBridge + 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) -> WinUI.DoubleKeyFrame? { + 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: WinUI.DoubleKeyFrame?, _ 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: WinUI.DoubleKeyFrame?) { + 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: WinUI.DoubleKeyFrame?) { + 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: WinUI.DoubleKeyFrame?) { + 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: IIterableDoubleKeyFrame! = 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__CXaml__CMedia__CAnimation__CObjectKeyFrame: WindowsFoundation.IID { + .init(Data1: 0x95f26067, Data2: 0x8cdf, Data3: 0x5639, Data4: ( 0xb4,0xab,0x04,0xca,0x57,0x54,0x57,0xce ))// 95f26067-8cdf-5639-b4ab-04ca575457ce +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ObjectKeyFrame? = .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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ObjectKeyFrame? = .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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ObjectKeyFrame? = .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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ObjectKeyFrame? = .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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorObjectKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ObjectKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ObjectKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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: WinUI.ObjectKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ObjectKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ObjectKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.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__CXaml__CMedia__CAnimation__CObjectKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrame + internal typealias SwiftABI = IVectorObjectKeyFrame + 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__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ObjectKeyFrame? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CObjectKeyFrameBridge + 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) -> WinUI.ObjectKeyFrame? { + 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: WinUI.ObjectKeyFrame?, _ 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: WinUI.ObjectKeyFrame?) { + 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: WinUI.ObjectKeyFrame?) { + 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: WinUI.ObjectKeyFrame?) { + 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: IIterableObjectKeyFrame! = 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__CXaml__CMedia__CAnimation__CPointKeyFrame: WindowsFoundation.IID { + .init(Data1: 0xa577fe62, Data2: 0xf0e0, Data3: 0x5514, Data4: ( 0x8f,0x88,0x5c,0xe7,0x4f,0xd3,0x85,0xf6 ))// a577fe62-f0e0-5514-8f88-5ce74fd385f6 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PointKeyFrame? = .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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PointKeyFrame? = .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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PointKeyFrame? = .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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PointKeyFrame? = .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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.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__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper = InterfaceWrapperBase +internal class IVectorPointKeyFrame: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PointKeyFrame? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.PointKeyFrame?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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: WinUI.PointKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.PointKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.PointKeyFrame?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.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__CXaml__CMedia__CAnimation__CPointKeyFrame.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrame + internal typealias SwiftABI = IVectorPointKeyFrame + 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__CXaml__CMedia__CAnimation__CPointKeyFrameImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.PointKeyFrame? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CPointKeyFrameBridge + 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) -> WinUI.PointKeyFrame? { + 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: WinUI.PointKeyFrame?, _ 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: WinUI.PointKeyFrame?) { + 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: WinUI.PointKeyFrame?) { + 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: WinUI.PointKeyFrame?) { + 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: IIterablePointKeyFrame! = 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__CXaml__CMedia__CAnimation__CTimeline: WindowsFoundation.IID { + .init(Data1: 0x4107a612, Data2: 0x6757, Data3: 0x5552, Data4: ( 0xa4,0x8b,0x2e,0x30,0x93,0x23,0x0c,0x49 ))// 4107a612-6757-5552-a48b-2e3093230c49 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Timeline? = .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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Timeline? = .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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Timeline? = .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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Timeline? = .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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper.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__CXaml__CMedia__CAnimation__CTimelineWrapper = InterfaceWrapperBase +internal class IVectorTimeline: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Timeline? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.Timeline?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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: WinUI.Timeline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.Timeline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.Timeline?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.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__CXaml__CMedia__CAnimation__CTimeline.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimeline + internal typealias SwiftABI = IVectorTimeline + 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__CXaml__CMedia__CAnimation__CTimelineImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.Timeline? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTimelineBridge + 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) -> WinUI.Timeline? { + 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: WinUI.Timeline?, _ 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: WinUI.Timeline?) { + 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: WinUI.Timeline?) { + 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: WinUI.Timeline?) { + 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: IIterableTimeline! = 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__CXaml__CMedia__CAnimation__CTransition: WindowsFoundation.IID { + .init(Data1: 0x030a9884, Data2: 0x05db, Data3: 0x57af, Data4: ( 0xae,0x3b,0x4c,0x77,0xff,0xab,0xfe,0x57 ))// 030a9884-05db-57af-ae3b-4c77ffabfe57 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Transition? = .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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Transition? = .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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.Transition? = .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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.Transition? = .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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper.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__CXaml__CMedia__CAnimation__CTransitionWrapper = InterfaceWrapperBase +internal class IVectorTransition: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.Transition? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.Transition?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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: WinUI.Transition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.Transition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.Transition?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.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__CXaml__CMedia__CAnimation__CTransition.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransition + internal typealias SwiftABI = IVectorTransition + 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__CXaml__CMedia__CAnimation__CTransitionImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.Transition? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CTransitionBridge + 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) -> WinUI.Transition? { + 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: WinUI.Transition?, _ 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: WinUI.Transition?) { + 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: WinUI.Transition?) { + 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: WinUI.Transition?) { + 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: IIterableTransition! = 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__CXaml__CMedia__CGradientStop: WindowsFoundation.IID { + .init(Data1: 0xa367363d, Data2: 0xdeaf, Data3: 0x5d2c, Data4: ( 0x90,0x9c,0x41,0xb0,0xf2,0x59,0xba,0x7c ))// a367363d-deaf-5d2c-909c-41b0f259ba7c +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GradientStop? = .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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.GradientStop? = .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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.GradientStop? = .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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.GradientStop? = .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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper.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__CXaml__CMedia__CGradientStopWrapper = InterfaceWrapperBase +internal class IVectorGradientStop: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.GradientStop? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.GradientStop?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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: WinUI.GradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.GradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.GradientStop?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.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__CXaml__CMedia__CGradientStop.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStop + internal typealias SwiftABI = IVectorGradientStop + 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__CXaml__CMedia__CGradientStopImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.GradientStop? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CGradientStopBridge + 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) -> WinUI.GradientStop? { + 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: WinUI.GradientStop?, _ 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: WinUI.GradientStop?) { + 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: WinUI.GradientStop?) { + 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: WinUI.GradientStop?) { + 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: IIterableGradientStop! = 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__CXaml__CMedia__CPathFigure: WindowsFoundation.IID { + .init(Data1: 0xff221c4a, Data2: 0x9a65, Data3: 0x544f, Data4: ( 0x86,0xcd,0x0c,0x07,0xbc,0xc4,0x8f,0x8a ))// ff221c4a-9a65-544f-86cd-0c07bcc48f8a +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathFigure? = .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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PathFigure? = .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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PathFigure? = .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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathFigure? = .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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper.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__CXaml__CMedia__CPathFigureWrapper = InterfaceWrapperBase +internal class IVectorPathFigure: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PathFigure? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.PathFigure?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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: WinUI.PathFigure?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.PathFigure?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.PathFigure?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.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__CXaml__CMedia__CPathFigure.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigure + internal typealias SwiftABI = IVectorPathFigure + 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__CXaml__CMedia__CPathFigureImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.PathFigure? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathFigureBridge + 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) -> WinUI.PathFigure? { + 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: WinUI.PathFigure?, _ 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: WinUI.PathFigure?) { + 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: WinUI.PathFigure?) { + 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: WinUI.PathFigure?) { + 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: IIterablePathFigure! = 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__CXaml__CMedia__CPathSegment: WindowsFoundation.IID { + .init(Data1: 0xdbbff207, Data2: 0x32f0, Data3: 0x56fa, Data4: ( 0xb2,0xd8,0xd4,0xc8,0xe8,0x34,0x3e,0xd0 ))// dbbff207-32f0-56fa-b2d8-d4c8e8343ed0 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathSegment? = .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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PathSegment? = .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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PathSegment? = .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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PathSegment? = .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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper.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__CXaml__CMedia__CPathSegmentWrapper = InterfaceWrapperBase +internal class IVectorPathSegment: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PathSegment? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.PathSegment?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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: WinUI.PathSegment?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.PathSegment?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.PathSegment?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.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__CXaml__CMedia__CPathSegment.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegment + internal typealias SwiftABI = IVectorPathSegment + 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__CXaml__CMedia__CPathSegmentImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.PathSegment? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CPathSegmentBridge + 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) -> WinUI.PathSegment? { + 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: WinUI.PathSegment?, _ 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: WinUI.PathSegment?) { + 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: WinUI.PathSegment?) { + 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: WinUI.PathSegment?) { + 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: IIterablePathSegment! = 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__CXaml__CMedia__CXamlLight: WindowsFoundation.IID { + .init(Data1: 0xfb6065bb, Data2: 0x83e0, Data3: 0x57c0, Data4: ( 0xae,0x7f,0x41,0x8f,0xd7,0x63,0xb0,0xce ))// fb6065bb-83e0-57c0-ae7f-418fd763b0ce +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.XamlLight? = .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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.XamlLight? = .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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.XamlLight? = .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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.XamlLight? = .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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper.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__CXaml__CMedia__CXamlLightWrapper = InterfaceWrapperBase +internal class IVectorXamlLight: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.XamlLight? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.XamlLight?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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: WinUI.XamlLight?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.XamlLight?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.XamlLight?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.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__CXaml__CMedia__CXamlLight.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLight + internal typealias SwiftABI = IVectorXamlLight + 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__CXaml__CMedia__CXamlLightImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.XamlLight? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CXamlLightBridge + 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) -> WinUI.XamlLight? { + 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: WinUI.XamlLight?, _ 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: WinUI.XamlLight?) { + 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: WinUI.XamlLight?) { + 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: WinUI.XamlLight?) { + 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: IIterableXamlLight! = 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__CXaml__CNavigation__CPageStackEntry: WindowsFoundation.IID { + .init(Data1: 0x866bb888, Data2: 0x10b1, Data3: 0x5413, Data4: ( 0xad,0xb4,0x3d,0x3b,0x19,0x7a,0xda,0x8b ))// 866bb888-10b1-5413-adb4-3d3b197ada8b +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PageStackEntry? = .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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PageStackEntry? = .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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.PageStackEntry? = .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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.PageStackEntry? = .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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper.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__CXaml__CNavigation__CPageStackEntryWrapper = InterfaceWrapperBase +internal class IVectorPageStackEntry: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.PageStackEntry? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.PageStackEntry?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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: WinUI.PageStackEntry?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.PageStackEntry?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.PageStackEntry?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.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__CXaml__CNavigation__CPageStackEntry.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntry + internal typealias SwiftABI = IVectorPageStackEntry + 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__CXaml__CNavigation__CPageStackEntryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.PageStackEntry? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CNavigation__CPageStackEntryBridge + 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) -> WinUI.PageStackEntry? { + 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: WinUI.PageStackEntry?, _ 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: WinUI.PageStackEntry?) { + 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: WinUI.PageStackEntry?) { + 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: WinUI.PageStackEntry?) { + 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: IIterablePageStackEntry! = 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__CXaml__CResourceDictionary: WindowsFoundation.IID { + .init(Data1: 0xc6fbfe1a, Data2: 0xf015, Data3: 0x5b23, Data4: ( 0x8e,0x7e,0x14,0x49,0x7e,0x97,0x07,0xa1 ))// c6fbfe1a-f015-5b23-8e7e-14497e9707a1 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ResourceDictionary? = .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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ResourceDictionary? = .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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.ResourceDictionary? = .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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.ResourceDictionary? = .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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper.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__CXaml__CResourceDictionaryWrapper = InterfaceWrapperBase +internal class IVectorResourceDictionary: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.ResourceDictionary? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.ResourceDictionary?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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: WinUI.ResourceDictionary?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.ResourceDictionary?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.ResourceDictionary?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.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__CXaml__CResourceDictionary.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionary + internal typealias SwiftABI = IVectorResourceDictionary + 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__CXaml__CResourceDictionaryImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.ResourceDictionary? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CResourceDictionaryBridge + 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) -> WinUI.ResourceDictionary? { + 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: WinUI.ResourceDictionary?, _ 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: WinUI.ResourceDictionary?) { + 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: WinUI.ResourceDictionary?) { + 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: WinUI.ResourceDictionary?) { + 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: IIterableResourceDictionary! = 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__CXaml__CSetterBase: WindowsFoundation.IID { + .init(Data1: 0x4357f913, Data2: 0xf457, Data3: 0x553b, Data4: ( 0x84,0x75,0x52,0xac,0xd4,0xab,0x35,0x99 ))// 4357f913-f457-553b-8475-52acd4ab3599 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.SetterBase? = .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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.SetterBase? = .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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.SetterBase? = .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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.SetterBase? = .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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper.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__CXaml__CSetterBaseWrapper = InterfaceWrapperBase +internal class IVectorSetterBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.SetterBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBase.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__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.SetterBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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: WinUI.SetterBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.SetterBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.SetterBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase.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__CXaml__CSetterBase.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__CXaml__CSetterBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBase + internal typealias SwiftABI = IVectorSetterBase + 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__CXaml__CSetterBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.SetterBase? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CSetterBaseBridge + 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) -> WinUI.SetterBase? { + 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: WinUI.SetterBase?, _ 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: WinUI.SetterBase?) { + 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: WinUI.SetterBase?) { + 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: WinUI.SetterBase?) { + 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: IIterableSetterBase! = 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__CXaml__CTriggerBase: WindowsFoundation.IID { + .init(Data1: 0xef52e000, Data2: 0x0b0f, Data3: 0x52b5, Data4: ( 0xbd,0xfe,0x4f,0x59,0x35,0xdc,0xf1,0xbc ))// ef52e000-0b0f-52b5-bdfe-4f5935dcf1bc +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TriggerBase? = .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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TriggerBase? = .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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.TriggerBase? = .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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.TriggerBase? = .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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper.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__CXaml__CTriggerBaseWrapper = InterfaceWrapperBase +internal class IVectorTriggerBase: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.TriggerBase? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBase.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__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.TriggerBase?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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: WinUI.TriggerBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.TriggerBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.TriggerBase?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase.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__CXaml__CTriggerBase.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__CXaml__CTriggerBase.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBase + internal typealias SwiftABI = IVectorTriggerBase + 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__CXaml__CTriggerBaseImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.TriggerBase? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CTriggerBaseBridge + 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) -> WinUI.TriggerBase? { + 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: WinUI.TriggerBase?, _ 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: WinUI.TriggerBase?) { + 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: WinUI.TriggerBase?) { + 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: WinUI.TriggerBase?) { + 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: IIterableTriggerBase! = 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__CXaml__CUIElement: WindowsFoundation.IID { + .init(Data1: 0xea4a1af0, Data2: 0x4286, Data3: 0x5f11, Data4: ( 0x81,0x42,0x6b,0x01,0x69,0xf4,0xe9,0xde ))// ea4a1af0-4286-5f11-8142-6b0169f4e9de +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.UIElement? = .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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.UIElement? = .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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WinUI.UIElement? = .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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WinUI.UIElement? = .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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper.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__CXaml__CUIElementWrapper = InterfaceWrapperBase +internal class IVectorUIElement: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement } + + internal func GetAtImpl(_ index: UInt32) throws -> WinUI.UIElement? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElement.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__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WinUI.UIElement?, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, RawPointer(value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WinUI.UIElement?) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement.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__CXaml__CUIElement.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__CXaml__CUIElement.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElement + internal typealias SwiftABI = IVectorUIElement + 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__CXaml__CUIElementImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementImpl : IVector, AbiInterfaceImpl { + typealias T = WinUI.UIElement? + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CMicrosoft__CUI__CXaml__CUIElementBridge + 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) -> WinUI.UIElement? { + 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: WinUI.UIElement?, _ 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: WinUI.UIElement?) { + 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: WinUI.UIElement?) { + 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: WinUI.UIElement?) { + 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: IIterableUIElement! = 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_CWindows__CFoundation__CPoint: WindowsFoundation.IID { + .init(Data1: 0xc0d513a9, Data2: 0xec4a, Data3: 0x5a5d, Data4: ( 0xb6,0xd5,0xb7,0x07,0xde,0xfd,0xb9,0xf7 ))// c0d513a9-ec4a-5a5d-b6d5-b707defdb9f7 +} + +internal var __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.IID + iids[3] = WinUI.__x_ABI_C__FIIterable_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let result = __unwrapped__instance.getAt(index) + $2?.initialize(to: .from(swift: result)) + return S_OK + }, + + get_Size: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.getView() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + IndexOf: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WindowsFoundation.Point = .from(abi: $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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WindowsFoundation.Point = .from(abi: $2) + __unwrapped__instance.setAt(index, value) + return S_OK + }, + + InsertAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let index: UInt32 = $1 + let value: WindowsFoundation.Point = .from(abi: $2) + __unwrapped__instance.insertAt(index, value) + return S_OK + }, + + RemoveAt: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let value: WindowsFoundation.Point = .from(abi: $1) + __unwrapped__instance.append(value) + return S_OK + }, + + RemoveAtEnd: { + guard let __unwrapped__instance = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper.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_CWindows__CFoundation__CPointWrapper = InterfaceWrapperBase +internal class IVectorPoint: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint } + + internal func GetAtImpl(_ index: UInt32) throws -> WindowsFoundation.Point { + var result: __x_ABI_CWindows_CFoundation_CPoint = .init() + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetAt(pThis, index, &result)) + } + return .from(abi: result) + } + + internal func get_SizeImpl() throws -> UInt32 { + var result: UINT32 = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.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_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetView(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1___x_ABI_CWindows__CFoundation__CPointWrapper.unwrapFrom(abi: result) + } + + internal func IndexOfImpl(_ value: WindowsFoundation.Point, _ index: inout UInt32) throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.IndexOf(pThis, .from(swift: value), &index, &result)) + } + return .init(from: result) + } + + internal func SetAtImpl(_ index: UInt32, _ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.SetAt(pThis, index, .from(swift: value))) + } + } + + internal func InsertAtImpl(_ index: UInt32, _ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.InsertAt(pThis, index, .from(swift: value))) + } + } + + internal func RemoveAtImpl(_ index: UInt32) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.RemoveAt(pThis, index)) + } + } + + internal func AppendImpl(_ value: WindowsFoundation.Point) throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Append(pThis, .from(swift: value))) + } + } + + internal func RemoveAtEndImpl() throws { + _ = try perform(as: __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint.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_CWindows__CFoundation__CPoint.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Clear(pThis)) + } + } + +} + +internal enum __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPoint + internal typealias SwiftABI = IVectorPoint + 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_CWindows__CFoundation__CPointImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointImpl : IVector, AbiInterfaceImpl { + typealias T = WindowsFoundation.Point + typealias Bridge = __x_ABI_C__FIVector_1___x_ABI_CWindows__CFoundation__CPointBridge + 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) -> WindowsFoundation.Point { + 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: WindowsFoundation.Point, _ 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: WindowsFoundation.Point) { + 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: WindowsFoundation.Point) { + 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: WindowsFoundation.Point) { + 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: IIterablePoint! = 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__FVectorChangedEventHandler_1_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xb423a801, Data2: 0xd35e, Data3: 0x56b9, Data4: ( 0x81,0x3b,0x00,0x88,0x95,0x36,0xcb,0x98 ))// b423a801-d35e-56b9-813b-00889536cb98 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FVectorChangedEventHandler_1_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FVectorChangedEventHandler_1_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FVectorChangedEventHandler_1_IInspectableVTable: __x_ABI_C__FVectorChangedEventHandler_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WindowsFoundation.AnyIObservableVector? = WinUI.__x_ABI_C__FIObservableVector_1_IInspectableWrapper.unwrapFrom(abi: ComPtr($1)) + let event: WindowsFoundation.AnyIVectorChangedEventArgs? = __ABI_Windows_Foundation_Collections.IVectorChangedEventArgsWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, event) + return S_OK + } +) +typealias __x_ABI_C__FVectorChangedEventHandler_1_IInspectableWrapper = InterfaceWrapperBase +internal class VectorChangedEventHandlerAny: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FVectorChangedEventHandler_1_IInspectable } + + internal func InvokeImpl(_ sender: WindowsFoundation.AnyIObservableVector?, _ event: WindowsFoundation.AnyIVectorChangedEventArgs?) throws { + let senderWrapper = WinUI.__x_ABI_C__FIObservableVector_1_IInspectableWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + let eventWrapper = __ABI_Windows_Foundation_Collections.IVectorChangedEventArgsWrapper(event) + let _event = try! eventWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FVectorChangedEventHandler_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, _event)) + } + } + +} + +internal class __x_ABI_C__FVectorChangedEventHandler_1_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.VectorChangedEventHandler + internal typealias CABI = __x_ABI_C__FVectorChangedEventHandler_1_IInspectable + internal typealias SwiftABI = WinUI.VectorChangedEventHandlerAny + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, event) in + try! _default.InvokeImpl(sender, event) + } + return handler + } +} +private var IID___x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle: WindowsFoundation.IID { + .init(Data1: 0x936af50f, Data2: 0xc851, Data3: 0x51cd, Data4: ( 0xb0,0x7c,0xa2,0xac,0x10,0xf0,0x84,0xa3 ))// 936af50f-c851-51cd-b07c-a2ac10f084a3 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVTable: __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleVtbl = .init( + QueryInterface: { __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.addRef($0) }, + Release: { __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WindowsFoundation.AnyIObservableVector? = WinUI.__x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper.unwrapFrom(abi: ComPtr($1)) + let event: WindowsFoundation.AnyIVectorChangedEventArgs? = __ABI_Windows_Foundation_Collections.IVectorChangedEventArgsWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, event) + return S_OK + } +) +typealias __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper = InterfaceWrapperBase +internal class VectorChangedEventHandlerGroupStyle: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle } + + internal func InvokeImpl(_ sender: WindowsFoundation.AnyIObservableVector?, _ event: WindowsFoundation.AnyIVectorChangedEventArgs?) throws { + let senderWrapper = WinUI.__x_ABI_C__FIObservableVector_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + let eventWrapper = __ABI_Windows_Foundation_Collections.IVectorChangedEventArgsWrapper(event) + let _event = try! eventWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, _event)) + } + } + +} + +internal class __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyleBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.VectorChangedEventHandler + internal typealias CABI = __x_ABI_C__FVectorChangedEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CGroupStyle + internal typealias SwiftABI = WinUI.VectorChangedEventHandlerGroupStyle + + internal static func from(abi: ComPtr?) -> Handler? { + guard let abi = abi else { return nil } + let _default = SwiftABI(abi) + let handler: Handler = { (sender, event) in + try! _default.InvokeImpl(sender, event) + } + return handler + } +} +private var IID___x_ABI_C__FIEventHandler_1_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xc50898f6, Data2: 0xc536, Data3: 0x5f47, Data4: ( 0x85,0x83,0x8b,0x2c,0x24,0x38,0xa1,0x3b ))// c50898f6-c536-5f47-8583-8b2c2438a13b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1_IInspectableVTable: __x_ABI_C__FIEventHandler_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1_IInspectableWrapper = InterfaceWrapperBase +internal class EventHandlerAny: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1_IInspectable } + + internal func InvokeImpl(_ sender: Any?, _ args: Any?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + let argsWrapper = __ABI_.AnyWrapper(args) + let _args = try! argsWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, _args)) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1_IInspectable + internal typealias SwiftABI = WinUI.EventHandlerAny + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xd792e426, Data2: 0x9f8e, Data3: 0x544a, Data4: ( 0x9a,0x21,0x98,0x36,0xaa,0xbe,0x89,0x6b ))// d792e426-9f8e-544a-9a21-9836aabe896b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollViewerViewChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerScrollViewerViewChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.ScrollViewerViewChangedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangedEventArgs + internal typealias SwiftABI = WinUI.EventHandlerScrollViewerViewChangedEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x28965c4d, Data2: 0x0a6e, Data3: 0x5639, Data4: ( 0x98,0x6b,0xa8,0xac,0xe1,0x0f,0x5d,0xa1 ))// 28965c4d-0a6e-5639-986b-a8ace10f5da1 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollViewerViewChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerScrollViewerViewChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.ScrollViewerViewChangingEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewerViewChangingEventArgs + internal typealias SwiftABI = WinUI.EventHandlerScrollViewerViewChangingEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0xa1d02c1d, Data2: 0xf665, Data3: 0x502c, Data4: ( 0x8d,0x06,0x8f,0x91,0x02,0x1c,0xcf,0x98 ))// a1d02c1d-f665-502c-8d06-8f91021ccf98 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.FocusManagerGotFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerFocusManagerGotFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.FocusManagerGotFocusEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerGotFocusEventArgs + internal typealias SwiftABI = WinUI.EventHandlerFocusManagerGotFocusEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x5cad2aaf, Data2: 0xc531, Data3: 0x52bb, Data4: ( 0x85,0xfe,0xa1,0x81,0x54,0x68,0xdb,0xc2 ))// 5cad2aaf-c531-52bb-85fe-a1815468dbc2 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.FocusManagerLostFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerFocusManagerLostFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.FocusManagerLostFocusEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusManagerLostFocusEventArgs + internal typealias SwiftABI = WinUI.EventHandlerFocusManagerLostFocusEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x19b68d80, Data2: 0xe219, Data3: 0x5e3f, Data4: ( 0xac,0x5b,0x67,0x66,0xfe,0x41,0x88,0xca ))// 19b68d80-e219-5e3f-ac5b-6766fe4188ca +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.GettingFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerGettingFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.GettingFocusEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs + internal typealias SwiftABI = WinUI.EventHandlerGettingFocusEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0xe209d16e, Data2: 0x08e0, Data3: 0x545b, Data4: ( 0xa0,0xbc,0x55,0x80,0x35,0xbb,0x8b,0x00 ))// e209d16e-08e0-545b-a0bc-558035bb8b00 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.LosingFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerLosingFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.LosingFocusEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs + internal typealias SwiftABI = WinUI.EventHandlerLosingFocusEventArgs + + 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__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x19a913f7, Data2: 0x9793, Data3: 0x5d2e, Data4: ( 0xb9,0x89,0x7e,0xe2,0x6c,0x26,0x3a,0x2e ))// 19a913f7-9793-5d2e-b989-7ee26c263a2e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsVTable: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.RenderedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsWrapper = InterfaceWrapperBase +internal class EventHandlerRenderedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.RenderedEventArgs?) throws { + let senderWrapper = __ABI_.AnyWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.EventHandler + internal typealias CABI = __x_ABI_C__FIEventHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CRenderedEventArgs + internal typealias SwiftABI = WinUI.EventHandlerRenderedEventArgs + + 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_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xabf53c57, Data2: 0xee50, Data3: 0x5342, Data4: ( 0xb5,0x2a,0x26,0xe3,0xb8,0xcc,0x02,0x4f ))// abf53c57-ee50-5342-b52a-26e3b8cc024f +} + +internal var __x_ABI_C__FIAsyncOperation_1_IInspectableVTable: __x_ABI_C__FIAsyncOperation_1_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.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_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + let resultWrapper = __ABI_.AnyWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1_IInspectableWrapper = InterfaceWrapperBase +internal class IAsyncOperationAny: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1_IInspectable } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_IInspectable.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_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_IInspectableWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> Any? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_IInspectable.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi)) + } + } + return __ABI_.AnyWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1_IInspectableBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1_IInspectable + internal typealias SwiftABI = IAsyncOperationAny + 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_IInspectableImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1_IInspectableVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1_IInspectableImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = Any? + typealias Bridge = __x_ABI_C__FIAsyncOperation_1_IInspectableBridge + 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 -> Any? { + 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__FIAsyncOperation_1_boolean: WindowsFoundation.IID { + .init(Data1: 0xcdb5efb3, Data2: 0x5788, Data3: 0x509d, Data4: ( 0x9b,0xe1,0x71,0xcc,0xb8,0xa3,0x36,0x2a ))// cdb5efb3-5788-509d-9be1-71ccb8a3362a +} + +internal var __x_ABI_C__FIAsyncOperation_1_booleanVTable: __x_ABI_C__FIAsyncOperation_1_booleanVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1_booleanWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1_booleanWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1_booleanWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1_booleanWrapper.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_booleanWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.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_booleanWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1_booleanWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: .init(from: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1_booleanWrapper = InterfaceWrapperBase +internal class IAsyncOperationBool: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1_boolean } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_boolean.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_boolean.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_booleanWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> Bool { + var result: boolean = 0 + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_boolean.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1_booleanBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1_boolean + internal typealias SwiftABI = IAsyncOperationBool + 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_booleanImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1_booleanVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1_booleanImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = Bool + typealias Bridge = __x_ABI_C__FIAsyncOperation_1_booleanBridge + 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 -> Bool { + 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__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult: WindowsFoundation.IID { + .init(Data1: 0xd3ad3641, Data2: 0x8227, Data3: 0x59de, Data4: ( 0xba,0xc8,0x85,0xd3,0x79,0x5c,0x66,0x10 ))// d3ad3641-8227-59de-bac8-85d3795c6610 +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.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__CXaml__CControls__CContentDialogResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.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__CXaml__CControls__CContentDialogResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper = InterfaceWrapperBase +internal class IAsyncOperationContentDialogResult: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult.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__CXaml__CControls__CContentDialogResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WinUI.ContentDialogResult { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CControls_CContentDialogResult = .init(0) + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return result + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResult + internal typealias SwiftABI = IAsyncOperationContentDialogResult + 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__CXaml__CControls__CContentDialogResultImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WinUI.ContentDialogResult + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogResultBridge + 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 -> WinUI.ContentDialogResult { + 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__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult: WindowsFoundation.IID { + .init(Data1: 0x87c6d0a7, Data2: 0x9748, Data3: 0x5f9c, Data4: ( 0xb3,0x59,0x1e,0x12,0x75,0x9c,0xf3,0xce ))// 87c6d0a7-9748-5f9c-b359-1e12759cf3ce +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.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__CXaml__CData__CLoadMoreItemsResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.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__CXaml__CData__CLoadMoreItemsResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: .from(swift: result)) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper = InterfaceWrapperBase +internal class IAsyncOperationLoadMoreItemsResult: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult.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__CXaml__CData__CLoadMoreItemsResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WinUI.LoadMoreItemsResult { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CData_CLoadMoreItemsResult = .init() + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return .from(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResult + internal typealias SwiftABI = IAsyncOperationLoadMoreItemsResult + 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__CXaml__CData__CLoadMoreItemsResultImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WinUI.LoadMoreItemsResult + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CData__CLoadMoreItemsResultBridge + 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 -> WinUI.LoadMoreItemsResult { + 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__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult: WindowsFoundation.IID { + .init(Data1: 0xedc8359c, Data2: 0x34db, Data3: 0x5065, Data4: ( 0xb3,0x7e,0xc8,0xdc,0x44,0xda,0x81,0xc1 ))// edc8359c-34db-5065-b37e-c8dc44da81c1 +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.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__CXaml__CInput__CFocusMovementResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.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__CXaml__CInput__CFocusMovementResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + result?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper = InterfaceWrapperBase +internal class IAsyncOperationFocusMovementResult: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult.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__CXaml__CInput__CFocusMovementResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WinUI.FocusMovementResult? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi)) + } + } + return .from(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResult + internal typealias SwiftABI = IAsyncOperationFocusMovementResult + 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__CXaml__CInput__CFocusMovementResultImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WinUI.FocusMovementResult? + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CInput__CFocusMovementResultBridge + 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 -> WinUI.FocusMovementResult? { + 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__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus: WindowsFoundation.IID { + .init(Data1: 0x04fe49a9, Data2: 0xed47, Data3: 0x56ca, Data4: ( 0x93,0xea,0xea,0xa7,0x03,0x22,0x71,0xc5 ))// 04fe49a9-ed47-56ca-93ea-eaa7032271c5 +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.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__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.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__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper = InterfaceWrapperBase +internal class IAsyncOperationSvgImageSourceLoadStatus: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus.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__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WinUI.SvgImageSourceLoadStatus { + var result: __x_ABI_CMicrosoft_CUI_CXaml_CMedia_CImaging_CSvgImageSourceLoadStatus = .init(0) + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return result + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatus + internal typealias SwiftABI = IAsyncOperationSvgImageSourceLoadStatus + 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__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WinUI.SvgImageSourceLoadStatus + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceLoadStatusBridge + 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 -> WinUI.SvgImageSourceLoadStatus { + 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__FIAsyncOperation_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x3e1fe603, Data2: 0xf897, Data3: 0x5263, Data4: ( 0xb3,0x28,0x08,0x06,0x42,0x6b,0x8a,0x79 ))// 3e1fe603-f897-5263-b328-0806426b8a79 +} + +internal var __x_ABI_C__FIAsyncOperation_1_HSTRINGVTable: __x_ABI_C__FIAsyncOperation_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1_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] = WinUI.__x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper.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_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.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_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: try! HString(result).detach()) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1_HSTRINGWrapper = InterfaceWrapperBase +internal class IAsyncOperationString: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1_HSTRING } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_HSTRING.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_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1_HSTRINGWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> String { + var result: HSTRING? + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return .init(from: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1_HSTRING + internal typealias SwiftABI = IAsyncOperationString + 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_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1_HSTRINGImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = String + typealias Bridge = __x_ABI_C__FIAsyncOperation_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.iasyncoperation-1.getresults) + fileprivate func getResults() throws -> String { + 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__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation: WindowsFoundation.IID { + .init(Data1: 0x8b98aea9, Data2: 0x64f0, Data3: 0x5672, Data4: ( 0xb3,0x0e,0xdf,0xd9,0xc2,0xe4,0xf6,0xfe ))// 8b98aea9-64f0-5672-b30e-dfd9c2e4f6fe +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.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_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.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_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + $1?.initialize(to: result) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper = InterfaceWrapperBase +internal class IAsyncOperationDataPackageOperation: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation.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_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> UWP.DataPackageOperation { + var result: __x_ABI_CWindows_CApplicationModel_CDataTransfer_CDataPackageOperation = .init(0) + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &result)) + } + return result + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperation + internal typealias SwiftABI = IAsyncOperationDataPackageOperation + 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_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = UWP.DataPackageOperation + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CApplicationModel__CDataTransfer__CDataPackageOperationBridge + 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 -> UWP.DataPackageOperation { + 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__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRING: WindowsFoundation.IID { + .init(Data1: 0x2f92b529, Data2: 0x119b, Data3: 0x575a, Data4: ( 0xa4,0x19,0x39,0x04,0xb4,0xe4,0x1a,0xf2 ))// 2f92b529-119b-575a-a419-3904b4e41af2 +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.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_C__FIVectorView_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.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_C__FIVectorView_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + let resultWrapper = WinUI.__x_ABI_C__FIVectorView_1_HSTRINGWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper = InterfaceWrapperBase +internal class IAsyncOperationIVectorViewString: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRING } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?>?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRING.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_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_C__FIVectorView_1_HSTRINGWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> WindowsFoundation.AnyIVectorView? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRING.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIVectorView_1_HSTRINGWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRING + internal typealias SwiftABI = IAsyncOperationIVectorViewString + 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_C__FIVectorView_1_HSTRINGImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_1_HSTRINGImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = WindowsFoundation.AnyIVectorView? + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIVectorView_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.iasyncoperation-1.getresults) + fileprivate func getResults() throws -> WindowsFoundation.AnyIVectorView? { + 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__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer: WindowsFoundation.IID { + .init(Data1: 0x3bee8834, Data2: 0xb9a7, Data3: 0x5a80, Data4: ( 0xa7,0x46,0x5e,0xf0,0x97,0x22,0x78,0x78 ))// 3bee8834-b9a7-5a80-a746-5ef097227878 +} + +internal var __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVTable: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVtbl = .init( + QueryInterface: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.addRef($0) }, + Release: { __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.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] = WinUI.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.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_CWindows__CStorage__CStreams__CIBufferWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + guard let handler = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.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_CWindows__CStorage__CStreams__CIBufferWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance.completed + let resultWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + }, + + GetResults: { + do { + guard let __unwrapped__instance = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = try __unwrapped__instance.getResults() + let resultWrapper = __ABI_Windows_Storage_Streams.IBufferWrapper(result) + resultWrapper?.copyTo($1) + return S_OK + } catch { return failWith(err: E_FAIL) } + } +) +typealias __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper = InterfaceWrapperBase +internal class IAsyncOperationIBuffer: WindowsFoundation.IInspectable { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer } + + internal func put_CompletedImpl(_ handler: AsyncOperationCompletedHandler?) throws { + let handlerWrapper = WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper(handler) + let _handler = try! handlerWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer.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_CWindows__CStorage__CStreams__CIBuffer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.get_Completed(pThis, &resultAbi)) + } + } + return WinUI.__x_ABI_C__FIAsyncOperationCompletedHandler_1___x_ABI_CWindows__CStorage__CStreams__CIBufferWrapper.unwrapFrom(abi: result) + } + + internal func GetResultsImpl() throws -> UWP.AnyIBuffer? { + let (result) = try ComPtrs.initialize { resultAbi in + _ = try perform(as: __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.GetResults(pThis, &resultAbi)) + } + } + return __ABI_Windows_Storage_Streams.IBufferWrapper.unwrapFrom(abi: result) + } + +} + +internal enum __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferBridge : AbiInterfaceBridge { + internal typealias CABI = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBuffer + internal typealias SwiftABI = IAsyncOperationIBuffer + 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_CWindows__CStorage__CStreams__CIBufferImpl(abi) + } + + internal static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} + +fileprivate class __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferImpl : IAsyncOperation, AbiInterfaceImpl { + typealias TResult = UWP.AnyIBuffer? + typealias Bridge = __x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CStreams__CIBufferBridge + 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 -> UWP.AnyIBuffer? { + 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_boolean: WindowsFoundation.IID { + .init(Data1: 0x3c00fd60, Data2: 0x2950, Data3: 0x5939, Data4: ( 0xa2,0x1a,0x2d,0x12,0xc5,0xa0,0x1b,0x8a ))// 3c00fd60-2950-5939-a21a-2d12c5a01b8a +} + +internal enum __x_ABI_C__FIReference_1_booleanBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1_boolean + typealias SwiftProjection = Bool + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1_boolean } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: boolean = 0 + try! CHECKED(val.get().pointee.lpVtbl.pointee.get_Value(val.get(), &result)) + return .init(from: result) + } + + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &__x_ABI_C__FIReference_1_booleanVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1_booleanVTable: __x_ABI_C__FIReference_1_booleanVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1_booleanWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1_booleanWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1_booleanWrapper.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] = WinUI.__x_ABI_C__FIReference_1_booleanWrapper.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_booleanWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: .init(from: result)) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1_booleanWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1_double: WindowsFoundation.IID { + .init(Data1: 0x2f2d6c29, Data2: 0x5473, Data3: 0x5f3e, Data4: ( 0x92,0xe7,0x96,0x57,0x2b,0xb9,0x90,0xe2 ))// 2f2d6c29-5473-5f3e-92e7-96572bb990e2 +} + +internal enum __x_ABI_C__FIReference_1_doubleBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1_double + typealias SwiftProjection = Double + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1_double } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: DOUBLE = 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_doubleVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1_doubleVTable: __x_ABI_C__FIReference_1_doubleVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1_doubleWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1_doubleWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1_doubleWrapper.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] = WinUI.__x_ABI_C__FIReference_1_doubleWrapper.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_doubleWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: result) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1_doubleWrapper = ReferenceWrapperBase +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] = WinUI.__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_int: WindowsFoundation.IID { + .init(Data1: 0x548cefbd, Data2: 0xbc8a, Data3: 0x5fa0, Data4: ( 0x8d,0xf2,0x95,0x74,0x40,0xfc,0x8b,0xf4 ))// 548cefbd-bc8a-5fa0-8df2-957440fc8bf4 +} + +internal enum __x_ABI_C__FIReference_1_intBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1_int + typealias SwiftProjection = Int32 + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1_int } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: INT32 = 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_intVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1_intVTable: __x_ABI_C__FIReference_1_intVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1_intWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1_intWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1_intWrapper.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] = WinUI.__x_ABI_C__FIReference_1_intWrapper.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_intWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let result = __unwrapped__instance + $1?.initialize(to: result) + return S_OK + } +) +typealias __x_ABI_C__FIReference_1_intWrapper = ReferenceWrapperBase +private var IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTime: WindowsFoundation.IID { + .init(Data1: 0x5541d8a7, Data2: 0x497c, Data3: 0x5aa4, Data4: ( 0x86,0xfc,0x77,0x13,0xad,0xbf,0x2a,0x2c ))// 5541d8a7-497c-5aa4-86fc-7713adbf2a2c +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTime + typealias SwiftProjection = WindowsFoundation.DateTime + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTime } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CDateTime = .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__CDateTimeVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeWrapper.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] = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CDateTimeWrapper.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__CDateTimeWrapper.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__CDateTimeWrapper = 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] = WinUI.__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__CPoint: WindowsFoundation.IID { + .init(Data1: 0x84f14c22, Data2: 0xa00a, Data3: 0x5272, Data4: ( 0x8d,0x3d,0x82,0x11,0x2e,0x66,0xdf,0x00 ))// 84f14c22-a00a-5272-8d3d-82112e66df00 +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPoint + typealias SwiftProjection = WindowsFoundation.Point + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPoint } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CPoint = .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__CPointVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.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] = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CPointWrapper.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__CPointWrapper.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__CPointWrapper = 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] = WinUI.__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__CFoundation__CTimeSpan: WindowsFoundation.IID { + .init(Data1: 0x604d0c4c, Data2: 0x91de, Data3: 0x5c2a, Data4: ( 0x93,0x5f,0x36,0x2f,0x13,0xea,0xf8,0x00 ))// 604d0c4c-91de-5c2a-935f-362f13eaf800 +} + +internal enum __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanBridge: ReferenceBridge { + typealias CABI = __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpan + typealias SwiftProjection = WindowsFoundation.TimeSpan + static var IID: WindowsFoundation.IID { IID___x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpan } + + static func from(abi: ComPtr?) -> SwiftProjection? { + guard let val = abi else { return nil } + var result: __x_ABI_CWindows_CFoundation_CTimeSpan = .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__CTimeSpanVTable) { $0 } + return .init(lpVtbl: vtblPtr) + } +} +internal var __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanVTable: __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanVtbl = .init( + QueryInterface: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.addRef($0) }, + Release: { __x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.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] = WinUI.__x_ABI_C__FIReference_1___x_ABI_CWindows__CFoundation__CTimeSpanWrapper.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__CTimeSpanWrapper.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__CTimeSpanWrapper = 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] = WinUI.__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__CXaml__CResourceManagerRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc0334617, Data2: 0xc1e4, Data3: 0x5d66, Data4: ( 0xa8,0x39,0xbc,0xa5,0xf9,0x4c,0x5f,0x47 ))// c0334617-c1e4-5d66-a839-bca5f94c5f47 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ResourceManagerRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_ResourceManagerRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.ResourceManagerRequestedEventArgs?) 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__CXaml__CResourceManagerRequestedEventArgs.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__CXaml__CResourceManagerRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CResourceManagerRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerAny_ResourceManagerRequestedEventArgs + + 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_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xe5299329, Data2: 0x636a, Data3: 0x5c20, Data4: ( 0xa3,0x8a,0x12,0xdf,0x43,0xf6,0xd0,0x38 ))// e5299329-636a-5c20-a38a-12df43f6d038 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.WindowActivatedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_WindowActivatedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.WindowActivatedEventArgs?) 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__CXaml__CWindowActivatedEventArgs.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__CXaml__CWindowActivatedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowActivatedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerAny_WindowActivatedEventArgs + + 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_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2a954d28, Data2: 0x7f8b, Data3: 0x5479, Data4: ( 0x8c,0xe9,0x90,0x04,0x24,0xa0,0x40,0x9f ))// 2a954d28-7f8b-5479-8ce9-900424a0409f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.WindowEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_WindowEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.WindowEventArgs?) 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__CXaml__CWindowEventArgs.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__CXaml__CWindowEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerAny_WindowEventArgs + + 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_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x5ac3fe68, Data2: 0x1312, Data3: 0x5598, Data4: ( 0xb0,0x97,0x5c,0x78,0x9f,0xe7,0x2f,0xba ))// 5ac3fe68-1312-5598-b097-5c789fe72fba +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.WindowSizeChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_WindowSizeChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.WindowSizeChangedEventArgs?) 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__CXaml__CWindowSizeChangedEventArgs.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__CXaml__CWindowSizeChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowSizeChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerAny_WindowSizeChangedEventArgs + + 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_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc5011004, Data2: 0xf9a8, Data3: 0x521d, Data4: ( 0x9b,0x1d,0xd7,0xcd,0x18,0x48,0x89,0xf8 ))// c5011004-f9a8-521d-9b1d-d7cd184889f8 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: Any? = __ABI_.AnyWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.WindowVisibilityChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerAny_WindowVisibilityChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgs } + + internal func InvokeImpl(_ sender: Any?, _ args: WinUI.WindowVisibilityChangedEventArgs?) 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__CXaml__CWindowVisibilityChangedEventArgs.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__CXaml__CWindowVisibilityChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2_IInspectable___x_ABI_CMicrosoft__CUI__CXaml__CWindowVisibilityChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerAny_WindowVisibilityChangedEventArgs + + 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__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc3f72fd0, Data2: 0xae09, Data3: 0x5809, Data4: ( 0xb5,0xb1,0x57,0x19,0xc2,0x8c,0x0d,0xd3 ))// c3f72fd0-ae09-5809-b5b1-5719c28c0dd3 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ComboBox? = .from(abi: ComPtr($1)) + let args: WinUI.ComboBoxTextSubmittedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerComboBox_ComboBoxTextSubmittedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ComboBox?, _ args: WinUI.ComboBoxTextSubmittedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgs.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__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CComboBoxTextSubmittedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerComboBox_ComboBoxTextSubmittedEventArgs + + 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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgs: WindowsFoundation.IID { + .init(Data1: 0x00e6d74a, Data2: 0xb785, Data3: 0x5f70, Data4: ( 0xb1,0x81,0x8b,0x57,0x19,0xf4,0x39,0x22 ))// 00e6d74a-b785-5f70-b181-8b5719f43922 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ContentDialog? = .from(abi: ComPtr($1)) + let args: WinUI.ContentDialogButtonClickEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentDialog_ContentDialogButtonClickEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ContentDialog?, _ args: WinUI.ContentDialogButtonClickEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgs.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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogButtonClickEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerContentDialog_ContentDialogButtonClickEventArgs + + 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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xaa8730ec, Data2: 0xc9bd, Data3: 0x50ea, Data4: ( 0x87,0x14,0xda,0x30,0xc2,0x95,0x90,0xd9 ))// aa8730ec-c9bd-50ea-8714-da30c29590d9 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ContentDialog? = .from(abi: ComPtr($1)) + let args: WinUI.ContentDialogClosedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentDialog_ContentDialogClosedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ContentDialog?, _ args: WinUI.ContentDialogClosedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgs.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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerContentDialog_ContentDialogClosedEventArgs + + 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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xef348aea, Data2: 0xe353, Data3: 0x5cd4, Data4: ( 0x86,0x6a,0xd1,0xfc,0x93,0x95,0x74,0x24 ))// ef348aea-e353-5cd4-866a-d1fc93957424 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ContentDialog? = .from(abi: ComPtr($1)) + let args: WinUI.ContentDialogClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentDialog_ContentDialogClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ContentDialog?, _ args: WinUI.ContentDialogClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgs.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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogClosingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerContentDialog_ContentDialogClosingEventArgs + + 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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x64992085, Data2: 0x7df0, Data3: 0x5a0e, Data4: ( 0x83,0x3f,0x98,0xc7,0x47,0x3b,0xfe,0xc5 ))// 64992085-7df0-5a0e-833f-98c7473bfec5 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ContentDialog? = .from(abi: ComPtr($1)) + let args: WinUI.ContentDialogOpenedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerContentDialog_ContentDialogOpenedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ContentDialog?, _ args: WinUI.ContentDialogOpenedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgs.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__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialog___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContentDialogOpenedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerContentDialog_ContentDialogOpenedEventArgs + + 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__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9879511c, Data2: 0xdcfd, Data3: 0x56a5, Data4: ( 0x95,0x35,0x5d,0xa8,0x60,0x88,0x09,0x2f ))// 9879511c-dcfd-56a5-9535-5da86088092f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.Control? = .from(abi: ComPtr($1)) + let args: WinUI.FocusDisengagedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerControl_FocusDisengagedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.Control?, _ args: WinUI.FocusDisengagedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgs.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__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusDisengagedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerControl_FocusDisengagedEventArgs + + 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__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4b2fe512, Data2: 0x35fa, Data3: 0x5c54, Data4: ( 0xb6,0x87,0x9e,0xfb,0x70,0x9b,0x68,0xcd ))// 4b2fe512-35fa-5c54-b687-9efb709b68cd +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.Control? = .from(abi: ComPtr($1)) + let args: WinUI.FocusEngagedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerControl_FocusEngagedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.Control?, _ args: WinUI.FocusEngagedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgs.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__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CControl___x_ABI_CMicrosoft__CUI__CXaml__CControls__CFocusEngagedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerControl_FocusEngagedEventArgs + + 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__CXaml__CControls__CInfoBar_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x457aee71, Data2: 0x8c97, Data3: 0x5643, Data4: ( 0x85,0xbc,0x5f,0x73,0xf7,0x86,0x4b,0x77 ))// 457aee71-8c97-5643-85bc-5f73f7864b77 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.InfoBar? = .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__CXaml__CControls__CInfoBar_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInfoBar_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.InfoBar?, _ 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__CXaml__CControls__CInfoBar_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__CXaml__CControls__CInfoBar_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerInfoBar_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__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1c7afb45, Data2: 0x6785, Data3: 0x5ed7, Data4: ( 0x9a,0xdf,0x46,0x9b,0x58,0x5e,0x22,0xda ))// 1c7afb45-6785-5ed7-9adf-469b585e22da +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.InfoBar? = .from(abi: ComPtr($1)) + let args: WinUI.InfoBarClosedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInfoBar_InfoBarClosedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.InfoBar?, _ args: WinUI.InfoBarClosedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgs.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__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerInfoBar_InfoBarClosedEventArgs + + 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__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xf589cb61, Data2: 0x8c7a, Data3: 0x5807, Data4: ( 0x86,0x2d,0xf2,0x21,0xbe,0x83,0x3d,0x69 ))// f589cb61-8c7a-5807-862d-f221be833d69 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.InfoBar? = .from(abi: ComPtr($1)) + let args: WinUI.InfoBarClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerInfoBar_InfoBarClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.InfoBar?, _ args: WinUI.InfoBarClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgs.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__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBar___x_ABI_CMicrosoft__CUI__CXaml__CControls__CInfoBarClosingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerInfoBar_InfoBarClosingEventArgs + + 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__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x26d57f6f, Data2: 0x244f, Data3: 0x5c6f, Data4: ( 0xab,0xb7,0x4c,0xfd,0x2d,0x6c,0x4e,0xf4 ))// 26d57f6f-244f-5c6f-abb7-4cfd2d6c4ef4 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ItemCollectionTransitionProvider? = .from(abi: ComPtr($1)) + let args: WinUI.ItemCollectionTransitionCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerItemCollectionTransitionProvider_ItemCollectionTransitionCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ItemCollectionTransitionProvider?, _ args: WinUI.ItemCollectionTransitionCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgs.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__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionProvider___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemCollectionTransitionCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerItemCollectionTransitionProvider_ItemCollectionTransitionCompletedEventArgs + + 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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2bdff000, Data2: 0x0d97, Data3: 0x5331, Data4: ( 0xae,0x3f,0xb3,0x70,0x06,0x01,0xd8,0x7d ))// 2bdff000-0d97-5331-ae3f-b3700601d87d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ItemsRepeater? = .from(abi: ComPtr($1)) + let args: WinUI.ItemsRepeaterElementClearingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerItemsRepeater_ItemsRepeaterElementClearingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ItemsRepeater?, _ args: WinUI.ItemsRepeaterElementClearingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgs.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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementClearingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerItemsRepeater_ItemsRepeaterElementClearingEventArgs + + 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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x46069e49, Data2: 0x7948, Data3: 0x5a91, Data4: ( 0x90,0x6d,0xae,0xf0,0x22,0xfe,0x5c,0x50 ))// 46069e49-7948-5a91-906d-aef022fe5c50 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ItemsRepeater? = .from(abi: ComPtr($1)) + let args: WinUI.ItemsRepeaterElementIndexChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerItemsRepeater_ItemsRepeaterElementIndexChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ItemsRepeater?, _ args: WinUI.ItemsRepeaterElementIndexChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgs.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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementIndexChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerItemsRepeater_ItemsRepeaterElementIndexChangedEventArgs + + 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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc2b914ee, Data2: 0xcbe0, Data3: 0x59f4, Data4: ( 0x84,0x1f,0xeb,0xa2,0xdc,0x7c,0x67,0xcd ))// c2b914ee-cbe0-59f4-841f-eba2dc7c67cd +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ItemsRepeater? = .from(abi: ComPtr($1)) + let args: WinUI.ItemsRepeaterElementPreparedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerItemsRepeater_ItemsRepeaterElementPreparedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ItemsRepeater?, _ args: WinUI.ItemsRepeaterElementPreparedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgs.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__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeater___x_ABI_CMicrosoft__CUI__CXaml__CControls__CItemsRepeaterElementPreparedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerItemsRepeater_ItemsRepeaterElementPreparedEventArgs + + 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__CXaml__CControls__CLayout_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x38efeef8, Data2: 0x0b6d, Data3: 0x5875, Data4: ( 0xab,0x47,0x41,0x0b,0xf7,0x81,0xc6,0x83 ))// 38efeef8-0b6d-5875-ab47-410bf781c683 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.Layout? = .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__CXaml__CControls__CLayout_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerLayout_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.Layout?, _ 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__CXaml__CControls__CLayout_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__CXaml__CControls__CLayout_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CLayout_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerLayout_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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgs: WindowsFoundation.IID { + .init(Data1: 0xae81621c, Data2: 0xc974, Data3: 0x53dd, Data4: ( 0x9e,0x7e,0x60,0x2c,0x6b,0xa0,0x74,0x26 ))// ae81621c-c974-53dd-9e7e-602c6ba07426 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ListViewBase? = .from(abi: ComPtr($1)) + let args: WinUI.ChoosingGroupHeaderContainerEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerListViewBase_ChoosingGroupHeaderContainerEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ListViewBase?, _ args: WinUI.ChoosingGroupHeaderContainerEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgs.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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingGroupHeaderContainerEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerListViewBase_ChoosingGroupHeaderContainerEventArgs + + 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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgs: WindowsFoundation.IID { + .init(Data1: 0x02d018bf, Data2: 0xab83, Data3: 0x51d0, Data4: ( 0x94,0xd9,0x61,0x16,0x6d,0x8c,0xc9,0x29 ))// 02d018bf-ab83-51d0-94d9-61166d8cc929 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ListViewBase? = .from(abi: ComPtr($1)) + let args: WinUI.ChoosingItemContainerEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerListViewBase_ChoosingItemContainerEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ListViewBase?, _ args: WinUI.ChoosingItemContainerEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgs.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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CChoosingItemContainerEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerListViewBase_ChoosingItemContainerEventArgs + + 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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xa6f1a151, Data2: 0x7a50, Data3: 0x5f54, Data4: ( 0x98,0x8d,0x97,0xca,0xd5,0x57,0xde,0x3b ))// a6f1a151-7a50-5f54-988d-97cad557de3b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ListViewBase? = .from(abi: ComPtr($1)) + let args: WinUI.ContainerContentChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerListViewBase_ContainerContentChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ListViewBase?, _ args: WinUI.ContainerContentChangingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgs.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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CContainerContentChangingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerListViewBase_ContainerContentChangingEventArgs + + 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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x444371a2, Data2: 0x4e78, Data3: 0x5d30, Data4: ( 0xbb,0x5c,0xb3,0x58,0xc2,0x8a,0xbd,0x72 ))// 444371a2-4e78-5d30-bb5c-b358c28abd72 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ListViewBase? = .from(abi: ComPtr($1)) + let args: WinUI.DragItemsCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerListViewBase_DragItemsCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ListViewBase?, _ args: WinUI.DragItemsCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgs.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__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CListViewBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CDragItemsCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerListViewBase_DragItemsCompletedEventArgs + + 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__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x096dbde2, Data2: 0xda7c, Data3: 0x5432, Data4: ( 0x92,0x1a,0xf0,0xe4,0x66,0x7b,0xf7,0xca ))// 096dbde2-da7c-5432-921a-f0e4667bf7ca +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.MediaTransportControls? = .from(abi: ComPtr($1)) + let args: WinUI.MediaTransportControlsThumbnailRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerMediaTransportControls_MediaTransportControlsThumbnailRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.MediaTransportControls?, _ args: WinUI.MediaTransportControlsThumbnailRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgs.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__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CMediaTransportControls___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CMediaTransportControlsThumbnailRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerMediaTransportControls_MediaTransportControlsThumbnailRequestedEventArgs + + 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__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xf4c4589b, Data2: 0xad02, Data3: 0x52a8, Data4: ( 0xa1,0x3e,0xa9,0x3c,0x5d,0x24,0xb1,0xfe ))// f4c4589b-ad02-52a8-a13e-a93c5d24b1fe +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.PasswordBox? = .from(abi: ComPtr($1)) + let args: WinUI.PasswordBoxPasswordChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerPasswordBox_PasswordBoxPasswordChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.PasswordBox?, _ args: WinUI.PasswordBoxPasswordChangingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgs.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__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPasswordBoxPasswordChangingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerPasswordBox_PasswordBoxPasswordChangingEventArgs + + 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__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xf33917ad, Data2: 0x6d13, Data3: 0x5f8f, Data4: ( 0xb8,0x39,0x89,0xcb,0x49,0x5b,0xa2,0xbe ))// f33917ad-6d13-5f8f-b839-89cb495ba2be +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.PipsPager? = .from(abi: ComPtr($1)) + let args: WinUI.PipsPagerSelectedIndexChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerPipsPager_PipsPagerSelectedIndexChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.PipsPager?, _ args: WinUI.PipsPagerSelectedIndexChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgs.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__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPager___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPipsPagerSelectedIndexChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerPipsPager_PipsPagerSelectedIndexChangedEventArgs + + 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__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4451ca06, Data2: 0x3e60, Data3: 0x5c62, Data4: ( 0x87,0x49,0x26,0x60,0x90,0x7f,0xb8,0x6c ))// 4451ca06-3e60-5c62-8749-2660907fb86c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.FlyoutBase? = .from(abi: ComPtr($1)) + let args: WinUI.FlyoutBaseClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerFlyoutBase_FlyoutBaseClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.FlyoutBase?, _ args: WinUI.FlyoutBaseClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgs.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__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBase___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CFlyoutBaseClosingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerFlyoutBase_FlyoutBaseClosingEventArgs + + 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__CXaml__CControls__CPrimitives__CIScrollController_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x8cab3d95, Data2: 0x2643, Data3: 0x54a4, Data4: ( 0x80,0x07,0xe2,0x67,0x34,0x6e,0xef,0xbd ))// 8cab3d95-2643-54a4-8007-e267346eefbd +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollController? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.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__CXaml__CControls__CPrimitives__CIScrollController_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollController_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollController?, _ args: Any?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(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__CXaml__CControls__CPrimitives__CIScrollController_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__CXaml__CControls__CPrimitives__CIScrollController_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollController_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__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc0a4356f, Data2: 0xc7c1, Data3: 0x5bcb, Data4: ( 0x8f,0x1e,0x0f,0x13,0x8c,0x82,0xcc,0x8c ))// c0a4356f-c7c1-5bcb-8f1e-0f138c82cc8c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollController? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollControllerAddScrollVelocityRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollController_ScrollControllerAddScrollVelocityRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollController?, _ args: WinUI.ScrollControllerAddScrollVelocityRequestedEventArgs?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerAddScrollVelocityRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollController_ScrollControllerAddScrollVelocityRequestedEventArgs + + 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__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc4fee9cd, Data2: 0xceef, Data3: 0x5eed, Data4: ( 0xbf,0x38,0x75,0xf8,0x99,0x64,0xc8,0x53 ))// c4fee9cd-ceef-5eed-bf38-75f89964c853 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollController? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollControllerScrollByRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollController_ScrollControllerScrollByRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollController?, _ args: WinUI.ScrollControllerScrollByRequestedEventArgs?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollByRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollController_ScrollControllerScrollByRequestedEventArgs + + 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__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9d17f256, Data2: 0x33c9, Data3: 0x5cc5, Data4: ( 0xb4,0xd9,0xea,0x41,0x6e,0x8e,0x29,0x99 ))// 9d17f256-33c9-5cc5-b4d9-ea416e8e2999 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollController? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollControllerScrollToRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollController_ScrollControllerScrollToRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollController?, _ args: WinUI.ScrollControllerScrollToRequestedEventArgs?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollController___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerScrollToRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollController_ScrollControllerScrollToRequestedEventArgs + + 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__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x7a063665, Data2: 0x0787, Data3: 0x5de3, Data4: ( 0x81,0xd6,0xbc,0x11,0xef,0x04,0x24,0x8f ))// 7a063665-0787-5de3-81d6-bc11ef04248f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollControllerPanningInfo? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper.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__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollControllerPanningInfo_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollControllerPanningInfo?, _ args: Any?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper(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__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_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__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollControllerPanningInfo_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__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8f3ff86b, Data2: 0xc0ee, Data3: 0x5f17, Data4: ( 0x94,0x8a,0x38,0xd9,0x9f,0x2f,0x8d,0x25 ))// 8f3ff86b-c0ee-5f17-948a-38d99f2f8d25 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.AnyIScrollControllerPanningInfo? = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper.unwrapFrom(abi: ComPtr($1)) + let args: WinUI.ScrollControllerPanRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerIScrollControllerPanningInfo_ScrollControllerPanRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.AnyIScrollControllerPanningInfo?, _ args: WinUI.ScrollControllerPanRequestedEventArgs?) throws { + let senderWrapper = __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoWrapper(sender) + let _sender = try! senderWrapper?.toABI { $0 } + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgs.self) { pThis in + try CHECKED(pThis.pointee.lpVtbl.pointee.Invoke(pThis, _sender, RawPointer(args))) + } + } + +} + +internal class __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CIScrollControllerPanningInfo___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollControllerPanRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerIScrollControllerPanningInfo_ScrollControllerPanRequestedEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x9301b1f0, Data2: 0x4592, Data3: 0x54b0, Data4: ( 0xa0,0x74,0x72,0x94,0x73,0x4c,0xce,0x33 ))// 9301b1f0-4592-54b0-a074-7294734cce33 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .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__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ 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__CXaml__CControls__CPrimitives__CScrollPresenter_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__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2889a65e, Data2: 0x2d95, Data3: 0x5770, Data4: ( 0x8c,0xc7,0xc0,0xd3,0x4a,0x52,0x5d,0xf1 ))// 2889a65e-2d95-5770-8cc7-c0d34a525df1 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingAnchorRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingAnchorRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingAnchorRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingAnchorRequestedEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs: WindowsFoundation.IID { + .init(Data1: 0xb6bbe7ed, Data2: 0x61e5, Data3: 0x59da, Data4: ( 0x93,0xb2,0xd2,0xfb,0x63,0xed,0x22,0xad ))// b6bbe7ed-61e5-59da-93b2-d2fb63ed22ad +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingBringingIntoViewEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingBringingIntoViewEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingBringingIntoViewEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingBringingIntoViewEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3deca623, Data2: 0x443c, Data3: 0x54f2, Data4: ( 0x98,0x77,0x5a,0x8a,0xfa,0x81,0x38,0x87 ))// 3deca623-443c-54f2-9877-5a8afa813887 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingScrollAnimationStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingScrollAnimationStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingScrollAnimationStartingEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xee55f2ad, Data2: 0x9d2b, Data3: 0x53b9, Data4: ( 0x86,0xb3,0x9a,0x0c,0xed,0xb6,0xe1,0x70 ))// ee55f2ad-9d2b-53b9-86b3-9a0cedb6e170 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingScrollCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingScrollCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingScrollCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingScrollCompletedEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x39a1448d, Data2: 0x8545, Data3: 0x5620, Data4: ( 0x92,0x8e,0xb5,0xc2,0x49,0xba,0xe9,0x4c ))// 39a1448d-8545-5620-928e-b5c249bae94c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingZoomAnimationStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingZoomAnimationStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingZoomAnimationStartingEventArgs + + 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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x358bdb56, Data2: 0x496f, Data3: 0x5e61, Data4: ( 0xb5,0x53,0xaa,0x6e,0xda,0xd1,0x4e,0xd0 ))// 358bdb56-496f-5e61-b553-aa6edad14ed0 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollPresenter? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingZoomCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollPresenter_ScrollingZoomCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollPresenter?, _ args: WinUI.ScrollingZoomCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs.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__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CPrimitives__CScrollPresenter___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollPresenter_ScrollingZoomCompletedEventArgs + + 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__CXaml__CControls__CScrollView_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xfb5534e8, Data2: 0xbf2d, Data3: 0x52be, Data4: ( 0x8e,0x17,0xaf,0x8f,0x2f,0x03,0x86,0x0e ))// fb5534e8-bf2d-52be-8e17-af8f2f03860e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .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__CXaml__CControls__CScrollView_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ 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__CXaml__CControls__CScrollView_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__CXaml__CControls__CScrollView_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x52e5875e, Data2: 0x1619, Data3: 0x53ec, Data4: ( 0x92,0x29,0x6d,0xbb,0xca,0x5d,0x1e,0x8b ))// 52e5875e-1619-53ec-9229-6dbbca5d1e8b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingAnchorRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingAnchorRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingAnchorRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingAnchorRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingAnchorRequestedEventArgs + + 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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3efe38f3, Data2: 0x2f88, Data3: 0x5954, Data4: ( 0xa3,0xcf,0x63,0xe7,0x3e,0x17,0x14,0xfc ))// 3efe38f3-2f88-5954-a3cf-63e73e1714fc +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingBringingIntoViewEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingBringingIntoViewEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingBringingIntoViewEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingBringingIntoViewEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingBringingIntoViewEventArgs + + 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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x598009f7, Data2: 0x3177, Data3: 0x5c91, Data4: ( 0x8d,0x9f,0x6e,0x2f,0x88,0x5a,0xd1,0xcc ))// 598009f7-3177-5c91-8d9f-6e2f885ad1cc +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingScrollAnimationStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingScrollAnimationStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingScrollAnimationStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollAnimationStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingScrollAnimationStartingEventArgs + + 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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xe81141b1, Data2: 0x6a00, Data3: 0x5cf5, Data4: ( 0x9f,0x6d,0x5b,0x63,0xb5,0xa2,0x59,0x5c ))// e81141b1-6a00-5cf5-9f6d-5b63b5a2595c +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingScrollCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingScrollCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingScrollCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingScrollCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingScrollCompletedEventArgs + + 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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3cc6f93c, Data2: 0x022c, Data3: 0x521e, Data4: ( 0x9b,0xe0,0xcb,0xf4,0xe8,0x3c,0x00,0x5b ))// 3cc6f93c-022c-521e-9be0-cbf4e83c005b +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingZoomAnimationStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingZoomAnimationStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingZoomAnimationStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomAnimationStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingZoomAnimationStartingEventArgs + + 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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x2069f97d, Data2: 0x93ff, Data3: 0x5872, Data4: ( 0xab,0x79,0xcd,0xfd,0x47,0x71,0x9c,0x53 ))// 2069f97d-93ff-5872-ab79-cdfd47719c53 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollView? = .from(abi: ComPtr($1)) + let args: WinUI.ScrollingZoomCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollView_ScrollingZoomCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollView?, _ args: WinUI.ScrollingZoomCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs.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__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollingZoomCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollView_ScrollingZoomCompletedEventArgs + + 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__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xa2843936, Data2: 0xe9fa, Data3: 0x5646, Data4: ( 0xad,0xf8,0x01,0x08,0x90,0x24,0x95,0x9e ))// a2843936-e9fa-5646-adf8-01089024959e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ScrollViewer? = .from(abi: ComPtr($1)) + let args: WinUI.AnchorRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerScrollViewer_AnchorRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.ScrollViewer?, _ args: WinUI.AnchorRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgs.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__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CScrollViewer___x_ABI_CMicrosoft__CUI__CXaml__CControls__CAnchorRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerScrollViewer_AnchorRequestedEventArgs + + 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__CXaml__CControls__CSplitView_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xf811c258, Data2: 0xf10a, Data3: 0x5d33, Data4: ( 0x8b,0x12,0xb1,0xd8,0x41,0x57,0x19,0x6e ))// f811c258-f10a-5d33-8b12-b1d84157196e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.SplitView? = .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__CXaml__CControls__CSplitView_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerSplitView_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.SplitView?, _ 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__CXaml__CControls__CSplitView_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__CXaml__CControls__CSplitView_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerSplitView_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__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0b36eced, Data2: 0xa30b, Data3: 0x5d10, Data4: ( 0xbf,0x9a,0x46,0xfd,0x9f,0x94,0xef,0x4e ))// 0b36eced-a30b-5d10-bf9a-46fd9f94ef4e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.SplitView? = .from(abi: ComPtr($1)) + let args: WinUI.SplitViewPaneClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerSplitView_SplitViewPaneClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.SplitView?, _ args: WinUI.SplitViewPaneClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgs.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__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSplitViewPaneClosingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerSplitView_SplitViewPaneClosingEventArgs + + 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__CXaml__CControls__CSwapChainPanel_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x20ddc438, Data2: 0x23c6, Data3: 0x50ec, Data4: ( 0x9c,0xa4,0x26,0x1a,0xb7,0x9e,0xdb,0xa7 ))// 20ddc438-23c6-50ec-9ca4-261ab79edba7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.SwapChainPanel? = .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__CXaml__CControls__CSwapChainPanel_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerSwapChainPanel_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.SwapChainPanel?, _ 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__CXaml__CControls__CSwapChainPanel_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__CXaml__CControls__CSwapChainPanel_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CSwapChainPanel_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerSwapChainPanel_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__CXaml__CControls__CTeachingTip_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x0060bd6f, Data2: 0x5e3f, Data3: 0x538c, Data4: ( 0xa3,0x48,0xc5,0xf6,0x91,0x0c,0x97,0x32 ))// 0060bd6f-5e3f-538c-a348-c5f6910c9732 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TeachingTip? = .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__CXaml__CControls__CTeachingTip_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTeachingTip_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.TeachingTip?, _ 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__CXaml__CControls__CTeachingTip_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__CXaml__CControls__CTeachingTip_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerTeachingTip_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__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x6c950eab, Data2: 0x56aa, Data3: 0x5312, Data4: ( 0x8b,0xdc,0xe8,0x7c,0x4d,0xc1,0xc3,0xbb ))// 6c950eab-56aa-5312-8bdc-e87c4dc1c3bb +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TeachingTip? = .from(abi: ComPtr($1)) + let args: WinUI.TeachingTipClosedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTeachingTip_TeachingTipClosedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TeachingTip?, _ args: WinUI.TeachingTipClosedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgs.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__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTeachingTip_TeachingTipClosedEventArgs + + 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__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3151ff5a, Data2: 0x0ac1, Data3: 0x5d10, Data4: ( 0x92,0xc4,0x31,0x45,0x8b,0x08,0x8b,0x9f ))// 3151ff5a-0ac1-5d10-92c4-31458b088b9f +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TeachingTip? = .from(abi: ComPtr($1)) + let args: WinUI.TeachingTipClosingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTeachingTip_TeachingTipClosingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TeachingTip?, _ args: WinUI.TeachingTipClosingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgs.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__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTip___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTeachingTipClosingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTeachingTip_TeachingTipClosingEventArgs + + 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__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x376bf900, Data2: 0xba70, Data3: 0x54b5, Data4: ( 0xab,0xaf,0x0d,0xaf,0x51,0xf9,0x9e,0x60 ))// 376bf900-ba70-54b5-abaf-0daf51f99e60 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBlock? = .from(abi: ComPtr($1)) + let args: WinUI.IsTextTrimmedChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBlock_IsTextTrimmedChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBlock?, _ args: WinUI.IsTextTrimmedChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgs.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__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBlock___x_ABI_CMicrosoft__CUI__CXaml__CControls__CIsTextTrimmedChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBlock_IsTextTrimmedChangedEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1904ebde, Data2: 0xf7b5, Data3: 0x56b4, Data4: ( 0x9d,0xec,0x74,0x29,0x48,0x4c,0x06,0xf2 ))// 1904ebde-f7b5-56b4-9dec-7429484c06f2 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.CandidateWindowBoundsChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_CandidateWindowBoundsChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.CandidateWindowBoundsChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CCandidateWindowBoundsChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_CandidateWindowBoundsChangedEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xe649e080, Data2: 0x32dc, Data3: 0x5977, Data4: ( 0xa6,0xe6,0x7f,0xde,0x0a,0x92,0x14,0x13 ))// e649e080-32dc-5977-a6e6-7fde0a921413 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextBoxBeforeTextChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextBoxBeforeTextChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextBoxBeforeTextChangingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxBeforeTextChangingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextBoxBeforeTextChangingEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xad407b5a, Data2: 0xc7c6, Data3: 0x5ce3, Data4: ( 0xa6,0x78,0x98,0x78,0x48,0x45,0x85,0x34 ))// ad407b5a-c7c6-5ce3-a678-987848458534 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextBoxSelectionChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextBoxSelectionChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextBoxSelectionChangingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxSelectionChangingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextBoxSelectionChangingEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xfbb9dd7c, Data2: 0x6cae, Data3: 0x56cf, Data4: ( 0x88,0x62,0xc4,0x60,0xdf,0xe7,0x72,0xee ))// fbb9dd7c-6cae-56cf-8862-c460dfe772ee +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextBoxTextChangingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextBoxTextChangingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextBoxTextChangingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBoxTextChangingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextBoxTextChangingEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x34c56877, Data2: 0x38e3, Data3: 0x55d6, Data4: ( 0xa2,0x50,0x53,0xce,0x9e,0x49,0x0d,0xfc ))// 34c56877-38e3-55d6-a250-53ce9e490dfc +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextCompositionChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextCompositionChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextCompositionChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextCompositionChangedEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xbcc52f19, Data2: 0x43de, Data3: 0x5469, Data4: ( 0x8a,0x77,0xa2,0x74,0xdd,0x3a,0xe1,0x4e ))// bcc52f19-43de-5469-8a77-a274dd3ae14e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextCompositionEndedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextCompositionEndedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextCompositionEndedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionEndedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextCompositionEndedEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xbcc3cc9b, Data2: 0x1608, Data3: 0x5871, Data4: ( 0xb5,0x82,0xe5,0xc2,0x24,0x7b,0xa1,0x42 ))// bcc3cc9b-1608-5871-b582-e5c2247ba142 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextCompositionStartedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextCompositionStartedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextCompositionStartedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextCompositionStartedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextCompositionStartedEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgs: WindowsFoundation.IID { + .init(Data1: 0x75b62795, Data2: 0x49ab, Data3: 0x5f82, Data4: ( 0xb6,0xb4,0x79,0xd6,0x21,0xe2,0xc7,0x32 ))// 75b62795-49ab-5f82-b6b4-79d621e2c732 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextControlCopyingToClipboardEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextControlCopyingToClipboardEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextControlCopyingToClipboardEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCopyingToClipboardEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextControlCopyingToClipboardEventArgs + + 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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4d5a2b91, Data2: 0x5e42, Data3: 0x5e2f, Data4: ( 0x8e,0xaa,0x21,0x02,0xb3,0x87,0xe2,0x2d ))// 4d5a2b91-5e42-5e2f-8eaa-2102b387e22d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextBox? = .from(abi: ComPtr($1)) + let args: WinUI.TextControlCuttingToClipboardEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextBox_TextControlCuttingToClipboardEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextBox?, _ args: WinUI.TextControlCuttingToClipboardEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgs.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__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextBox___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTextControlCuttingToClipboardEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextBox_TextControlCuttingToClipboardEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x611c2f44, Data2: 0xfc2f, Data3: 0x5f3d, Data4: ( 0x99,0x4e,0x17,0x7b,0x9a,0x58,0xab,0x90 ))// 611c2f44-fc2f-5f3d-994e-177b9a58ab90 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewCollapsedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewCollapsedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewCollapsedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewCollapsedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewCollapsedEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x50e97f51, Data2: 0xc92f, Data3: 0x5883, Data4: ( 0xb0,0xad,0xab,0x89,0xfb,0xc4,0x8d,0xea ))// 50e97f51-c92f-5883-b0ad-ab89fbc48dea +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewDragItemsCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewDragItemsCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewDragItemsCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewDragItemsCompletedEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xb9576817, Data2: 0x00ed, Data3: 0x5519, Data4: ( 0xac,0xff,0x6b,0x99,0xe6,0x81,0x32,0xa1 ))// b9576817-00ed-5519-acff-6b99e68132a1 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewDragItemsStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewDragItemsStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewDragItemsStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewDragItemsStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewDragItemsStartingEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgs: WindowsFoundation.IID { + .init(Data1: 0x795f0a25, Data2: 0x75b8, Data3: 0x5ee4, Data4: ( 0x96,0x89,0xe4,0x0d,0x37,0xc7,0x6c,0x29 ))// 795f0a25-75b8-5ee4-9689-e40d37c76c29 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewExpandingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewExpandingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewExpandingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewExpandingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewExpandingEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xce45103a, Data2: 0xc707, Data3: 0x5934, Data4: ( 0x8e,0x39,0xf0,0x49,0xb9,0x85,0xa2,0x7d ))// ce45103a-c707-5934-8e39-f049b985a27d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewItemInvokedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewItemInvokedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewItemInvokedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewItemInvokedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewItemInvokedEventArgs + + 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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x94b7703d, Data2: 0x95d3, Data3: 0x5f86, Data4: ( 0xbe,0xe1,0x21,0x48,0xfd,0x6d,0x96,0x1d ))// 94b7703d-95d3-5f86-bee1-2148fd6d961d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TreeView? = .from(abi: ComPtr($1)) + let args: WinUI.TreeViewSelectionChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTreeView_TreeViewSelectionChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TreeView?, _ args: WinUI.TreeViewSelectionChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgs.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__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeView___x_ABI_CMicrosoft__CUI__CXaml__CControls__CTreeViewSelectionChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTreeView_TreeViewSelectionChangedEventArgs + + 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__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x083ad9d9, Data2: 0xd73a, Data3: 0x5255, Data4: ( 0xb5,0x1a,0x6f,0xf3,0xe8,0x8b,0xdd,0x4a ))// 083ad9d9-d73a-5255-b51a-6ff3e88bdd4a +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.DebugSettings? = .from(abi: ComPtr($1)) + let args: WinUI.XamlResourceReferenceFailedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDebugSettings_XamlResourceReferenceFailedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.DebugSettings?, _ args: WinUI.XamlResourceReferenceFailedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgs.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__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDebugSettings___x_ABI_CMicrosoft__CUI__CXaml__CXamlResourceReferenceFailedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerDebugSettings_XamlResourceReferenceFailedEventArgs + + 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__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgs: WindowsFoundation.IID { + .init(Data1: 0x40bc5de0, Data2: 0x8921, Data3: 0x5b61, Data4: ( 0x94,0xf6,0xaa,0x56,0xa0,0xb5,0x40,0xce ))// 40bc5de0-8921-5b61-94f6-aa56a0b540ce +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.Hyperlink? = .from(abi: ComPtr($1)) + let args: WinUI.HyperlinkClickEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerHyperlink_HyperlinkClickEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgs } + + internal func InvokeImpl(_ sender: WinUI.Hyperlink?, _ args: WinUI.HyperlinkClickEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgs.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__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlink___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CHyperlinkClickEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerHyperlink_HyperlinkClickEventArgs + + 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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x459ee508, Data2: 0xeb51, Data3: 0x5eab, Data4: ( 0x9f,0xd9,0x86,0x5a,0xfa,0xda,0x06,0xc7 ))// 459ee508-eb51-5eab-9fd9-865afada06c7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyDisplayDismissedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextElement_AccessKeyDisplayDismissedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextElement?, _ args: WinUI.AccessKeyDisplayDismissedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs.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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextElement_AccessKeyDisplayDismissedEventArgs + + 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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xd2ff7f87, Data2: 0x74c6, Data3: 0x5a26, Data4: ( 0x83,0xf3,0x7c,0xc6,0xe5,0xe8,0xa5,0x4d ))// d2ff7f87-74c6-5a26-83f3-7cc6e5e8a54d +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyDisplayRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextElement_AccessKeyDisplayRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextElement?, _ args: WinUI.AccessKeyDisplayRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs.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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextElement_AccessKeyDisplayRequestedEventArgs + + 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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x60ef1dd7, Data2: 0x8842, Data3: 0x50f8, Data4: ( 0xbc,0x5c,0xe0,0xc9,0x18,0x2e,0xf2,0xd5 ))// 60ef1dd7-8842-50f8-bc5c-e0c9182ef2d5 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.TextElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyInvokedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerTextElement_AccessKeyInvokedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.TextElement?, _ args: WinUI.AccessKeyInvokedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs.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__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CDocuments__CTextElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerTextElement_AccessKeyInvokedEventArgs + + 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__CXaml__CFrameworkElement_IInspectable: WindowsFoundation.IID { + .init(Data1: 0x53876073, Data2: 0xbe4f, Data3: 0x5dac, Data4: ( 0x9a,0xe0,0x01,0x5d,0xb6,0xe4,0x0c,0x74 ))// 53876073-be4f-5dac-9ae0-015db6e40c74 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.FrameworkElement? = .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__CXaml__CFrameworkElement_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerFrameworkElement_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.FrameworkElement?, _ 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__CXaml__CFrameworkElement_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__CXaml__CFrameworkElement_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerFrameworkElement_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__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4e4ec708, Data2: 0xdef4, Data3: 0x5d93, Data4: ( 0x86,0x90,0xdf,0xc5,0xf9,0x23,0x3c,0x53 ))// 4e4ec708-def4-5d93-8690-dfc5f9233c53 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.FrameworkElement? = .from(abi: ComPtr($1)) + let args: WinUI.DataContextChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerFrameworkElement_DataContextChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.FrameworkElement?, _ args: WinUI.DataContextChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgs.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__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CDataContextChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerFrameworkElement_DataContextChangedEventArgs + + 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__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x276f9f20, Data2: 0x9e38, Data3: 0x5aed, Data4: ( 0xb5,0xa8,0x68,0xb2,0x5e,0xc4,0x09,0xc2 ))// 276f9f20-9e38-5aed-b5a8-68b25ec409c2 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.FrameworkElement? = .from(abi: ComPtr($1)) + let args: WinUI.EffectiveViewportChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerFrameworkElement_EffectiveViewportChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.FrameworkElement?, _ args: WinUI.EffectiveViewportChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgs.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__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CFrameworkElement___x_ABI_CMicrosoft__CUI__CXaml__CEffectiveViewportChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerFrameworkElement_EffectiveViewportChangedEventArgs + + 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__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x819741f0, Data2: 0x1d2d, Data3: 0x5731, Data4: ( 0x94,0x89,0x6b,0xac,0x15,0x5a,0x9e,0xf9 ))// 819741f0-1d2d-5731-9489-6bac155a9ef9 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.DesktopWindowXamlSource? = .from(abi: ComPtr($1)) + let args: WinUI.DesktopWindowXamlSourceGotFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDesktopWindowXamlSource_DesktopWindowXamlSourceGotFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgs } + + internal func InvokeImpl(_ sender: WinUI.DesktopWindowXamlSource?, _ args: WinUI.DesktopWindowXamlSourceGotFocusEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgs.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__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceGotFocusEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerDesktopWindowXamlSource_DesktopWindowXamlSourceGotFocusEventArgs + + 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__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xa16513ab, Data2: 0xcc2e, Data3: 0x57a0, Data4: ( 0x9b,0x6a,0x0c,0xe9,0xf4,0x83,0x72,0x85 ))// a16513ab-cc2e-57a0-9b6a-0ce9f4837285 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.DesktopWindowXamlSource? = .from(abi: ComPtr($1)) + let args: WinUI.DesktopWindowXamlSourceTakeFocusRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerDesktopWindowXamlSource_DesktopWindowXamlSourceTakeFocusRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.DesktopWindowXamlSource?, _ args: WinUI.DesktopWindowXamlSourceTakeFocusRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgs.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__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSource___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CDesktopWindowXamlSourceTakeFocusRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerDesktopWindowXamlSource_DesktopWindowXamlSourceTakeFocusRequestedEventArgs + + 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__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1056f3f8, Data2: 0xd8b3, Data3: 0x58ea, Data4: ( 0xb2,0x56,0x49,0x04,0x50,0x62,0x6c,0x55 ))// 1056f3f8-d8b3-58ea-b256-490450626c55 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.WindowsXamlManager? = .from(abi: ComPtr($1)) + let args: WinUI.XamlShutdownCompletedOnThreadEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerWindowsXamlManager_XamlShutdownCompletedOnThreadEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgs } + + internal func InvokeImpl(_ sender: WinUI.WindowsXamlManager?, _ args: WinUI.XamlShutdownCompletedOnThreadEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgs.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__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CWindowsXamlManager___x_ABI_CMicrosoft__CUI__CXaml__CHosting__CXamlShutdownCompletedOnThreadEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerWindowsXamlManager_XamlShutdownCompletedOnThreadEventArgs + + 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__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x03e5ce6a, Data2: 0x5f2d, Data3: 0x59d0, Data4: ( 0xb5,0x73,0x09,0x89,0xfe,0x6a,0xea,0xd9 ))// 03e5ce6a-5f2d-59d0-b573-0989fe6aead9 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.KeyboardAccelerator? = .from(abi: ComPtr($1)) + let args: WinUI.KeyboardAcceleratorInvokedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerKeyboardAccelerator_KeyboardAcceleratorInvokedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.KeyboardAccelerator?, _ args: WinUI.KeyboardAcceleratorInvokedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgs.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__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAccelerator___x_ABI_CMicrosoft__CUI__CXaml__CInput__CKeyboardAcceleratorInvokedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerKeyboardAccelerator_KeyboardAcceleratorInvokedEventArgs + + 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__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectable: WindowsFoundation.IID { + .init(Data1: 0xd35b3375, Data2: 0xa0ef, Data3: 0x59ca, Data4: ( 0x88,0xcf,0xdc,0x9b,0x4e,0x42,0x95,0x3e ))// d35b3375-a0ef-59ca-88cf-dc9b4e42953e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectable { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.ConnectedAnimation? = .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__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableWrapper = InterfaceWrapperBase +internal class TypedEventHandlerConnectedAnimation_Any: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectable } + + internal func InvokeImpl(_ sender: WinUI.ConnectedAnimation?, _ 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__CXaml__CMedia__CAnimation__CConnectedAnimation_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__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectableBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CAnimation__CConnectedAnimation_IInspectable + internal typealias SwiftABI = WinUI.TypedEventHandlerConnectedAnimation_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__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xc5f3237b, Data2: 0x4599, Data3: 0x5ef5, Data4: ( 0x93,0x2f,0x4b,0x8e,0x72,0x3d,0xd6,0x7e ))// c5f3237b-4599-5ef5-932f-4b8e723dd67e +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.SvgImageSource? = .from(abi: ComPtr($1)) + let args: WinUI.SvgImageSourceFailedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerSvgImageSource_SvgImageSourceFailedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.SvgImageSource?, _ args: WinUI.SvgImageSourceFailedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgs.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__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceFailedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerSvgImageSource_SvgImageSourceFailedEventArgs + + 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__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xe81e0783, Data2: 0xeb64, Data3: 0x5e84, Data4: ( 0xb5,0x7a,0xac,0x61,0x64,0x81,0x4f,0x85 ))// e81e0783-eb64-5e84-b57a-ac6164814f85 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.SvgImageSource? = .from(abi: ComPtr($1)) + let args: WinUI.SvgImageSourceOpenedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerSvgImageSource_SvgImageSourceOpenedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.SvgImageSource?, _ args: WinUI.SvgImageSourceOpenedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgs.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__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSource___x_ABI_CMicrosoft__CUI__CXaml__CMedia__CImaging__CSvgImageSourceOpenedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerSvgImageSource_SvgImageSourceOpenedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x239588e3, Data2: 0x453a, Data3: 0x5e9a, Data4: ( 0xbc,0x37,0xa0,0x88,0x03,0xf5,0x3f,0x22 ))// 239588e3-453a-5e9a-bc37-a08803f53f22 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.BringIntoViewRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_BringIntoViewRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.BringIntoViewRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CBringIntoViewRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_BringIntoViewRequestedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgs: WindowsFoundation.IID { + .init(Data1: 0xd0b66e28, Data2: 0x3f45, Data3: 0x5b7a, Data4: ( 0xa7,0x68,0x18,0x89,0x63,0xbb,0x76,0xa4 ))// d0b66e28-3f45-5b7a-a768-188963bb76a4 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.DragStartingEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_DragStartingEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.DragStartingEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDragStartingEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_DragStartingEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xac00806a, Data2: 0x8954, Data3: 0x51f5, Data4: ( 0x92,0x72,0x30,0x2f,0x69,0xb5,0x48,0xe4 ))// ac00806a-8954-51f5-9272-302f69b548e4 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.DropCompletedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_DropCompletedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.DropCompletedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CDropCompletedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_DropCompletedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9706b7ea, Data2: 0x14d5, Data3: 0x5efa, Data4: ( 0x84,0x3b,0x0d,0x43,0x7e,0x79,0x2e,0x65 ))// 9706b7ea-14d5-5efa-843b-0d437e792e65 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyDisplayDismissedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_AccessKeyDisplayDismissedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.AccessKeyDisplayDismissedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayDismissedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_AccessKeyDisplayDismissedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1af43211, Data2: 0x0169, Data3: 0x57e1, Data4: ( 0xaa,0x0e,0x40,0x43,0xec,0x09,0xde,0xdd ))// 1af43211-0169-57e1-aa0e-4043ec09dedd +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyDisplayRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_AccessKeyDisplayRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.AccessKeyDisplayRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyDisplayRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_AccessKeyDisplayRequestedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x8bf3906b, Data2: 0x8dfe, Data3: 0x5709, Data4: ( 0xac,0x7e,0x34,0x0f,0x67,0x10,0x4b,0xca ))// 8bf3906b-8dfe-5709-ac7e-340f67104bca +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.AccessKeyInvokedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_AccessKeyInvokedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.AccessKeyInvokedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CAccessKeyInvokedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_AccessKeyInvokedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x4f45a267, Data2: 0x2b57, Data3: 0x5eb1, Data4: ( 0xb3,0x82,0xe5,0x42,0xd5,0xa1,0x9f,0x7a ))// 4f45a267-2b57-5eb1-b382-e542d5a19f7a +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.CharacterReceivedRoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_CharacterReceivedRoutedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.CharacterReceivedRoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CCharacterReceivedRoutedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_CharacterReceivedRoutedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0c81075c, Data2: 0x3bd9, Data3: 0x5c90, Data4: ( 0xbd,0x8a,0x2a,0x89,0xbc,0x15,0x4f,0x35 ))// 0c81075c-3bd9-5c90-bd8a-2a89bc154f35 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.ContextRequestedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_ContextRequestedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.ContextRequestedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CContextRequestedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_ContextRequestedEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x0871eeab, Data2: 0x8a3d, Data3: 0x5e0b, Data4: ( 0x87,0x5c,0x79,0x49,0xf2,0x09,0xaa,0x19 ))// 0871eeab-8a3d-5e0b-875c-7949f209aa19 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.GettingFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_GettingFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.GettingFocusEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CGettingFocusEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_GettingFocusEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs: WindowsFoundation.IID { + .init(Data1: 0x3a87aeda, Data2: 0x6ea2, Data3: 0x511e, Data4: ( 0x86,0xe8,0xca,0x79,0xe0,0xe3,0xe4,0xe7 ))// 3a87aeda-6ea2-511e-86e8-ca79e0e3e4e7 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.LosingFocusEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_LosingFocusEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.LosingFocusEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CLosingFocusEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_LosingFocusEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgs: WindowsFoundation.IID { + .init(Data1: 0x1c4706d5, Data2: 0x217e, Data3: 0x5c28, Data4: ( 0x91,0x72,0x2c,0x0e,0xe1,0x37,0xb9,0x86 ))// 1c4706d5-217e-5c28-9172-2c0ee137b986 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.NoFocusCandidateFoundEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_NoFocusCandidateFoundEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.NoFocusCandidateFoundEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CNoFocusCandidateFoundEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_NoFocusCandidateFoundEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgs: WindowsFoundation.IID { + .init(Data1: 0x244bda89, Data2: 0x86c4, Data3: 0x5026, Data4: ( 0xac,0x7f,0x97,0x3c,0x09,0x71,0xee,0x7a ))// 244bda89-86c4-5026-ac7f-973c0971ee7a +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.ProcessKeyboardAcceleratorEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_ProcessKeyboardAcceleratorEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.ProcessKeyboardAcceleratorEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CInput__CProcessKeyboardAcceleratorEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_ProcessKeyboardAcceleratorEventArgs + + 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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgs: WindowsFoundation.IID { + .init(Data1: 0x9eb51482, Data2: 0x569e, Data3: 0x56c5, Data4: ( 0x90,0xe9,0x81,0x78,0xe2,0xf6,0xe5,0x31 ))// 9eb51482-569e-56c5-90e9-8178e2f6e531 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.UIElement? = .from(abi: ComPtr($1)) + let args: WinUI.RoutedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerUIElement_RoutedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.UIElement?, _ args: WinUI.RoutedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgs.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__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CUIElement___x_ABI_CMicrosoft__CUI__CXaml__CRoutedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerUIElement_RoutedEventArgs + + 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__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgs: WindowsFoundation.IID { + .init(Data1: 0xce4605e8, Data2: 0x4d3e, Data3: 0x58a2, Data4: ( 0x8a,0xa0,0x2f,0xac,0xa1,0x78,0x73,0xe8 ))// ce4605e8-4d3e-58a2-8aa0-2faca17873e8 +} + +internal extension WinRTDelegateBridge where CABI == __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgs { + static func makeAbi() -> CABI { + let vtblPtr = withUnsafeMutablePointer(to: &WinUI.__x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsVTable) { $0 } + return .init(lpVtbl:vtblPtr) + } +} + +internal var __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsVTable: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsVtbl = .init( + QueryInterface: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper.queryInterface($0, $1, $2) }, + AddRef: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper.addRef($0) }, + Release: { __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper.release($0) }, + Invoke: { + guard let __unwrapped__instance = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG } + let sender: WinUI.XamlRoot? = .from(abi: ComPtr($1)) + let args: WinUI.XamlRootChangedEventArgs? = .from(abi: ComPtr($2)) + __unwrapped__instance(sender, args) + return S_OK + } +) +typealias __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsWrapper = InterfaceWrapperBase +internal class TypedEventHandlerXamlRoot_XamlRootChangedEventArgs: WindowsFoundation.IUnknown { + override public class var IID: WindowsFoundation.IID { IID___x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgs } + + internal func InvokeImpl(_ sender: WinUI.XamlRoot?, _ args: WinUI.XamlRootChangedEventArgs?) throws { + _ = try perform(as: __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgs.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__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgsBridge : WinRTDelegateBridge { + internal typealias Handler = WindowsFoundation.TypedEventHandler + internal typealias CABI = __x_ABI_C__FITypedEventHandler_2___x_ABI_CMicrosoft__CUI__CXaml__CXamlRoot___x_ABI_CMicrosoft__CUI__CXaml__CXamlRootChangedEventArgs + internal typealias SwiftABI = WinUI.TypedEventHandlerXamlRoot_XamlRootChangedEventArgs + + 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 == EventHandler { + func invoke(_ sender: Any!, _ args: Any!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollController!, _ args: Any!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollController!, _ args: WinUI.ScrollControllerAddScrollVelocityRequestedEventArgs!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollController!, _ args: WinUI.ScrollControllerScrollByRequestedEventArgs!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollController!, _ args: WinUI.ScrollControllerScrollToRequestedEventArgs!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollControllerPanningInfo!, _ args: Any!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} + +public extension EventSource where Handler == TypedEventHandler { + func invoke(_ sender: WinUI.AnyIScrollControllerPanningInfo!, _ args: WinUI.ScrollControllerPanRequestedEventArgs!) { + for handler in getInvocationList() { + handler(sender, args) + } + } +} diff --git a/Sources/WinUI/Generated/WinUI+MakeFromAbi.swift b/Sources/WinUI/Generated/WinUI+MakeFromAbi.swift new file mode 100644 index 0000000..bf3e5ae --- /dev/null +++ b/Sources/WinUI/Generated/WinUI+MakeFromAbi.swift @@ -0,0 +1,2428 @@ +// 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 makeIDataTemplateExtensionFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml.IDataTemplateExtension = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml.IDataTemplateExtensionBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIElementFactoryFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml.IElementFactory = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml.IElementFactoryBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIInsertionPanelFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.IInsertionPanel = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.IInsertionPanelBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIItemContainerMappingFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.IItemContainerMapping = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.IItemContainerMappingBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIKeyIndexMappingFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.IKeyIndexMapping = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.IKeyIndexMappingBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeINavigateFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.INavigate = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.INavigateBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIScrollAnchorProviderFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.IScrollAnchorProvider = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.IScrollAnchorProviderBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeISemanticZoomInformationFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls.ISemanticZoomInformation = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls.ISemanticZoomInformationBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIScrollControllerFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollController = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIScrollControllerPanningInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfo = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollControllerPanningInfoBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIScrollSnapPointsInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfo = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Controls_Primitives.IScrollSnapPointsInfoBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeINotifyPropertyChangedFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Data.INotifyPropertyChanged = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Data.INotifyPropertyChangedBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIValueConverterFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Data.IValueConverter = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Data.IValueConverterBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeICommandFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Input.ICommand = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Input.ICommandBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIBindableIterableFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Interop.IBindableIterable = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Interop.IBindableIterableBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIBindableIteratorFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Interop.IBindableIterator = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Interop.IBindableIteratorBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIBindableVectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Interop.IBindableVector = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Interop.IBindableVectorBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIBindableVectorViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Interop.IBindableVectorView = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Interop.IBindableVectorViewBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeINotifyCollectionChangedFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Interop.INotifyCollectionChanged = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Interop.INotifyCollectionChangedBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIComponentConnectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Markup.IComponentConnector = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Markup.IComponentConnectorBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIDataTemplateComponentFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Markup.IDataTemplateComponent = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Markup.IDataTemplateComponentBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIXamlMemberFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Markup.IXamlMember = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Markup.IXamlMemberBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIXamlMetadataProviderFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProvider = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeIXamlTypeFrom(abi: WindowsFoundation.IInspectable) -> Any { + let swiftAbi: __ABI_Microsoft_UI_Xaml_Markup.IXamlType = try! abi.QueryInterface() + return __IMPL_Microsoft_UI_Xaml_Markup.IXamlTypeBridge.from(abi: RawPointer(swiftAbi))! +} + +fileprivate func makeApplicationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Application(fromAbi: abi) +} + +fileprivate func makeApplicationInitializationCallbackParamsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ApplicationInitializationCallbackParams(fromAbi: abi) +} + +fileprivate func makeBindingFailedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BindingFailedEventArgs(fromAbi: abi) +} + +fileprivate func makeBringIntoViewOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BringIntoViewOptions(fromAbi: abi) +} + +fileprivate func makeBringIntoViewRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BringIntoViewRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeBrushTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BrushTransition(fromAbi: abi) +} + +fileprivate func makeDataContextChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DataContextChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeDataTemplateFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DataTemplate(fromAbi: abi) +} + +fileprivate func makeDebugSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DebugSettings(fromAbi: abi) +} + +fileprivate func makeDependencyObjectFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DependencyObject(fromAbi: abi) +} + +fileprivate func makeDependencyPropertyFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DependencyProperty(fromAbi: abi) +} + +fileprivate func makeDependencyPropertyChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DependencyPropertyChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeDragEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragEventArgs(fromAbi: abi) +} + +fileprivate func makeDragOperationDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragOperationDeferral(fromAbi: abi) +} + +fileprivate func makeDragStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeDragUIFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragUI(fromAbi: abi) +} + +fileprivate func makeDragUIOverrideFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragUIOverride(fromAbi: abi) +} + +fileprivate func makeDropCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DropCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeEffectiveViewportChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EffectiveViewportChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeElementFactoryGetArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ElementFactoryGetArgs(fromAbi: abi) +} + +fileprivate func makeElementFactoryRecycleArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ElementFactoryRecycleArgs(fromAbi: abi) +} + +fileprivate func makeExceptionRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ExceptionRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeFrameworkElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FrameworkElement(fromAbi: abi) +} + +fileprivate func makeFrameworkTemplateFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FrameworkTemplate(fromAbi: abi) +} + +fileprivate func makeLaunchActivatedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LaunchActivatedEventArgs(fromAbi: abi) +} + +fileprivate func makePropertyMetadataFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PropertyMetadata(fromAbi: abi) +} + +fileprivate func makePropertyPathFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PropertyPath(fromAbi: abi) +} + +fileprivate func makeResourceDictionaryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceDictionary(fromAbi: abi) +} + +fileprivate func makeResourceManagerRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ResourceManagerRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeRoutedEventFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RoutedEvent(fromAbi: abi) +} + +fileprivate func makeRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeScalarTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScalarTransition(fromAbi: abi) +} + +fileprivate func makeSetterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Setter(fromAbi: abi) +} + +fileprivate func makeSetterBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SetterBase(fromAbi: abi) +} + +fileprivate func makeSetterBaseCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SetterBaseCollection(fromAbi: abi) +} + +fileprivate func makeSizeChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SizeChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeStyleFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Style(fromAbi: abi) +} + +fileprivate func makeTargetPropertyPathFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TargetPropertyPath(fromAbi: abi) +} + +fileprivate func makeTriggerActionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TriggerAction(fromAbi: abi) +} + +fileprivate func makeTriggerBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TriggerBase(fromAbi: abi) +} + +fileprivate func makeTriggerCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TriggerCollection(fromAbi: abi) +} + +fileprivate func makeUIElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UIElement(fromAbi: abi) +} + +fileprivate func makeUIElementWeakCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UIElementWeakCollection(fromAbi: abi) +} + +fileprivate func makeUnhandledExceptionEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UnhandledExceptionEventArgs(fromAbi: abi) +} + +fileprivate func makeVector3TransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Vector3Transition(fromAbi: abi) +} + +fileprivate func makeWindowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Window(fromAbi: abi) +} + +fileprivate func makeWindowActivatedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WindowActivatedEventArgs(fromAbi: abi) +} + +fileprivate func makeWindowEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WindowEventArgs(fromAbi: abi) +} + +fileprivate func makeWindowSizeChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WindowSizeChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeWindowVisibilityChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WindowVisibilityChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeXamlResourceReferenceFailedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlResourceReferenceFailedEventArgs(fromAbi: abi) +} + +fileprivate func makeXamlRootFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlRoot(fromAbi: abi) +} + +fileprivate func makeXamlRootChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlRootChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeAutomationAnnotationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AutomationAnnotation(fromAbi: abi) +} + +fileprivate func makeAutomationPropertiesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AutomationProperties(fromAbi: abi) +} + +fileprivate func makeAutomationPropertyFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AutomationProperty(fromAbi: abi) +} + +fileprivate func makeAutomationPeerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AutomationPeer(fromAbi: abi) +} + +fileprivate func makeAutomationPeerAnnotationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AutomationPeerAnnotation(fromAbi: abi) +} + +fileprivate func makeIRawElementProviderSimpleFrom(abi: WindowsFoundation.IInspectable) -> Any { + return IRawElementProviderSimple(fromAbi: abi) +} + +fileprivate func makeAnchorRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AnchorRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeAppBarFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppBar(fromAbi: abi) +} + +fileprivate func makeBitmapIconFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BitmapIcon(fromAbi: abi) +} + +fileprivate func makeBorderFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Border(fromAbi: abi) +} + +fileprivate func makeButtonFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Button(fromAbi: abi) +} + +fileprivate func makeCandidateWindowBoundsChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CandidateWindowBoundsChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeCanvasFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Canvas(fromAbi: abi) +} + +fileprivate func makeCheckBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CheckBox(fromAbi: abi) +} + +fileprivate func makeChoosingGroupHeaderContainerEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ChoosingGroupHeaderContainerEventArgs(fromAbi: abi) +} + +fileprivate func makeChoosingItemContainerEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ChoosingItemContainerEventArgs(fromAbi: abi) +} + +fileprivate func makeColumnDefinitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColumnDefinition(fromAbi: abi) +} + +fileprivate func makeColumnDefinitionCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColumnDefinitionCollection(fromAbi: abi) +} + +fileprivate func makeComboBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ComboBox(fromAbi: abi) +} + +fileprivate func makeComboBoxTextSubmittedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ComboBoxTextSubmittedEventArgs(fromAbi: abi) +} + +fileprivate func makeContainerContentChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContainerContentChangingEventArgs(fromAbi: abi) +} + +fileprivate func makeContentControlFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentControl(fromAbi: abi) +} + +fileprivate func makeContentDialogFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialog(fromAbi: abi) +} + +fileprivate func makeContentDialogButtonClickDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogButtonClickDeferral(fromAbi: abi) +} + +fileprivate func makeContentDialogButtonClickEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogButtonClickEventArgs(fromAbi: abi) +} + +fileprivate func makeContentDialogClosedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogClosedEventArgs(fromAbi: abi) +} + +fileprivate func makeContentDialogClosingDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogClosingDeferral(fromAbi: abi) +} + +fileprivate func makeContentDialogClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeContentDialogOpenedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentDialogOpenedEventArgs(fromAbi: abi) +} + +fileprivate func makeContentPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentPresenter(fromAbi: abi) +} + +fileprivate func makeContextMenuEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContextMenuEventArgs(fromAbi: abi) +} + +fileprivate func makeControlFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Control(fromAbi: abi) +} + +fileprivate func makeControlTemplateFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ControlTemplate(fromAbi: abi) +} + +fileprivate func makeDataTemplateSelectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DataTemplateSelector(fromAbi: abi) +} + +fileprivate func makeDragItemsCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragItemsCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeDragItemsStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragItemsStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeFlipViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlipView(fromAbi: abi) +} + +fileprivate func makeFlipViewItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlipViewItem(fromAbi: abi) +} + +fileprivate func makeFlyoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Flyout(fromAbi: abi) +} + +fileprivate func makeFlyoutPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlyoutPresenter(fromAbi: abi) +} + +fileprivate func makeFocusDisengagedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusDisengagedEventArgs(fromAbi: abi) +} + +fileprivate func makeFocusEngagedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusEngagedEventArgs(fromAbi: abi) +} + +fileprivate func makeFontIconFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FontIcon(fromAbi: abi) +} + +fileprivate func makeFontIconSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FontIconSource(fromAbi: abi) +} + +fileprivate func makeFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Frame(fromAbi: abi) +} + +fileprivate func makeGridFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Grid(fromAbi: abi) +} + +fileprivate func makeGridViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GridView(fromAbi: abi) +} + +fileprivate func makeGroupStyleFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GroupStyle(fromAbi: abi) +} + +fileprivate func makeGroupStyleSelectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GroupStyleSelector(fromAbi: abi) +} + +fileprivate func makeHyperlinkButtonFrom(abi: WindowsFoundation.IInspectable) -> Any { + return HyperlinkButton(fromAbi: abi) +} + +fileprivate func makeIconElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return IconElement(fromAbi: abi) +} + +fileprivate func makeIconSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return IconSource(fromAbi: abi) +} + +fileprivate func makeIconSourceElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return IconSourceElement(fromAbi: abi) +} + +fileprivate func makeImageFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Image(fromAbi: abi) +} + +fileprivate func makeImageIconFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ImageIcon(fromAbi: abi) +} + +fileprivate func makeInfoBarFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InfoBar(fromAbi: abi) +} + +fileprivate func makeInfoBarClosedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InfoBarClosedEventArgs(fromAbi: abi) +} + +fileprivate func makeInfoBarClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InfoBarClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeInfoBarTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InfoBarTemplateSettings(fromAbi: abi) +} + +fileprivate func makeIsTextTrimmedChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return IsTextTrimmedChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeItemClickEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemClickEventArgs(fromAbi: abi) +} + +fileprivate func makeItemCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemCollection(fromAbi: abi) +} + +fileprivate func makeItemCollectionTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemCollectionTransition(fromAbi: abi) +} + +fileprivate func makeItemCollectionTransitionCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemCollectionTransitionCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeItemCollectionTransitionProgressFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemCollectionTransitionProgress(fromAbi: abi) +} + +fileprivate func makeItemCollectionTransitionProviderFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemCollectionTransitionProvider(fromAbi: abi) +} + +fileprivate func makeItemContainerGeneratorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemContainerGenerator(fromAbi: abi) +} + +fileprivate func makeItemsControlFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsControl(fromAbi: abi) +} + +fileprivate func makeItemsPanelTemplateFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsPanelTemplate(fromAbi: abi) +} + +fileprivate func makeItemsRepeaterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsRepeater(fromAbi: abi) +} + +fileprivate func makeItemsRepeaterElementClearingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsRepeaterElementClearingEventArgs(fromAbi: abi) +} + +fileprivate func makeItemsRepeaterElementIndexChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsRepeaterElementIndexChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeItemsRepeaterElementPreparedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsRepeaterElementPreparedEventArgs(fromAbi: abi) +} + +fileprivate func makeItemsSourceViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsSourceView(fromAbi: abi) +} + +fileprivate func makeLayoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Layout(fromAbi: abi) +} + +fileprivate func makeLayoutContextFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LayoutContext(fromAbi: abi) +} + +fileprivate func makeListBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListBox(fromAbi: abi) +} + +fileprivate func makeListBoxItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListBoxItem(fromAbi: abi) +} + +fileprivate func makeListViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListView(fromAbi: abi) +} + +fileprivate func makeListViewBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListViewBase(fromAbi: abi) +} + +fileprivate func makeListViewBaseHeaderItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListViewBaseHeaderItem(fromAbi: abi) +} + +fileprivate func makeListViewItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListViewItem(fromAbi: abi) +} + +fileprivate func makeMediaPlayerElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MediaPlayerElement(fromAbi: abi) +} + +fileprivate func makeMediaTransportControlsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MediaTransportControls(fromAbi: abi) +} + +fileprivate func makeMenuBarFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuBar(fromAbi: abi) +} + +fileprivate func makeMenuBarItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuBarItem(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyout(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyoutItem(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutItemBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyoutItemBase(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutSeparatorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyoutSeparator(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutSubItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyoutSubItem(fromAbi: abi) +} + +fileprivate func makePageFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Page(fromAbi: abi) +} + +fileprivate func makePanelFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Panel(fromAbi: abi) +} + +fileprivate func makePasswordBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PasswordBox(fromAbi: abi) +} + +fileprivate func makePasswordBoxPasswordChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PasswordBoxPasswordChangingEventArgs(fromAbi: abi) +} + +fileprivate func makePipsPagerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PipsPager(fromAbi: abi) +} + +fileprivate func makePipsPagerSelectedIndexChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PipsPagerSelectedIndexChangedEventArgs(fromAbi: abi) +} + +fileprivate func makePipsPagerTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PipsPagerTemplateSettings(fromAbi: abi) +} + +fileprivate func makeProgressBarFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ProgressBar(fromAbi: abi) +} + +fileprivate func makeProgressBarTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ProgressBarTemplateSettings(fromAbi: abi) +} + +fileprivate func makeProgressRingFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ProgressRing(fromAbi: abi) +} + +fileprivate func makeProgressRingTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ProgressRingTemplateSettings(fromAbi: abi) +} + +fileprivate func makeRadioButtonFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RadioButton(fromAbi: abi) +} + +fileprivate func makeRadioButtonsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RadioButtons(fromAbi: abi) +} + +fileprivate func makeRelativePanelFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RelativePanel(fromAbi: abi) +} + +fileprivate func makeRowDefinitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RowDefinition(fromAbi: abi) +} + +fileprivate func makeRowDefinitionCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RowDefinitionCollection(fromAbi: abi) +} + +fileprivate func makeScrollViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollView(fromAbi: abi) +} + +fileprivate func makeScrollViewerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollViewer(fromAbi: abi) +} + +fileprivate func makeScrollViewerViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollViewerView(fromAbi: abi) +} + +fileprivate func makeScrollViewerViewChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollViewerViewChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollViewerViewChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollViewerViewChangingEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingAnchorRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingAnchorRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingBringingIntoViewEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingBringingIntoViewEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingScrollAnimationStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingScrollAnimationStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingScrollCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingScrollCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingScrollOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingScrollOptions(fromAbi: abi) +} + +fileprivate func makeScrollingZoomAnimationStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingZoomAnimationStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingZoomCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingZoomCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollingZoomOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollingZoomOptions(fromAbi: abi) +} + +fileprivate func makeSelectionChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SelectionChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeSemanticZoomFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SemanticZoom(fromAbi: abi) +} + +fileprivate func makeSemanticZoomLocationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SemanticZoomLocation(fromAbi: abi) +} + +fileprivate func makeSemanticZoomViewChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SemanticZoomViewChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeSliderFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Slider(fromAbi: abi) +} + +fileprivate func makeSplitViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplitView(fromAbi: abi) +} + +fileprivate func makeSplitViewPaneClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplitViewPaneClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeStackLayoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return StackLayout(fromAbi: abi) +} + +fileprivate func makeStackPanelFrom(abi: WindowsFoundation.IInspectable) -> Any { + return StackPanel(fromAbi: abi) +} + +fileprivate func makeStyleSelectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return StyleSelector(fromAbi: abi) +} + +fileprivate func makeSwapChainPanelFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SwapChainPanel(fromAbi: abi) +} + +fileprivate func makeTeachingTipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TeachingTip(fromAbi: abi) +} + +fileprivate func makeTeachingTipClosedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TeachingTipClosedEventArgs(fromAbi: abi) +} + +fileprivate func makeTeachingTipClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TeachingTipClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeTeachingTipTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TeachingTipTemplateSettings(fromAbi: abi) +} + +fileprivate func makeTextBlockFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextBlock(fromAbi: abi) +} + +fileprivate func makeTextBoxFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextBox(fromAbi: abi) +} + +fileprivate func makeTextBoxBeforeTextChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextBoxBeforeTextChangingEventArgs(fromAbi: abi) +} + +fileprivate func makeTextBoxSelectionChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextBoxSelectionChangingEventArgs(fromAbi: abi) +} + +fileprivate func makeTextBoxTextChangingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextBoxTextChangingEventArgs(fromAbi: abi) +} + +fileprivate func makeTextChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeTextCompositionChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextCompositionChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeTextCompositionEndedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextCompositionEndedEventArgs(fromAbi: abi) +} + +fileprivate func makeTextCompositionStartedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextCompositionStartedEventArgs(fromAbi: abi) +} + +fileprivate func makeTextControlCopyingToClipboardEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextControlCopyingToClipboardEventArgs(fromAbi: abi) +} + +fileprivate func makeTextControlCuttingToClipboardEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextControlCuttingToClipboardEventArgs(fromAbi: abi) +} + +fileprivate func makeTextControlPasteEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextControlPasteEventArgs(fromAbi: abi) +} + +fileprivate func makeToggleMenuFlyoutItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToggleMenuFlyoutItem(fromAbi: abi) +} + +fileprivate func makeToggleSwitchFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToggleSwitch(fromAbi: abi) +} + +fileprivate func makeToolTipFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToolTip(fromAbi: abi) +} + +fileprivate func makeToolTipServiceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToolTipService(fromAbi: abi) +} + +fileprivate func makeTreeViewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeView(fromAbi: abi) +} + +fileprivate func makeTreeViewCollapsedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewCollapsedEventArgs(fromAbi: abi) +} + +fileprivate func makeTreeViewDragItemsCompletedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewDragItemsCompletedEventArgs(fromAbi: abi) +} + +fileprivate func makeTreeViewDragItemsStartingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewDragItemsStartingEventArgs(fromAbi: abi) +} + +fileprivate func makeTreeViewExpandingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewExpandingEventArgs(fromAbi: abi) +} + +fileprivate func makeTreeViewItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewItem(fromAbi: abi) +} + +fileprivate func makeTreeViewItemInvokedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewItemInvokedEventArgs(fromAbi: abi) +} + +fileprivate func makeTreeViewItemTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewItemTemplateSettings(fromAbi: abi) +} + +fileprivate func makeTreeViewListFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewList(fromAbi: abi) +} + +fileprivate func makeTreeViewNodeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewNode(fromAbi: abi) +} + +fileprivate func makeTreeViewSelectionChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TreeViewSelectionChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeUIElementCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UIElementCollection(fromAbi: abi) +} + +fileprivate func makeUniformGridLayoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UniformGridLayout(fromAbi: abi) +} + +fileprivate func makeUserControlFrom(abi: WindowsFoundation.IInspectable) -> Any { + return UserControl(fromAbi: abi) +} + +fileprivate func makeVirtualizingLayoutFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VirtualizingLayout(fromAbi: abi) +} + +fileprivate func makeVirtualizingLayoutContextFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VirtualizingLayoutContext(fromAbi: abi) +} + +fileprivate func makeXamlControlsResourcesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlControlsResources(fromAbi: abi) +} + +fileprivate func makeAppBarTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AppBarTemplateSettings(fromAbi: abi) +} + +fileprivate func makeButtonBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ButtonBase(fromAbi: abi) +} + +fileprivate func makeComboBoxTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ComboBoxTemplateSettings(fromAbi: abi) +} + +fileprivate func makeFlyoutBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlyoutBase(fromAbi: abi) +} + +fileprivate func makeFlyoutBaseClosingEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlyoutBaseClosingEventArgs(fromAbi: abi) +} + +fileprivate func makeFlyoutShowOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FlyoutShowOptions(fromAbi: abi) +} + +fileprivate func makeItemsChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemsChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeListViewItemTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ListViewItemTemplateSettings(fromAbi: abi) +} + +fileprivate func makeMenuFlyoutItemTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MenuFlyoutItemTemplateSettings(fromAbi: abi) +} + +fileprivate func makePopupFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Popup(fromAbi: abi) +} + +fileprivate func makeRangeBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RangeBase(fromAbi: abi) +} + +fileprivate func makeRangeBaseValueChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RangeBaseValueChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollControllerAddScrollVelocityRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollControllerAddScrollVelocityRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollControllerPanRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollControllerPanRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollControllerScrollByRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollControllerScrollByRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollControllerScrollToRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollControllerScrollToRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeScrollPresenterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollPresenter(fromAbi: abi) +} + +fileprivate func makeScrollSnapPointBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ScrollSnapPointBase(fromAbi: abi) +} + +fileprivate func makeSelectorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Selector(fromAbi: abi) +} + +fileprivate func makeSelectorItemFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SelectorItem(fromAbi: abi) +} + +fileprivate func makeSnapPointBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SnapPointBase(fromAbi: abi) +} + +fileprivate func makeSplitViewTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplitViewTemplateSettings(fromAbi: abi) +} + +fileprivate func makeToggleButtonFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToggleButton(fromAbi: abi) +} + +fileprivate func makeToggleSwitchTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToggleSwitchTemplateSettings(fromAbi: abi) +} + +fileprivate func makeToolTipTemplateSettingsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ToolTipTemplateSettings(fromAbi: abi) +} + +fileprivate func makeZoomSnapPointBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ZoomSnapPointBase(fromAbi: abi) +} + +fileprivate func makeBindingFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Binding(fromAbi: abi) +} + +fileprivate func makeBindingBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BindingBase(fromAbi: abi) +} + +fileprivate func makeBindingExpressionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BindingExpression(fromAbi: abi) +} + +fileprivate func makeBindingExpressionBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BindingExpressionBase(fromAbi: abi) +} + +fileprivate func makeItemIndexRangeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ItemIndexRange(fromAbi: abi) +} + +fileprivate func makePropertyChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PropertyChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeRelativeSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RelativeSource(fromAbi: abi) +} + +fileprivate func makeHyperlinkFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Hyperlink(fromAbi: abi) +} + +fileprivate func makeHyperlinkClickEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return HyperlinkClickEventArgs(fromAbi: abi) +} + +fileprivate func makeInlineFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Inline(fromAbi: abi) +} + +fileprivate func makeInlineCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InlineCollection(fromAbi: abi) +} + +fileprivate func makeRunFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Run(fromAbi: abi) +} + +fileprivate func makeSpanFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Span(fromAbi: abi) +} + +fileprivate func makeTextElementFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextElement(fromAbi: abi) +} + +fileprivate func makeTextHighlighterFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextHighlighter(fromAbi: abi) +} + +fileprivate func makeTextPointerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TextPointer(fromAbi: abi) +} + +fileprivate func makeDesktopWindowXamlSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DesktopWindowXamlSource(fromAbi: abi) +} + +fileprivate func makeDesktopWindowXamlSourceGotFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DesktopWindowXamlSourceGotFocusEventArgs(fromAbi: abi) +} + +fileprivate func makeDesktopWindowXamlSourceTakeFocusRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DesktopWindowXamlSourceTakeFocusRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeElementCompositionPreviewFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ElementCompositionPreview(fromAbi: abi) +} + +fileprivate func makeWindowsXamlManagerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WindowsXamlManager(fromAbi: abi) +} + +fileprivate func makeXamlShutdownCompletedOnThreadEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlShutdownCompletedOnThreadEventArgs(fromAbi: abi) +} + +fileprivate func makeXamlSourceFocusNavigationRequestFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlSourceFocusNavigationRequest(fromAbi: abi) +} + +fileprivate func makeXamlSourceFocusNavigationResultFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlSourceFocusNavigationResult(fromAbi: abi) +} + +fileprivate func makeAccessKeyDisplayDismissedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AccessKeyDisplayDismissedEventArgs(fromAbi: abi) +} + +fileprivate func makeAccessKeyDisplayRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AccessKeyDisplayRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeAccessKeyInvokedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AccessKeyInvokedEventArgs(fromAbi: abi) +} + +fileprivate func makeCharacterReceivedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CharacterReceivedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeContextRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContextRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeDoubleTappedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleTappedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeFindNextElementOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FindNextElementOptions(fromAbi: abi) +} + +fileprivate func makeFocusManagerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusManager(fromAbi: abi) +} + +fileprivate func makeFocusManagerGotFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusManagerGotFocusEventArgs(fromAbi: abi) +} + +fileprivate func makeFocusManagerLostFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusManagerLostFocusEventArgs(fromAbi: abi) +} + +fileprivate func makeFocusMovementResultFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FocusMovementResult(fromAbi: abi) +} + +fileprivate func makeGettingFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GettingFocusEventArgs(fromAbi: abi) +} + +fileprivate func makeHoldingRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return HoldingRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeInertiaExpansionBehaviorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InertiaExpansionBehavior(fromAbi: abi) +} + +fileprivate func makeInertiaRotationBehaviorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InertiaRotationBehavior(fromAbi: abi) +} + +fileprivate func makeInertiaTranslationBehaviorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InertiaTranslationBehavior(fromAbi: abi) +} + +fileprivate func makeInputScopeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputScope(fromAbi: abi) +} + +fileprivate func makeInputScopeNameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return InputScopeName(fromAbi: abi) +} + +fileprivate func makeKeyRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeKeyboardAcceleratorFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyboardAccelerator(fromAbi: abi) +} + +fileprivate func makeKeyboardAcceleratorInvokedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyboardAcceleratorInvokedEventArgs(fromAbi: abi) +} + +fileprivate func makeLosingFocusEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LosingFocusEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationCompletedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationCompletedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationDeltaRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationDeltaRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationInertiaStartingRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationInertiaStartingRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationPivotFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationPivot(fromAbi: abi) +} + +fileprivate func makeManipulationStartedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationStartedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeManipulationStartingRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ManipulationStartingRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeNoFocusCandidateFoundEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NoFocusCandidateFoundEventArgs(fromAbi: abi) +} + +fileprivate func makePointerFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Pointer(fromAbi: abi) +} + +fileprivate func makePointerRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeProcessKeyboardAcceleratorEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ProcessKeyboardAcceleratorEventArgs(fromAbi: abi) +} + +fileprivate func makeRightTappedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RightTappedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeTappedRoutedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TappedRoutedEventArgs(fromAbi: abi) +} + +fileprivate func makeNotifyCollectionChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NotifyCollectionChangedEventArgs(fromAbi: abi) +} + +fileprivate func makeXamlBindingHelperFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlBindingHelper(fromAbi: abi) +} + +fileprivate func makeXamlReaderFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlReader(fromAbi: abi) +} + +fileprivate func makeAcrylicBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AcrylicBrush(fromAbi: abi) +} + +fileprivate func makeBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Brush(fromAbi: abi) +} + +fileprivate func makeCacheModeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CacheMode(fromAbi: abi) +} + +fileprivate func makeCompositeTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositeTransform(fromAbi: abi) +} + +fileprivate func makeCompositionTargetFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CompositionTarget(fromAbi: abi) +} + +fileprivate func makeDoubleCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleCollection(fromAbi: abi) +} + +fileprivate func makeFontFamilyFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FontFamily(fromAbi: abi) +} + +fileprivate func makeGeneralTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GeneralTransform(fromAbi: abi) +} + +fileprivate func makeGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Geometry(fromAbi: abi) +} + +fileprivate func makeGradientBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GradientBrush(fromAbi: abi) +} + +fileprivate func makeGradientStopFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GradientStop(fromAbi: abi) +} + +fileprivate func makeGradientStopCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GradientStopCollection(fromAbi: abi) +} + +fileprivate func makeImageSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ImageSource(fromAbi: abi) +} + +fileprivate func makeLineSegmentFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LineSegment(fromAbi: abi) +} + +fileprivate func makeLinearGradientBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LinearGradientBrush(fromAbi: abi) +} + +fileprivate func makeMediaTransportControlsThumbnailRequestedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MediaTransportControlsThumbnailRequestedEventArgs(fromAbi: abi) +} + +fileprivate func makeMicaBackdropFrom(abi: WindowsFoundation.IInspectable) -> Any { + return MicaBackdrop(fromAbi: abi) +} + +fileprivate func makePathFigureFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathFigure(fromAbi: abi) +} + +fileprivate func makePathFigureCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathFigureCollection(fromAbi: abi) +} + +fileprivate func makePathGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathGeometry(fromAbi: abi) +} + +fileprivate func makePathSegmentFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathSegment(fromAbi: abi) +} + +fileprivate func makePathSegmentCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PathSegmentCollection(fromAbi: abi) +} + +fileprivate func makePointCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointCollection(fromAbi: abi) +} + +fileprivate func makePolyBezierSegmentFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PolyBezierSegment(fromAbi: abi) +} + +fileprivate func makeProjectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Projection(fromAbi: abi) +} + +fileprivate func makeRectangleGeometryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RectangleGeometry(fromAbi: abi) +} + +fileprivate func makeRenderedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RenderedEventArgs(fromAbi: abi) +} + +fileprivate func makeShadowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Shadow(fromAbi: abi) +} + +fileprivate func makeSolidColorBrushFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SolidColorBrush(fromAbi: abi) +} + +fileprivate func makeSystemBackdropFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SystemBackdrop(fromAbi: abi) +} + +fileprivate func makeThemeShadowFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ThemeShadow(fromAbi: abi) +} + +fileprivate func makeTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Transform(fromAbi: abi) +} + +fileprivate func makeTranslateTransformFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TranslateTransform(fromAbi: abi) +} + +fileprivate func makeVisualTreeHelperFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VisualTreeHelper(fromAbi: abi) +} + +fileprivate func makeXamlCompositionBrushBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlCompositionBrushBase(fromAbi: abi) +} + +fileprivate func makeXamlLightFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlLight(fromAbi: abi) +} + +fileprivate func makeAddDeleteThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return AddDeleteThemeTransition(fromAbi: abi) +} + +fileprivate func makeBackEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BackEase(fromAbi: abi) +} + +fileprivate func makeBasicConnectedAnimationConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BasicConnectedAnimationConfiguration(fromAbi: abi) +} + +fileprivate func makeBeginStoryboardFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BeginStoryboard(fromAbi: abi) +} + +fileprivate func makeBounceEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BounceEase(fromAbi: abi) +} + +fileprivate func makeCircleEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CircleEase(fromAbi: abi) +} + +fileprivate func makeColorAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColorAnimation(fromAbi: abi) +} + +fileprivate func makeColorAnimationUsingKeyFramesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColorAnimationUsingKeyFrames(fromAbi: abi) +} + +fileprivate func makeColorKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColorKeyFrame(fromAbi: abi) +} + +fileprivate func makeColorKeyFrameCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ColorKeyFrameCollection(fromAbi: abi) +} + +fileprivate func makeCommonNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CommonNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeConnectedAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ConnectedAnimation(fromAbi: abi) +} + +fileprivate func makeConnectedAnimationConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ConnectedAnimationConfiguration(fromAbi: abi) +} + +fileprivate func makeConnectedAnimationServiceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ConnectedAnimationService(fromAbi: abi) +} + +fileprivate func makeContentThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContentThemeTransition(fromAbi: abi) +} + +fileprivate func makeContinuumNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ContinuumNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeCubicEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return CubicEase(fromAbi: abi) +} + +fileprivate func makeDirectConnectedAnimationConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DirectConnectedAnimationConfiguration(fromAbi: abi) +} + +fileprivate func makeDiscreteColorKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DiscreteColorKeyFrame(fromAbi: abi) +} + +fileprivate func makeDiscreteDoubleKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DiscreteDoubleKeyFrame(fromAbi: abi) +} + +fileprivate func makeDiscreteObjectKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DiscreteObjectKeyFrame(fromAbi: abi) +} + +fileprivate func makeDiscretePointKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DiscretePointKeyFrame(fromAbi: abi) +} + +fileprivate func makeDoubleAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleAnimation(fromAbi: abi) +} + +fileprivate func makeDoubleAnimationUsingKeyFramesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleAnimationUsingKeyFrames(fromAbi: abi) +} + +fileprivate func makeDoubleKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleKeyFrame(fromAbi: abi) +} + +fileprivate func makeDoubleKeyFrameCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DoubleKeyFrameCollection(fromAbi: abi) +} + +fileprivate func makeDragItemThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragItemThemeAnimation(fromAbi: abi) +} + +fileprivate func makeDragOverThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DragOverThemeAnimation(fromAbi: abi) +} + +fileprivate func makeDrillInNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DrillInNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeDrillInThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DrillInThemeAnimation(fromAbi: abi) +} + +fileprivate func makeDrillOutThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DrillOutThemeAnimation(fromAbi: abi) +} + +fileprivate func makeDropTargetItemThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DropTargetItemThemeAnimation(fromAbi: abi) +} + +fileprivate func makeEasingColorKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EasingColorKeyFrame(fromAbi: abi) +} + +fileprivate func makeEasingDoubleKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EasingDoubleKeyFrame(fromAbi: abi) +} + +fileprivate func makeEasingFunctionBaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EasingFunctionBase(fromAbi: abi) +} + +fileprivate func makeEasingPointKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EasingPointKeyFrame(fromAbi: abi) +} + +fileprivate func makeEdgeUIThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EdgeUIThemeTransition(fromAbi: abi) +} + +fileprivate func makeElasticEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ElasticEase(fromAbi: abi) +} + +fileprivate func makeEntranceNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EntranceNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeEntranceThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return EntranceThemeTransition(fromAbi: abi) +} + +fileprivate func makeExponentialEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ExponentialEase(fromAbi: abi) +} + +fileprivate func makeFadeInThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FadeInThemeAnimation(fromAbi: abi) +} + +fileprivate func makeFadeOutThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FadeOutThemeAnimation(fromAbi: abi) +} + +fileprivate func makeGravityConnectedAnimationConfigurationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return GravityConnectedAnimationConfiguration(fromAbi: abi) +} + +fileprivate func makeKeySplineFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeySpline(fromAbi: abi) +} + +fileprivate func makeKeyTimeHelperFrom(abi: WindowsFoundation.IInspectable) -> Any { + return KeyTimeHelper(fromAbi: abi) +} + +fileprivate func makeLinearColorKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LinearColorKeyFrame(fromAbi: abi) +} + +fileprivate func makeLinearDoubleKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LinearDoubleKeyFrame(fromAbi: abi) +} + +fileprivate func makeLinearPointKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return LinearPointKeyFrame(fromAbi: abi) +} + +fileprivate func makeNavigationThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NavigationThemeTransition(fromAbi: abi) +} + +fileprivate func makeNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeObjectAnimationUsingKeyFramesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ObjectAnimationUsingKeyFrames(fromAbi: abi) +} + +fileprivate func makeObjectKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ObjectKeyFrame(fromAbi: abi) +} + +fileprivate func makeObjectKeyFrameCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ObjectKeyFrameCollection(fromAbi: abi) +} + +fileprivate func makePaneThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PaneThemeTransition(fromAbi: abi) +} + +fileprivate func makePointAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointAnimation(fromAbi: abi) +} + +fileprivate func makePointAnimationUsingKeyFramesFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointAnimationUsingKeyFrames(fromAbi: abi) +} + +fileprivate func makePointKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointKeyFrame(fromAbi: abi) +} + +fileprivate func makePointKeyFrameCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointKeyFrameCollection(fromAbi: abi) +} + +fileprivate func makePointerDownThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerDownThemeAnimation(fromAbi: abi) +} + +fileprivate func makePointerUpThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PointerUpThemeAnimation(fromAbi: abi) +} + +fileprivate func makePopInThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PopInThemeAnimation(fromAbi: abi) +} + +fileprivate func makePopOutThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PopOutThemeAnimation(fromAbi: abi) +} + +fileprivate func makePopupThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PopupThemeTransition(fromAbi: abi) +} + +fileprivate func makePowerEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PowerEase(fromAbi: abi) +} + +fileprivate func makeQuadraticEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return QuadraticEase(fromAbi: abi) +} + +fileprivate func makeQuarticEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return QuarticEase(fromAbi: abi) +} + +fileprivate func makeQuinticEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return QuinticEase(fromAbi: abi) +} + +fileprivate func makeReorderThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return ReorderThemeTransition(fromAbi: abi) +} + +fileprivate func makeRepeatBehaviorHelperFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RepeatBehaviorHelper(fromAbi: abi) +} + +fileprivate func makeRepositionThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RepositionThemeAnimation(fromAbi: abi) +} + +fileprivate func makeRepositionThemeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RepositionThemeTransition(fromAbi: abi) +} + +fileprivate func makeSineEaseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SineEase(fromAbi: abi) +} + +fileprivate func makeSlideNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SlideNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeSplineColorKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplineColorKeyFrame(fromAbi: abi) +} + +fileprivate func makeSplineDoubleKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplineDoubleKeyFrame(fromAbi: abi) +} + +fileprivate func makeSplinePointKeyFrameFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplinePointKeyFrame(fromAbi: abi) +} + +fileprivate func makeSplitCloseThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplitCloseThemeAnimation(fromAbi: abi) +} + +fileprivate func makeSplitOpenThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SplitOpenThemeAnimation(fromAbi: abi) +} + +fileprivate func makeStoryboardFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Storyboard(fromAbi: abi) +} + +fileprivate func makeSuppressNavigationTransitionInfoFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SuppressNavigationTransitionInfo(fromAbi: abi) +} + +fileprivate func makeSwipeBackThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SwipeBackThemeAnimation(fromAbi: abi) +} + +fileprivate func makeSwipeHintThemeAnimationFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SwipeHintThemeAnimation(fromAbi: abi) +} + +fileprivate func makeTimelineFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Timeline(fromAbi: abi) +} + +fileprivate func makeTimelineCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TimelineCollection(fromAbi: abi) +} + +fileprivate func makeTransitionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Transition(fromAbi: abi) +} + +fileprivate func makeTransitionCollectionFrom(abi: WindowsFoundation.IInspectable) -> Any { + return TransitionCollection(fromAbi: abi) +} + +fileprivate func makeBitmapImageFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BitmapImage(fromAbi: abi) +} + +fileprivate func makeBitmapSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return BitmapSource(fromAbi: abi) +} + +fileprivate func makeDownloadProgressEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return DownloadProgressEventArgs(fromAbi: abi) +} + +fileprivate func makeRenderTargetBitmapFrom(abi: WindowsFoundation.IInspectable) -> Any { + return RenderTargetBitmap(fromAbi: abi) +} + +fileprivate func makeSoftwareBitmapSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SoftwareBitmapSource(fromAbi: abi) +} + +fileprivate func makeSurfaceImageSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SurfaceImageSource(fromAbi: abi) +} + +fileprivate func makeSvgImageSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SvgImageSource(fromAbi: abi) +} + +fileprivate func makeSvgImageSourceFailedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SvgImageSourceFailedEventArgs(fromAbi: abi) +} + +fileprivate func makeSvgImageSourceOpenedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return SvgImageSourceOpenedEventArgs(fromAbi: abi) +} + +fileprivate func makeVirtualSurfaceImageSourceFrom(abi: WindowsFoundation.IInspectable) -> Any { + return VirtualSurfaceImageSource(fromAbi: abi) +} + +fileprivate func makeWriteableBitmapFrom(abi: WindowsFoundation.IInspectable) -> Any { + return WriteableBitmap(fromAbi: abi) +} + +fileprivate func makeXamlRenderingBackgroundTaskFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlRenderingBackgroundTask(fromAbi: abi) +} + +fileprivate func makeTransform3DFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Transform3D(fromAbi: abi) +} + +fileprivate func makeFrameNavigationOptionsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return FrameNavigationOptions(fromAbi: abi) +} + +fileprivate func makeNavigatingCancelEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NavigatingCancelEventArgs(fromAbi: abi) +} + +fileprivate func makeNavigationEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NavigationEventArgs(fromAbi: abi) +} + +fileprivate func makeNavigationFailedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any { + return NavigationFailedEventArgs(fromAbi: abi) +} + +fileprivate func makePageStackEntryFrom(abi: WindowsFoundation.IInspectable) -> Any { + return PageStackEntry(fromAbi: abi) +} + +fileprivate func makeEllipseFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Ellipse(fromAbi: abi) +} + +fileprivate func makePathFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Path(fromAbi: abi) +} + +fileprivate func makeRectangleFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Rectangle(fromAbi: abi) +} + +fileprivate func makeShapeFrom(abi: WindowsFoundation.IInspectable) -> Any { + return Shape(fromAbi: abi) +} + +fileprivate func makeXamlControlsXamlMetaDataProviderFrom(abi: WindowsFoundation.IInspectable) -> Any { + return XamlControlsXamlMetaDataProvider(fromAbi: abi) +} + +@_spi(__MakeFromAbi_DoNotImport) +public class __MakeFromAbi: MakeFromAbi { + public static func from(typeName: String, abi: WindowsFoundation.IInspectable) -> Any? { + switch typeName { + case "IDataTemplateExtension": return makeIDataTemplateExtensionFrom(abi: abi) + case "IElementFactory": return makeIElementFactoryFrom(abi: abi) + case "IInsertionPanel": return makeIInsertionPanelFrom(abi: abi) + case "IItemContainerMapping": return makeIItemContainerMappingFrom(abi: abi) + case "IKeyIndexMapping": return makeIKeyIndexMappingFrom(abi: abi) + case "INavigate": return makeINavigateFrom(abi: abi) + case "IScrollAnchorProvider": return makeIScrollAnchorProviderFrom(abi: abi) + case "ISemanticZoomInformation": return makeISemanticZoomInformationFrom(abi: abi) + case "IScrollController": return makeIScrollControllerFrom(abi: abi) + case "IScrollControllerPanningInfo": return makeIScrollControllerPanningInfoFrom(abi: abi) + case "IScrollSnapPointsInfo": return makeIScrollSnapPointsInfoFrom(abi: abi) + case "INotifyPropertyChanged": return makeINotifyPropertyChangedFrom(abi: abi) + case "IValueConverter": return makeIValueConverterFrom(abi: abi) + case "ICommand": return makeICommandFrom(abi: abi) + case "IBindableIterable": return makeIBindableIterableFrom(abi: abi) + case "IBindableIterator": return makeIBindableIteratorFrom(abi: abi) + case "IBindableVector": return makeIBindableVectorFrom(abi: abi) + case "IBindableVectorView": return makeIBindableVectorViewFrom(abi: abi) + case "INotifyCollectionChanged": return makeINotifyCollectionChangedFrom(abi: abi) + case "IComponentConnector": return makeIComponentConnectorFrom(abi: abi) + case "IDataTemplateComponent": return makeIDataTemplateComponentFrom(abi: abi) + case "IXamlMember": return makeIXamlMemberFrom(abi: abi) + case "IXamlMetadataProvider": return makeIXamlMetadataProviderFrom(abi: abi) + case "IXamlType": return makeIXamlTypeFrom(abi: abi) + case "Application": return makeApplicationFrom(abi: abi) + case "ApplicationInitializationCallbackParams": return makeApplicationInitializationCallbackParamsFrom(abi: abi) + case "BindingFailedEventArgs": return makeBindingFailedEventArgsFrom(abi: abi) + case "BringIntoViewOptions": return makeBringIntoViewOptionsFrom(abi: abi) + case "BringIntoViewRequestedEventArgs": return makeBringIntoViewRequestedEventArgsFrom(abi: abi) + case "BrushTransition": return makeBrushTransitionFrom(abi: abi) + case "DataContextChangedEventArgs": return makeDataContextChangedEventArgsFrom(abi: abi) + case "DataTemplate": return makeDataTemplateFrom(abi: abi) + case "DebugSettings": return makeDebugSettingsFrom(abi: abi) + case "DependencyObject": return makeDependencyObjectFrom(abi: abi) + case "DependencyProperty": return makeDependencyPropertyFrom(abi: abi) + case "DependencyPropertyChangedEventArgs": return makeDependencyPropertyChangedEventArgsFrom(abi: abi) + case "DragEventArgs": return makeDragEventArgsFrom(abi: abi) + case "DragOperationDeferral": return makeDragOperationDeferralFrom(abi: abi) + case "DragStartingEventArgs": return makeDragStartingEventArgsFrom(abi: abi) + case "DragUI": return makeDragUIFrom(abi: abi) + case "DragUIOverride": return makeDragUIOverrideFrom(abi: abi) + case "DropCompletedEventArgs": return makeDropCompletedEventArgsFrom(abi: abi) + case "EffectiveViewportChangedEventArgs": return makeEffectiveViewportChangedEventArgsFrom(abi: abi) + case "ElementFactoryGetArgs": return makeElementFactoryGetArgsFrom(abi: abi) + case "ElementFactoryRecycleArgs": return makeElementFactoryRecycleArgsFrom(abi: abi) + case "ExceptionRoutedEventArgs": return makeExceptionRoutedEventArgsFrom(abi: abi) + case "FrameworkElement": return makeFrameworkElementFrom(abi: abi) + case "FrameworkTemplate": return makeFrameworkTemplateFrom(abi: abi) + case "LaunchActivatedEventArgs": return makeLaunchActivatedEventArgsFrom(abi: abi) + case "PropertyMetadata": return makePropertyMetadataFrom(abi: abi) + case "PropertyPath": return makePropertyPathFrom(abi: abi) + case "ResourceDictionary": return makeResourceDictionaryFrom(abi: abi) + case "ResourceManagerRequestedEventArgs": return makeResourceManagerRequestedEventArgsFrom(abi: abi) + case "RoutedEvent": return makeRoutedEventFrom(abi: abi) + case "RoutedEventArgs": return makeRoutedEventArgsFrom(abi: abi) + case "ScalarTransition": return makeScalarTransitionFrom(abi: abi) + case "Setter": return makeSetterFrom(abi: abi) + case "SetterBase": return makeSetterBaseFrom(abi: abi) + case "SetterBaseCollection": return makeSetterBaseCollectionFrom(abi: abi) + case "SizeChangedEventArgs": return makeSizeChangedEventArgsFrom(abi: abi) + case "Style": return makeStyleFrom(abi: abi) + case "TargetPropertyPath": return makeTargetPropertyPathFrom(abi: abi) + case "TriggerAction": return makeTriggerActionFrom(abi: abi) + case "TriggerBase": return makeTriggerBaseFrom(abi: abi) + case "TriggerCollection": return makeTriggerCollectionFrom(abi: abi) + case "UIElement": return makeUIElementFrom(abi: abi) + case "UIElementWeakCollection": return makeUIElementWeakCollectionFrom(abi: abi) + case "UnhandledExceptionEventArgs": return makeUnhandledExceptionEventArgsFrom(abi: abi) + case "Vector3Transition": return makeVector3TransitionFrom(abi: abi) + case "Window": return makeWindowFrom(abi: abi) + case "WindowActivatedEventArgs": return makeWindowActivatedEventArgsFrom(abi: abi) + case "WindowEventArgs": return makeWindowEventArgsFrom(abi: abi) + case "WindowSizeChangedEventArgs": return makeWindowSizeChangedEventArgsFrom(abi: abi) + case "WindowVisibilityChangedEventArgs": return makeWindowVisibilityChangedEventArgsFrom(abi: abi) + case "XamlResourceReferenceFailedEventArgs": return makeXamlResourceReferenceFailedEventArgsFrom(abi: abi) + case "XamlRoot": return makeXamlRootFrom(abi: abi) + case "XamlRootChangedEventArgs": return makeXamlRootChangedEventArgsFrom(abi: abi) + case "AutomationAnnotation": return makeAutomationAnnotationFrom(abi: abi) + case "AutomationProperties": return makeAutomationPropertiesFrom(abi: abi) + case "AutomationProperty": return makeAutomationPropertyFrom(abi: abi) + case "AutomationPeer": return makeAutomationPeerFrom(abi: abi) + case "AutomationPeerAnnotation": return makeAutomationPeerAnnotationFrom(abi: abi) + case "IRawElementProviderSimple": return makeIRawElementProviderSimpleFrom(abi: abi) + case "AnchorRequestedEventArgs": return makeAnchorRequestedEventArgsFrom(abi: abi) + case "AppBar": return makeAppBarFrom(abi: abi) + case "BitmapIcon": return makeBitmapIconFrom(abi: abi) + case "Border": return makeBorderFrom(abi: abi) + case "Button": return makeButtonFrom(abi: abi) + case "CandidateWindowBoundsChangedEventArgs": return makeCandidateWindowBoundsChangedEventArgsFrom(abi: abi) + case "Canvas": return makeCanvasFrom(abi: abi) + case "CheckBox": return makeCheckBoxFrom(abi: abi) + case "ChoosingGroupHeaderContainerEventArgs": return makeChoosingGroupHeaderContainerEventArgsFrom(abi: abi) + case "ChoosingItemContainerEventArgs": return makeChoosingItemContainerEventArgsFrom(abi: abi) + case "ColumnDefinition": return makeColumnDefinitionFrom(abi: abi) + case "ColumnDefinitionCollection": return makeColumnDefinitionCollectionFrom(abi: abi) + case "ComboBox": return makeComboBoxFrom(abi: abi) + case "ComboBoxTextSubmittedEventArgs": return makeComboBoxTextSubmittedEventArgsFrom(abi: abi) + case "ContainerContentChangingEventArgs": return makeContainerContentChangingEventArgsFrom(abi: abi) + case "ContentControl": return makeContentControlFrom(abi: abi) + case "ContentDialog": return makeContentDialogFrom(abi: abi) + case "ContentDialogButtonClickDeferral": return makeContentDialogButtonClickDeferralFrom(abi: abi) + case "ContentDialogButtonClickEventArgs": return makeContentDialogButtonClickEventArgsFrom(abi: abi) + case "ContentDialogClosedEventArgs": return makeContentDialogClosedEventArgsFrom(abi: abi) + case "ContentDialogClosingDeferral": return makeContentDialogClosingDeferralFrom(abi: abi) + case "ContentDialogClosingEventArgs": return makeContentDialogClosingEventArgsFrom(abi: abi) + case "ContentDialogOpenedEventArgs": return makeContentDialogOpenedEventArgsFrom(abi: abi) + case "ContentPresenter": return makeContentPresenterFrom(abi: abi) + case "ContextMenuEventArgs": return makeContextMenuEventArgsFrom(abi: abi) + case "Control": return makeControlFrom(abi: abi) + case "ControlTemplate": return makeControlTemplateFrom(abi: abi) + case "DataTemplateSelector": return makeDataTemplateSelectorFrom(abi: abi) + case "DragItemsCompletedEventArgs": return makeDragItemsCompletedEventArgsFrom(abi: abi) + case "DragItemsStartingEventArgs": return makeDragItemsStartingEventArgsFrom(abi: abi) + case "FlipView": return makeFlipViewFrom(abi: abi) + case "FlipViewItem": return makeFlipViewItemFrom(abi: abi) + case "Flyout": return makeFlyoutFrom(abi: abi) + case "FlyoutPresenter": return makeFlyoutPresenterFrom(abi: abi) + case "FocusDisengagedEventArgs": return makeFocusDisengagedEventArgsFrom(abi: abi) + case "FocusEngagedEventArgs": return makeFocusEngagedEventArgsFrom(abi: abi) + case "FontIcon": return makeFontIconFrom(abi: abi) + case "FontIconSource": return makeFontIconSourceFrom(abi: abi) + case "Frame": return makeFrameFrom(abi: abi) + case "Grid": return makeGridFrom(abi: abi) + case "GridView": return makeGridViewFrom(abi: abi) + case "GroupStyle": return makeGroupStyleFrom(abi: abi) + case "GroupStyleSelector": return makeGroupStyleSelectorFrom(abi: abi) + case "HyperlinkButton": return makeHyperlinkButtonFrom(abi: abi) + case "IconElement": return makeIconElementFrom(abi: abi) + case "IconSource": return makeIconSourceFrom(abi: abi) + case "IconSourceElement": return makeIconSourceElementFrom(abi: abi) + case "Image": return makeImageFrom(abi: abi) + case "ImageIcon": return makeImageIconFrom(abi: abi) + case "InfoBar": return makeInfoBarFrom(abi: abi) + case "InfoBarClosedEventArgs": return makeInfoBarClosedEventArgsFrom(abi: abi) + case "InfoBarClosingEventArgs": return makeInfoBarClosingEventArgsFrom(abi: abi) + case "InfoBarTemplateSettings": return makeInfoBarTemplateSettingsFrom(abi: abi) + case "IsTextTrimmedChangedEventArgs": return makeIsTextTrimmedChangedEventArgsFrom(abi: abi) + case "ItemClickEventArgs": return makeItemClickEventArgsFrom(abi: abi) + case "ItemCollection": return makeItemCollectionFrom(abi: abi) + case "ItemCollectionTransition": return makeItemCollectionTransitionFrom(abi: abi) + case "ItemCollectionTransitionCompletedEventArgs": return makeItemCollectionTransitionCompletedEventArgsFrom(abi: abi) + case "ItemCollectionTransitionProgress": return makeItemCollectionTransitionProgressFrom(abi: abi) + case "ItemCollectionTransitionProvider": return makeItemCollectionTransitionProviderFrom(abi: abi) + case "ItemContainerGenerator": return makeItemContainerGeneratorFrom(abi: abi) + case "ItemsControl": return makeItemsControlFrom(abi: abi) + case "ItemsPanelTemplate": return makeItemsPanelTemplateFrom(abi: abi) + case "ItemsRepeater": return makeItemsRepeaterFrom(abi: abi) + case "ItemsRepeaterElementClearingEventArgs": return makeItemsRepeaterElementClearingEventArgsFrom(abi: abi) + case "ItemsRepeaterElementIndexChangedEventArgs": return makeItemsRepeaterElementIndexChangedEventArgsFrom(abi: abi) + case "ItemsRepeaterElementPreparedEventArgs": return makeItemsRepeaterElementPreparedEventArgsFrom(abi: abi) + case "ItemsSourceView": return makeItemsSourceViewFrom(abi: abi) + case "Layout": return makeLayoutFrom(abi: abi) + case "LayoutContext": return makeLayoutContextFrom(abi: abi) + case "ListBox": return makeListBoxFrom(abi: abi) + case "ListBoxItem": return makeListBoxItemFrom(abi: abi) + case "ListView": return makeListViewFrom(abi: abi) + case "ListViewBase": return makeListViewBaseFrom(abi: abi) + case "ListViewBaseHeaderItem": return makeListViewBaseHeaderItemFrom(abi: abi) + case "ListViewItem": return makeListViewItemFrom(abi: abi) + case "MediaPlayerElement": return makeMediaPlayerElementFrom(abi: abi) + case "MediaTransportControls": return makeMediaTransportControlsFrom(abi: abi) + case "MenuBar": return makeMenuBarFrom(abi: abi) + case "MenuBarItem": return makeMenuBarItemFrom(abi: abi) + case "MenuFlyout": return makeMenuFlyoutFrom(abi: abi) + case "MenuFlyoutItem": return makeMenuFlyoutItemFrom(abi: abi) + case "MenuFlyoutItemBase": return makeMenuFlyoutItemBaseFrom(abi: abi) + case "MenuFlyoutSeparator": return makeMenuFlyoutSeparatorFrom(abi: abi) + case "MenuFlyoutSubItem": return makeMenuFlyoutSubItemFrom(abi: abi) + case "Page": return makePageFrom(abi: abi) + case "Panel": return makePanelFrom(abi: abi) + case "PasswordBox": return makePasswordBoxFrom(abi: abi) + case "PasswordBoxPasswordChangingEventArgs": return makePasswordBoxPasswordChangingEventArgsFrom(abi: abi) + case "PipsPager": return makePipsPagerFrom(abi: abi) + case "PipsPagerSelectedIndexChangedEventArgs": return makePipsPagerSelectedIndexChangedEventArgsFrom(abi: abi) + case "PipsPagerTemplateSettings": return makePipsPagerTemplateSettingsFrom(abi: abi) + case "ProgressBar": return makeProgressBarFrom(abi: abi) + case "ProgressBarTemplateSettings": return makeProgressBarTemplateSettingsFrom(abi: abi) + case "ProgressRing": return makeProgressRingFrom(abi: abi) + case "ProgressRingTemplateSettings": return makeProgressRingTemplateSettingsFrom(abi: abi) + case "RadioButton": return makeRadioButtonFrom(abi: abi) + case "RadioButtons": return makeRadioButtonsFrom(abi: abi) + case "RelativePanel": return makeRelativePanelFrom(abi: abi) + case "RowDefinition": return makeRowDefinitionFrom(abi: abi) + case "RowDefinitionCollection": return makeRowDefinitionCollectionFrom(abi: abi) + case "ScrollView": return makeScrollViewFrom(abi: abi) + case "ScrollViewer": return makeScrollViewerFrom(abi: abi) + case "ScrollViewerView": return makeScrollViewerViewFrom(abi: abi) + case "ScrollViewerViewChangedEventArgs": return makeScrollViewerViewChangedEventArgsFrom(abi: abi) + case "ScrollViewerViewChangingEventArgs": return makeScrollViewerViewChangingEventArgsFrom(abi: abi) + case "ScrollingAnchorRequestedEventArgs": return makeScrollingAnchorRequestedEventArgsFrom(abi: abi) + case "ScrollingBringingIntoViewEventArgs": return makeScrollingBringingIntoViewEventArgsFrom(abi: abi) + case "ScrollingScrollAnimationStartingEventArgs": return makeScrollingScrollAnimationStartingEventArgsFrom(abi: abi) + case "ScrollingScrollCompletedEventArgs": return makeScrollingScrollCompletedEventArgsFrom(abi: abi) + case "ScrollingScrollOptions": return makeScrollingScrollOptionsFrom(abi: abi) + case "ScrollingZoomAnimationStartingEventArgs": return makeScrollingZoomAnimationStartingEventArgsFrom(abi: abi) + case "ScrollingZoomCompletedEventArgs": return makeScrollingZoomCompletedEventArgsFrom(abi: abi) + case "ScrollingZoomOptions": return makeScrollingZoomOptionsFrom(abi: abi) + case "SelectionChangedEventArgs": return makeSelectionChangedEventArgsFrom(abi: abi) + case "SemanticZoom": return makeSemanticZoomFrom(abi: abi) + case "SemanticZoomLocation": return makeSemanticZoomLocationFrom(abi: abi) + case "SemanticZoomViewChangedEventArgs": return makeSemanticZoomViewChangedEventArgsFrom(abi: abi) + case "Slider": return makeSliderFrom(abi: abi) + case "SplitView": return makeSplitViewFrom(abi: abi) + case "SplitViewPaneClosingEventArgs": return makeSplitViewPaneClosingEventArgsFrom(abi: abi) + case "StackLayout": return makeStackLayoutFrom(abi: abi) + case "StackPanel": return makeStackPanelFrom(abi: abi) + case "StyleSelector": return makeStyleSelectorFrom(abi: abi) + case "SwapChainPanel": return makeSwapChainPanelFrom(abi: abi) + case "TeachingTip": return makeTeachingTipFrom(abi: abi) + case "TeachingTipClosedEventArgs": return makeTeachingTipClosedEventArgsFrom(abi: abi) + case "TeachingTipClosingEventArgs": return makeTeachingTipClosingEventArgsFrom(abi: abi) + case "TeachingTipTemplateSettings": return makeTeachingTipTemplateSettingsFrom(abi: abi) + case "TextBlock": return makeTextBlockFrom(abi: abi) + case "TextBox": return makeTextBoxFrom(abi: abi) + case "TextBoxBeforeTextChangingEventArgs": return makeTextBoxBeforeTextChangingEventArgsFrom(abi: abi) + case "TextBoxSelectionChangingEventArgs": return makeTextBoxSelectionChangingEventArgsFrom(abi: abi) + case "TextBoxTextChangingEventArgs": return makeTextBoxTextChangingEventArgsFrom(abi: abi) + case "TextChangedEventArgs": return makeTextChangedEventArgsFrom(abi: abi) + case "TextCompositionChangedEventArgs": return makeTextCompositionChangedEventArgsFrom(abi: abi) + case "TextCompositionEndedEventArgs": return makeTextCompositionEndedEventArgsFrom(abi: abi) + case "TextCompositionStartedEventArgs": return makeTextCompositionStartedEventArgsFrom(abi: abi) + case "TextControlCopyingToClipboardEventArgs": return makeTextControlCopyingToClipboardEventArgsFrom(abi: abi) + case "TextControlCuttingToClipboardEventArgs": return makeTextControlCuttingToClipboardEventArgsFrom(abi: abi) + case "TextControlPasteEventArgs": return makeTextControlPasteEventArgsFrom(abi: abi) + case "ToggleMenuFlyoutItem": return makeToggleMenuFlyoutItemFrom(abi: abi) + case "ToggleSwitch": return makeToggleSwitchFrom(abi: abi) + case "ToolTip": return makeToolTipFrom(abi: abi) + case "ToolTipService": return makeToolTipServiceFrom(abi: abi) + case "TreeView": return makeTreeViewFrom(abi: abi) + case "TreeViewCollapsedEventArgs": return makeTreeViewCollapsedEventArgsFrom(abi: abi) + case "TreeViewDragItemsCompletedEventArgs": return makeTreeViewDragItemsCompletedEventArgsFrom(abi: abi) + case "TreeViewDragItemsStartingEventArgs": return makeTreeViewDragItemsStartingEventArgsFrom(abi: abi) + case "TreeViewExpandingEventArgs": return makeTreeViewExpandingEventArgsFrom(abi: abi) + case "TreeViewItem": return makeTreeViewItemFrom(abi: abi) + case "TreeViewItemInvokedEventArgs": return makeTreeViewItemInvokedEventArgsFrom(abi: abi) + case "TreeViewItemTemplateSettings": return makeTreeViewItemTemplateSettingsFrom(abi: abi) + case "TreeViewList": return makeTreeViewListFrom(abi: abi) + case "TreeViewNode": return makeTreeViewNodeFrom(abi: abi) + case "TreeViewSelectionChangedEventArgs": return makeTreeViewSelectionChangedEventArgsFrom(abi: abi) + case "UIElementCollection": return makeUIElementCollectionFrom(abi: abi) + case "UniformGridLayout": return makeUniformGridLayoutFrom(abi: abi) + case "UserControl": return makeUserControlFrom(abi: abi) + case "VirtualizingLayout": return makeVirtualizingLayoutFrom(abi: abi) + case "VirtualizingLayoutContext": return makeVirtualizingLayoutContextFrom(abi: abi) + case "XamlControlsResources": return makeXamlControlsResourcesFrom(abi: abi) + case "AppBarTemplateSettings": return makeAppBarTemplateSettingsFrom(abi: abi) + case "ButtonBase": return makeButtonBaseFrom(abi: abi) + case "ComboBoxTemplateSettings": return makeComboBoxTemplateSettingsFrom(abi: abi) + case "FlyoutBase": return makeFlyoutBaseFrom(abi: abi) + case "FlyoutBaseClosingEventArgs": return makeFlyoutBaseClosingEventArgsFrom(abi: abi) + case "FlyoutShowOptions": return makeFlyoutShowOptionsFrom(abi: abi) + case "ItemsChangedEventArgs": return makeItemsChangedEventArgsFrom(abi: abi) + case "ListViewItemTemplateSettings": return makeListViewItemTemplateSettingsFrom(abi: abi) + case "MenuFlyoutItemTemplateSettings": return makeMenuFlyoutItemTemplateSettingsFrom(abi: abi) + case "Popup": return makePopupFrom(abi: abi) + case "RangeBase": return makeRangeBaseFrom(abi: abi) + case "RangeBaseValueChangedEventArgs": return makeRangeBaseValueChangedEventArgsFrom(abi: abi) + case "ScrollControllerAddScrollVelocityRequestedEventArgs": return makeScrollControllerAddScrollVelocityRequestedEventArgsFrom(abi: abi) + case "ScrollControllerPanRequestedEventArgs": return makeScrollControllerPanRequestedEventArgsFrom(abi: abi) + case "ScrollControllerScrollByRequestedEventArgs": return makeScrollControllerScrollByRequestedEventArgsFrom(abi: abi) + case "ScrollControllerScrollToRequestedEventArgs": return makeScrollControllerScrollToRequestedEventArgsFrom(abi: abi) + case "ScrollPresenter": return makeScrollPresenterFrom(abi: abi) + case "ScrollSnapPointBase": return makeScrollSnapPointBaseFrom(abi: abi) + case "Selector": return makeSelectorFrom(abi: abi) + case "SelectorItem": return makeSelectorItemFrom(abi: abi) + case "SnapPointBase": return makeSnapPointBaseFrom(abi: abi) + case "SplitViewTemplateSettings": return makeSplitViewTemplateSettingsFrom(abi: abi) + case "ToggleButton": return makeToggleButtonFrom(abi: abi) + case "ToggleSwitchTemplateSettings": return makeToggleSwitchTemplateSettingsFrom(abi: abi) + case "ToolTipTemplateSettings": return makeToolTipTemplateSettingsFrom(abi: abi) + case "ZoomSnapPointBase": return makeZoomSnapPointBaseFrom(abi: abi) + case "Binding": return makeBindingFrom(abi: abi) + case "BindingBase": return makeBindingBaseFrom(abi: abi) + case "BindingExpression": return makeBindingExpressionFrom(abi: abi) + case "BindingExpressionBase": return makeBindingExpressionBaseFrom(abi: abi) + case "ItemIndexRange": return makeItemIndexRangeFrom(abi: abi) + case "PropertyChangedEventArgs": return makePropertyChangedEventArgsFrom(abi: abi) + case "RelativeSource": return makeRelativeSourceFrom(abi: abi) + case "Hyperlink": return makeHyperlinkFrom(abi: abi) + case "HyperlinkClickEventArgs": return makeHyperlinkClickEventArgsFrom(abi: abi) + case "Inline": return makeInlineFrom(abi: abi) + case "InlineCollection": return makeInlineCollectionFrom(abi: abi) + case "Run": return makeRunFrom(abi: abi) + case "Span": return makeSpanFrom(abi: abi) + case "TextElement": return makeTextElementFrom(abi: abi) + case "TextHighlighter": return makeTextHighlighterFrom(abi: abi) + case "TextPointer": return makeTextPointerFrom(abi: abi) + case "DesktopWindowXamlSource": return makeDesktopWindowXamlSourceFrom(abi: abi) + case "DesktopWindowXamlSourceGotFocusEventArgs": return makeDesktopWindowXamlSourceGotFocusEventArgsFrom(abi: abi) + case "DesktopWindowXamlSourceTakeFocusRequestedEventArgs": return makeDesktopWindowXamlSourceTakeFocusRequestedEventArgsFrom(abi: abi) + case "ElementCompositionPreview": return makeElementCompositionPreviewFrom(abi: abi) + case "WindowsXamlManager": return makeWindowsXamlManagerFrom(abi: abi) + case "XamlShutdownCompletedOnThreadEventArgs": return makeXamlShutdownCompletedOnThreadEventArgsFrom(abi: abi) + case "XamlSourceFocusNavigationRequest": return makeXamlSourceFocusNavigationRequestFrom(abi: abi) + case "XamlSourceFocusNavigationResult": return makeXamlSourceFocusNavigationResultFrom(abi: abi) + case "AccessKeyDisplayDismissedEventArgs": return makeAccessKeyDisplayDismissedEventArgsFrom(abi: abi) + case "AccessKeyDisplayRequestedEventArgs": return makeAccessKeyDisplayRequestedEventArgsFrom(abi: abi) + case "AccessKeyInvokedEventArgs": return makeAccessKeyInvokedEventArgsFrom(abi: abi) + case "CharacterReceivedRoutedEventArgs": return makeCharacterReceivedRoutedEventArgsFrom(abi: abi) + case "ContextRequestedEventArgs": return makeContextRequestedEventArgsFrom(abi: abi) + case "DoubleTappedRoutedEventArgs": return makeDoubleTappedRoutedEventArgsFrom(abi: abi) + case "FindNextElementOptions": return makeFindNextElementOptionsFrom(abi: abi) + case "FocusManager": return makeFocusManagerFrom(abi: abi) + case "FocusManagerGotFocusEventArgs": return makeFocusManagerGotFocusEventArgsFrom(abi: abi) + case "FocusManagerLostFocusEventArgs": return makeFocusManagerLostFocusEventArgsFrom(abi: abi) + case "FocusMovementResult": return makeFocusMovementResultFrom(abi: abi) + case "GettingFocusEventArgs": return makeGettingFocusEventArgsFrom(abi: abi) + case "HoldingRoutedEventArgs": return makeHoldingRoutedEventArgsFrom(abi: abi) + case "InertiaExpansionBehavior": return makeInertiaExpansionBehaviorFrom(abi: abi) + case "InertiaRotationBehavior": return makeInertiaRotationBehaviorFrom(abi: abi) + case "InertiaTranslationBehavior": return makeInertiaTranslationBehaviorFrom(abi: abi) + case "InputScope": return makeInputScopeFrom(abi: abi) + case "InputScopeName": return makeInputScopeNameFrom(abi: abi) + case "KeyRoutedEventArgs": return makeKeyRoutedEventArgsFrom(abi: abi) + case "KeyboardAccelerator": return makeKeyboardAcceleratorFrom(abi: abi) + case "KeyboardAcceleratorInvokedEventArgs": return makeKeyboardAcceleratorInvokedEventArgsFrom(abi: abi) + case "LosingFocusEventArgs": return makeLosingFocusEventArgsFrom(abi: abi) + case "ManipulationCompletedRoutedEventArgs": return makeManipulationCompletedRoutedEventArgsFrom(abi: abi) + case "ManipulationDeltaRoutedEventArgs": return makeManipulationDeltaRoutedEventArgsFrom(abi: abi) + case "ManipulationInertiaStartingRoutedEventArgs": return makeManipulationInertiaStartingRoutedEventArgsFrom(abi: abi) + case "ManipulationPivot": return makeManipulationPivotFrom(abi: abi) + case "ManipulationStartedRoutedEventArgs": return makeManipulationStartedRoutedEventArgsFrom(abi: abi) + case "ManipulationStartingRoutedEventArgs": return makeManipulationStartingRoutedEventArgsFrom(abi: abi) + case "NoFocusCandidateFoundEventArgs": return makeNoFocusCandidateFoundEventArgsFrom(abi: abi) + case "Pointer": return makePointerFrom(abi: abi) + case "PointerRoutedEventArgs": return makePointerRoutedEventArgsFrom(abi: abi) + case "ProcessKeyboardAcceleratorEventArgs": return makeProcessKeyboardAcceleratorEventArgsFrom(abi: abi) + case "RightTappedRoutedEventArgs": return makeRightTappedRoutedEventArgsFrom(abi: abi) + case "TappedRoutedEventArgs": return makeTappedRoutedEventArgsFrom(abi: abi) + case "NotifyCollectionChangedEventArgs": return makeNotifyCollectionChangedEventArgsFrom(abi: abi) + case "XamlBindingHelper": return makeXamlBindingHelperFrom(abi: abi) + case "XamlReader": return makeXamlReaderFrom(abi: abi) + case "AcrylicBrush": return makeAcrylicBrushFrom(abi: abi) + case "Brush": return makeBrushFrom(abi: abi) + case "CacheMode": return makeCacheModeFrom(abi: abi) + case "CompositeTransform": return makeCompositeTransformFrom(abi: abi) + case "CompositionTarget": return makeCompositionTargetFrom(abi: abi) + case "DoubleCollection": return makeDoubleCollectionFrom(abi: abi) + case "FontFamily": return makeFontFamilyFrom(abi: abi) + case "GeneralTransform": return makeGeneralTransformFrom(abi: abi) + case "Geometry": return makeGeometryFrom(abi: abi) + case "GradientBrush": return makeGradientBrushFrom(abi: abi) + case "GradientStop": return makeGradientStopFrom(abi: abi) + case "GradientStopCollection": return makeGradientStopCollectionFrom(abi: abi) + case "ImageSource": return makeImageSourceFrom(abi: abi) + case "LineSegment": return makeLineSegmentFrom(abi: abi) + case "LinearGradientBrush": return makeLinearGradientBrushFrom(abi: abi) + case "MediaTransportControlsThumbnailRequestedEventArgs": return makeMediaTransportControlsThumbnailRequestedEventArgsFrom(abi: abi) + case "MicaBackdrop": return makeMicaBackdropFrom(abi: abi) + case "PathFigure": return makePathFigureFrom(abi: abi) + case "PathFigureCollection": return makePathFigureCollectionFrom(abi: abi) + case "PathGeometry": return makePathGeometryFrom(abi: abi) + case "PathSegment": return makePathSegmentFrom(abi: abi) + case "PathSegmentCollection": return makePathSegmentCollectionFrom(abi: abi) + case "PointCollection": return makePointCollectionFrom(abi: abi) + case "PolyBezierSegment": return makePolyBezierSegmentFrom(abi: abi) + case "Projection": return makeProjectionFrom(abi: abi) + case "RectangleGeometry": return makeRectangleGeometryFrom(abi: abi) + case "RenderedEventArgs": return makeRenderedEventArgsFrom(abi: abi) + case "Shadow": return makeShadowFrom(abi: abi) + case "SolidColorBrush": return makeSolidColorBrushFrom(abi: abi) + case "SystemBackdrop": return makeSystemBackdropFrom(abi: abi) + case "ThemeShadow": return makeThemeShadowFrom(abi: abi) + case "Transform": return makeTransformFrom(abi: abi) + case "TranslateTransform": return makeTranslateTransformFrom(abi: abi) + case "VisualTreeHelper": return makeVisualTreeHelperFrom(abi: abi) + case "XamlCompositionBrushBase": return makeXamlCompositionBrushBaseFrom(abi: abi) + case "XamlLight": return makeXamlLightFrom(abi: abi) + case "AddDeleteThemeTransition": return makeAddDeleteThemeTransitionFrom(abi: abi) + case "BackEase": return makeBackEaseFrom(abi: abi) + case "BasicConnectedAnimationConfiguration": return makeBasicConnectedAnimationConfigurationFrom(abi: abi) + case "BeginStoryboard": return makeBeginStoryboardFrom(abi: abi) + case "BounceEase": return makeBounceEaseFrom(abi: abi) + case "CircleEase": return makeCircleEaseFrom(abi: abi) + case "ColorAnimation": return makeColorAnimationFrom(abi: abi) + case "ColorAnimationUsingKeyFrames": return makeColorAnimationUsingKeyFramesFrom(abi: abi) + case "ColorKeyFrame": return makeColorKeyFrameFrom(abi: abi) + case "ColorKeyFrameCollection": return makeColorKeyFrameCollectionFrom(abi: abi) + case "CommonNavigationTransitionInfo": return makeCommonNavigationTransitionInfoFrom(abi: abi) + case "ConnectedAnimation": return makeConnectedAnimationFrom(abi: abi) + case "ConnectedAnimationConfiguration": return makeConnectedAnimationConfigurationFrom(abi: abi) + case "ConnectedAnimationService": return makeConnectedAnimationServiceFrom(abi: abi) + case "ContentThemeTransition": return makeContentThemeTransitionFrom(abi: abi) + case "ContinuumNavigationTransitionInfo": return makeContinuumNavigationTransitionInfoFrom(abi: abi) + case "CubicEase": return makeCubicEaseFrom(abi: abi) + case "DirectConnectedAnimationConfiguration": return makeDirectConnectedAnimationConfigurationFrom(abi: abi) + case "DiscreteColorKeyFrame": return makeDiscreteColorKeyFrameFrom(abi: abi) + case "DiscreteDoubleKeyFrame": return makeDiscreteDoubleKeyFrameFrom(abi: abi) + case "DiscreteObjectKeyFrame": return makeDiscreteObjectKeyFrameFrom(abi: abi) + case "DiscretePointKeyFrame": return makeDiscretePointKeyFrameFrom(abi: abi) + case "DoubleAnimation": return makeDoubleAnimationFrom(abi: abi) + case "DoubleAnimationUsingKeyFrames": return makeDoubleAnimationUsingKeyFramesFrom(abi: abi) + case "DoubleKeyFrame": return makeDoubleKeyFrameFrom(abi: abi) + case "DoubleKeyFrameCollection": return makeDoubleKeyFrameCollectionFrom(abi: abi) + case "DragItemThemeAnimation": return makeDragItemThemeAnimationFrom(abi: abi) + case "DragOverThemeAnimation": return makeDragOverThemeAnimationFrom(abi: abi) + case "DrillInNavigationTransitionInfo": return makeDrillInNavigationTransitionInfoFrom(abi: abi) + case "DrillInThemeAnimation": return makeDrillInThemeAnimationFrom(abi: abi) + case "DrillOutThemeAnimation": return makeDrillOutThemeAnimationFrom(abi: abi) + case "DropTargetItemThemeAnimation": return makeDropTargetItemThemeAnimationFrom(abi: abi) + case "EasingColorKeyFrame": return makeEasingColorKeyFrameFrom(abi: abi) + case "EasingDoubleKeyFrame": return makeEasingDoubleKeyFrameFrom(abi: abi) + case "EasingFunctionBase": return makeEasingFunctionBaseFrom(abi: abi) + case "EasingPointKeyFrame": return makeEasingPointKeyFrameFrom(abi: abi) + case "EdgeUIThemeTransition": return makeEdgeUIThemeTransitionFrom(abi: abi) + case "ElasticEase": return makeElasticEaseFrom(abi: abi) + case "EntranceNavigationTransitionInfo": return makeEntranceNavigationTransitionInfoFrom(abi: abi) + case "EntranceThemeTransition": return makeEntranceThemeTransitionFrom(abi: abi) + case "ExponentialEase": return makeExponentialEaseFrom(abi: abi) + case "FadeInThemeAnimation": return makeFadeInThemeAnimationFrom(abi: abi) + case "FadeOutThemeAnimation": return makeFadeOutThemeAnimationFrom(abi: abi) + case "GravityConnectedAnimationConfiguration": return makeGravityConnectedAnimationConfigurationFrom(abi: abi) + case "KeySpline": return makeKeySplineFrom(abi: abi) + case "KeyTimeHelper": return makeKeyTimeHelperFrom(abi: abi) + case "LinearColorKeyFrame": return makeLinearColorKeyFrameFrom(abi: abi) + case "LinearDoubleKeyFrame": return makeLinearDoubleKeyFrameFrom(abi: abi) + case "LinearPointKeyFrame": return makeLinearPointKeyFrameFrom(abi: abi) + case "NavigationThemeTransition": return makeNavigationThemeTransitionFrom(abi: abi) + case "NavigationTransitionInfo": return makeNavigationTransitionInfoFrom(abi: abi) + case "ObjectAnimationUsingKeyFrames": return makeObjectAnimationUsingKeyFramesFrom(abi: abi) + case "ObjectKeyFrame": return makeObjectKeyFrameFrom(abi: abi) + case "ObjectKeyFrameCollection": return makeObjectKeyFrameCollectionFrom(abi: abi) + case "PaneThemeTransition": return makePaneThemeTransitionFrom(abi: abi) + case "PointAnimation": return makePointAnimationFrom(abi: abi) + case "PointAnimationUsingKeyFrames": return makePointAnimationUsingKeyFramesFrom(abi: abi) + case "PointKeyFrame": return makePointKeyFrameFrom(abi: abi) + case "PointKeyFrameCollection": return makePointKeyFrameCollectionFrom(abi: abi) + case "PointerDownThemeAnimation": return makePointerDownThemeAnimationFrom(abi: abi) + case "PointerUpThemeAnimation": return makePointerUpThemeAnimationFrom(abi: abi) + case "PopInThemeAnimation": return makePopInThemeAnimationFrom(abi: abi) + case "PopOutThemeAnimation": return makePopOutThemeAnimationFrom(abi: abi) + case "PopupThemeTransition": return makePopupThemeTransitionFrom(abi: abi) + case "PowerEase": return makePowerEaseFrom(abi: abi) + case "QuadraticEase": return makeQuadraticEaseFrom(abi: abi) + case "QuarticEase": return makeQuarticEaseFrom(abi: abi) + case "QuinticEase": return makeQuinticEaseFrom(abi: abi) + case "ReorderThemeTransition": return makeReorderThemeTransitionFrom(abi: abi) + case "RepeatBehaviorHelper": return makeRepeatBehaviorHelperFrom(abi: abi) + case "RepositionThemeAnimation": return makeRepositionThemeAnimationFrom(abi: abi) + case "RepositionThemeTransition": return makeRepositionThemeTransitionFrom(abi: abi) + case "SineEase": return makeSineEaseFrom(abi: abi) + case "SlideNavigationTransitionInfo": return makeSlideNavigationTransitionInfoFrom(abi: abi) + case "SplineColorKeyFrame": return makeSplineColorKeyFrameFrom(abi: abi) + case "SplineDoubleKeyFrame": return makeSplineDoubleKeyFrameFrom(abi: abi) + case "SplinePointKeyFrame": return makeSplinePointKeyFrameFrom(abi: abi) + case "SplitCloseThemeAnimation": return makeSplitCloseThemeAnimationFrom(abi: abi) + case "SplitOpenThemeAnimation": return makeSplitOpenThemeAnimationFrom(abi: abi) + case "Storyboard": return makeStoryboardFrom(abi: abi) + case "SuppressNavigationTransitionInfo": return makeSuppressNavigationTransitionInfoFrom(abi: abi) + case "SwipeBackThemeAnimation": return makeSwipeBackThemeAnimationFrom(abi: abi) + case "SwipeHintThemeAnimation": return makeSwipeHintThemeAnimationFrom(abi: abi) + case "Timeline": return makeTimelineFrom(abi: abi) + case "TimelineCollection": return makeTimelineCollectionFrom(abi: abi) + case "Transition": return makeTransitionFrom(abi: abi) + case "TransitionCollection": return makeTransitionCollectionFrom(abi: abi) + case "BitmapImage": return makeBitmapImageFrom(abi: abi) + case "BitmapSource": return makeBitmapSourceFrom(abi: abi) + case "DownloadProgressEventArgs": return makeDownloadProgressEventArgsFrom(abi: abi) + case "RenderTargetBitmap": return makeRenderTargetBitmapFrom(abi: abi) + case "SoftwareBitmapSource": return makeSoftwareBitmapSourceFrom(abi: abi) + case "SurfaceImageSource": return makeSurfaceImageSourceFrom(abi: abi) + case "SvgImageSource": return makeSvgImageSourceFrom(abi: abi) + case "SvgImageSourceFailedEventArgs": return makeSvgImageSourceFailedEventArgsFrom(abi: abi) + case "SvgImageSourceOpenedEventArgs": return makeSvgImageSourceOpenedEventArgsFrom(abi: abi) + case "VirtualSurfaceImageSource": return makeVirtualSurfaceImageSourceFrom(abi: abi) + case "WriteableBitmap": return makeWriteableBitmapFrom(abi: abi) + case "XamlRenderingBackgroundTask": return makeXamlRenderingBackgroundTaskFrom(abi: abi) + case "Transform3D": return makeTransform3DFrom(abi: abi) + case "FrameNavigationOptions": return makeFrameNavigationOptionsFrom(abi: abi) + case "NavigatingCancelEventArgs": return makeNavigatingCancelEventArgsFrom(abi: abi) + case "NavigationEventArgs": return makeNavigationEventArgsFrom(abi: abi) + case "NavigationFailedEventArgs": return makeNavigationFailedEventArgsFrom(abi: abi) + case "PageStackEntry": return makePageStackEntryFrom(abi: abi) + case "Ellipse": return makeEllipseFrom(abi: abi) + case "Path": return makePathFrom(abi: abi) + case "Rectangle": return makeRectangleFrom(abi: abi) + case "Shape": return makeShapeFrom(abi: abi) + case "XamlControlsXamlMetaDataProvider": return makeXamlControlsXamlMetaDataProviderFrom(abi: abi) + default: return nil + } + } +} diff --git a/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+ABI.swift b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+ABI.swift new file mode 100644 index 0000000..f1f2997 --- /dev/null +++ b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+ABI.swift @@ -0,0 +1,26 @@ +// 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_Windows_UI_Xaml_Interop { + public class _ABI_TypeName { + public var val: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init() + public init() { } + public init(from swift: WinUI.TypeName) { + val.Name = try! HString(swift.name).detach() + val.Kind = swift.kind + } + + public func detach() -> __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName { + let result = val + val.Name = nil + return result + } + + deinit { + WindowsDeleteString(val.Name) + } + } +} diff --git a/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+Impl.swift b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+Impl.swift new file mode 100644 index 0000000..4f62fa3 --- /dev/null +++ b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+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_Windows_UI_Xaml_Interop { +} diff --git a/Sources/WinUI/Generated/Windows.UI.Xaml.Interop.swift b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop.swift new file mode 100644 index 0000000..9597e04 --- /dev/null +++ b/Sources/WinUI/Generated/Windows.UI.Xaml.Interop.swift @@ -0,0 +1,37 @@ +// 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/uwp/api/windows.ui.xaml.interop.typekind) +public typealias TypeKind = __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeKind +/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.xaml.interop.typename) +public struct TypeName: Hashable, Codable { + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.xaml.interop.typename.name) + public var name: String = "" + /// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.ui.xaml.interop.typename.kind) + public var kind: TypeKind = .init(0) + public init() {} + public init(name: String, kind: TypeKind) { + self.name = name + self.kind = kind + } + public static func from(abi: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName) -> TypeName { + .init(name: .init(from: abi.Name), kind: abi.Kind) + } +} + +extension WinUI.TypeKind { + public static var primitive : WinUI.TypeKind { + __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeKind_Primitive + } + public static var metadata : WinUI.TypeKind { + __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeKind_Metadata + } + public static var custom : WinUI.TypeKind { + __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeKind_Custom + } +} +extension WinUI.TypeKind: @retroactive Hashable, @retroactive Codable {} + diff --git a/Sources/WinUI/SwiftApplication.swift b/Sources/WinUI/SwiftApplication.swift new file mode 100644 index 0000000..08a283c --- /dev/null +++ b/Sources/WinUI/SwiftApplication.swift @@ -0,0 +1,75 @@ +import Foundation +import WinAppSDK +@_spi(WinRTImplements) import WindowsFoundation + +/// You should derive from SwiftApplication and mark this class as your @main entry point. This class +/// will ensure that the Windows Runtime is properly initialized and that your WinUI Application +/// is properly configured. +/// +/// Example usage: +/// ``` +/// import WinUI +/// +/// @main +/// class MySwiftApp: SwiftApplication { +/// required init() { +/// super.init() +/// } +/// +/// override func onLaunched(_ args: LaunchActivatedEventArgs) { +/// let window = Window() +/// window.content = TextBlock(text: "Hello, world!") +/// window.activate() +/// } +/// ``` +open class SwiftApplication: Application, IXamlMetadataProvider { + public required override init() { + super.init() + } + + @_spi(WinRTImplements) + override public func onLaunched(_ args: LaunchActivatedEventArgs?) { + resources.mergedDictionaries.append(XamlControlsResources()) + onLaunched(args!) + } + + /// Override this method to provide your application's main entry point. + open func onLaunched(_ args: LaunchActivatedEventArgs) { + } + + public static func main() { + do { + try withExtendedLifetime(WindowsAppRuntimeInitializer()) { + let appClass = String(describing: String(reflecting: Self.self)) + guard let instance = NSClassFromString(appClass) else { + fatalError("unable to find application class \(appClass)") + } + Application.start { _ in + _ = (instance as! SwiftApplication.Type).init() + } + } + } + catch { + fatalError("Failed to initialize WindowsAppRuntimeInitializer: \(error)") + } + } + + override open func queryInterface(_ iid: WindowsFoundation.IID) -> IUnknownRef? { + switch iid { + case __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderWrapper.IID: + let ixmp = __ABI_Microsoft_UI_Xaml_Markup.IXamlMetadataProviderWrapper(self) + return ixmp?.queryInterface(iid) + default: + return super.queryInterface(iid) + } + } + + private lazy var metadataProvider: XamlControlsXamlMetaDataProvider = .init() + public func getXamlType(_ type: TypeName) throws -> IXamlType! { + try metadataProvider.getXamlType(type) + } + + public func getXamlType(_ fullName: String) throws -> IXamlType! { + try metadataProvider.getXamlType(fullName) + } +} diff --git a/generate-bindings.ps1 b/generate-bindings.ps1 new file mode 100644 index 0000000..93a40cb --- /dev/null +++ b/generate-bindings.ps1 @@ -0,0 +1,141 @@ +function Get-SwiftWinRTVersion { + $Projections = Get-Content -Path $PSScriptRoot\projections.json | ConvertFrom-Json + return $Projections."swift-winrt" +} + +function Get-PackageString { + param( + $Package + ) + if ($Package) { + return " `n" + } +} +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 + } + + $Projections = Get-Content -Path $PSScriptRoot\projections.json | ConvertFrom-Json + $SwiftWinRTVersion = Get-SwiftWinRTVersion + $PackagesConfigContent = "`n" + $PackagesConfigContent += "`n" + $PackagesConfigContent += " `n" + if ($Projections.Package) { + $PackagesConfigContent += Get-PackageString -Package $Projections.Package + } + + $Projections.Packages | ForEach-Object { + $PackagesConfigContent += Get-PackageString -Package $_ + } + $Projections.Dependencies | ForEach-Object { + $PackagesConfigContent += Get-PackageString -Package $_ + } + $PackagesConfigContent += "" + if (-not (Test-Path "$PSScriptRoot\.packages")) { + New-Item -ItemType Directory -Path "$PSScriptRoot\.packages" | Out-Null + } + $PackagesConfigPath = Join-Path $PSScriptRoot ".packages\packages.config" + $PackagesConfigContent | Out-File -FilePath $PackagesConfigPath + + & $NugetDownloadPath restore $PackagesConfigPath -PackagesDirectory $PackagesDir | Out-Null + if ($LASTEXITCODE -ne 0) { + Write-Host "Nuget restore failed!" -ForegroundColor Red + exit 1 + } +} + +function Get-WinMDInputs() { + param( + $Package + ) + $Id = $Package.Id + $Version = $Package.Version + return Get-ChildItem -Path $PackagesDir\$Id.$Version\ -Filter *.winmd -Recurse +} + +function Copy-Project { + param( + [string]$OutputLocation, + [string]$ProjectName + ) + + if ($ProjectName) { + $ProjectGeneratedDir = if ($ProjectName -eq "CWinRT") { "$ProjectName" } else { "$ProjectName\Generated" } + + $ProjectDir = Join-Path $PSScriptRoot "Sources\$ProjectGeneratedDir" + if (Test-Path $ProjectDir) { + Remove-Item -Path $ProjectDir -Recurse -Force + } + Copy-Item -Path $OutputLocation\Sources\$ProjectName -Destination $ProjectDir -Recurse -Force + } +} + + +function Invoke-SwiftWinRT() { + param( + [string]$PackagesDir + ) + $Projections = Get-Content -Path $PSScriptRoot\projections.json | ConvertFrom-Json + + $SwiftWinRTVersion = Get-SwiftWinRTVersion + # 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.Include | ForEach-Object { + $RspParams += "-include $_`n" + } + $Projections.Exclude | ForEach-Object { + $RspParams += "-exclude $_`n" + } + + if ($Projections.Package) { + Get-WinMDInputs -Package $Package | ForEach-Object { + $RspParams += "-input $($_.FullName)`n" + } + } + + $Projections.Packages | ForEach-Object { + Get-WinMDInputs -Package $Package | ForEach-Object { + $RspParams += "-input $($_.FullName)`n" + } + } + $Projections.Dependencies | ForEach-Object { + Get-WinMDInputs -Package $Package | ForEach-Object { + $RspParams += "-input $($_.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" + + if ($LASTEXITCODE -ne 0) { + Write-Host "swiftwinrt failed with error code $LASTEXITCODE" -ForegroundColor Red + exit 1 + } + + $Projections.Projects | ForEach-Object { + Copy-Project -OutputLocation $OutputLocation -ProjectName $_ + } + + if ($Projections.Project) { + Copy-Project -OutputLocation $OutputLocation -ProjectName $Projections.Project + } +} + +$PackagesDir = Join-Path $PSScriptRoot ".packages" +Restore-Nuget -PackagesDir $PackagesDir +#Invoke-SwiftWinRT -PackagesDir $PackagesDir +Write-Host "SwiftWinRT bindings generated successfully!" -ForegroundColor Green \ No newline at end of file diff --git a/projections.json b/projections.json new file mode 100644 index 0000000..25d1399 --- /dev/null +++ b/projections.json @@ -0,0 +1,112 @@ +{ + "swift-winrt": "0.5.0", + "project": "WinUI", + "package": { + "id": "Microsoft.WindowsAppSDK", + "version": "1.5.240205001-preview1" + }, + "dependencies": [ + { "id": "Microsoft.Windows.SDK.Contracts", "version": "10.0.18362.2005" } + ], + "include": [ + "Microsoft.UI.ColorHelper", + "Microsoft.UI.Colors", + "Microsoft.UI.Xaml.Application", + "Microsoft.UI.Xaml.Automation.AutomationProperties", + "Microsoft.UI.Xaml.Controls.BitmapIcon", + "Microsoft.UI.Xaml.Controls.Border", + "Microsoft.UI.Xaml.Controls.Button", + "Microsoft.UI.Xaml.Controls.Canvas", + "Microsoft.UI.Xaml.Controls.CheckBox", + "Microsoft.UI.Xaml.Controls.ColumnDefinition", + "Microsoft.UI.Xaml.Controls.ComboBox", + "Microsoft.UI.Xaml.Controls.ContentDialog", + "Microsoft.UI.Xaml.Controls.ContentPresenter", + "Microsoft.UI.Xaml.Controls.FlipView", + "Microsoft.UI.Xaml.Controls.FlipViewItem", + "Microsoft.UI.Xaml.Controls.Flyout", + "Microsoft.UI.Xaml.Controls.FlyoutPresenter", + "Microsoft.UI.Xaml.Controls.FontIcon", + "Microsoft.UI.Xaml.Controls.FontIconSource", + "Microsoft.UI.Xaml.Controls.Grid", + "Microsoft.UI.Xaml.Controls.GridView", + "Microsoft.UI.Xaml.Controls.IconSourceElement", + "Microsoft.UI.Xaml.Controls.IKeyIndexMapping", + "Microsoft.UI.Xaml.Controls.Image", + "Microsoft.UI.Xaml.Controls.ImageIcon", + "Microsoft.UI.Xaml.Controls.InfoBar", + "Microsoft.UI.Xaml.Controls.ItemsRepeater", + "Microsoft.UI.Xaml.Controls.HyperlinkButton", + "Microsoft.UI.Xaml.Controls.ListBox", + "Microsoft.UI.Xaml.Controls.ListBoxItem", + "Microsoft.UI.Xaml.Controls.MediaPlayerElement", + "Microsoft.UI.Xaml.Controls.MenuBar", + "Microsoft.UI.Xaml.Controls.MenuBarItem", + "Microsoft.UI.Xaml.Controls.MenuFlyout", + "Microsoft.UI.Xaml.Controls.MenuFlyoutItem", + "Microsoft.UI.Xaml.Controls.MenuFlyoutSeparator", + "Microsoft.UI.Xaml.Controls.MenuFlyoutSubItem", + "Microsoft.UI.Xaml.Controls.ToggleMenuFlyoutItem", + "Microsoft.UI.Xaml.Controls.Page", + "Microsoft.UI.Xaml.Controls.PasswordBox", + "Microsoft.UI.Xaml.Controls.PipsPager", + "Microsoft.UI.Xaml.Controls.ProgressBar", + "Microsoft.UI.Xaml.Controls.ProgressRing", + "Microsoft.UI.Xaml.Controls.RadioButton", + "Microsoft.UI.Xaml.Controls.RadioButtons", + "Microsoft.UI.Xaml.Controls.RelativePanel", + "Microsoft.UI.Xaml.Controls.RowDefinition", + "Microsoft.UI.Xaml.Controls.Slider", + "Microsoft.UI.Xaml.Controls.ScrollView", + "Microsoft.UI.Xaml.Controls.SplitView", + "Microsoft.UI.Xaml.Controls.StackLayout", + "Microsoft.UI.Xaml.Controls.StackPanel", + "Microsoft.UI.Xaml.Controls.SwapChainPanel", + "Microsoft.UI.Xaml.Controls.TeachingTip", + "Microsoft.UI.Xaml.Controls.ToolTip", + "Microsoft.UI.Xaml.Controls.ToolTipService", + "Microsoft.UI.Xaml.Controls.TextBlock", + "Microsoft.UI.Xaml.Controls.TextBox", + "Microsoft.UI.Xaml.Controls.ToggleSwitch", + "Microsoft.UI.Xaml.Controls.TreeView", + "Microsoft.UI.Xaml.Controls.TreeViewItem", + "Microsoft.UI.Xaml.Controls.TreeViewList", + "Microsoft.UI.Xaml.Controls.UniformGridLayout", + "Microsoft.UI.Xaml.Controls.XamlControlsResources", + "Microsoft.UI.Xaml.Documents.Run", + "Microsoft.UI.Xaml.Documents.Hyperlink", + "Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource", + "Microsoft.UI.Xaml.Hosting.ElementCompositionPreview", + "Microsoft.UI.Xaml.Hosting.WindowsXamlManager", + "Microsoft.UI.Xaml.Input.FocusManager", + "Microsoft.UI.Xaml.Interop.INotifyCollectionChanged", + "Microsoft.UI.Xaml.Markup.IComponentConnector", + "Microsoft.UI.Xaml.Markup.IDataTemplateComponent", + "Microsoft.UI.Xaml.Markup.XamlBindingHelper", + "Microsoft.UI.Xaml.Markup.XamlReader", + "Microsoft.UI.Xaml.Media.Animation", + "Microsoft.UI.Xaml.Media.AcrylicBrush", + "Microsoft.UI.Xaml.Media.CompositeTransform", + "Microsoft.UI.Xaml.Media.CompositionTarget", + "Microsoft.UI.Xaml.Media.GradientStop", + "Microsoft.UI.Xaml.Media.GradientStopCollection", + "Microsoft.UI.Xaml.Media.Imaging", + "Microsoft.UI.Xaml.Media.LinearGradientBrush", + "Microsoft.UI.Xaml.Media.LineSegment", + "Microsoft.UI.Xaml.Media.MicaBackdrop", + "Microsoft.UI.Xaml.Media.PathGeometry", + "Microsoft.UI.Xaml.Media.PolyBezierSegment", + "Microsoft.UI.Xaml.Media.ThemeShadow", + "Microsoft.UI.Xaml.Media.Transform", + "Microsoft.UI.Xaml.Media.TranslateTransform", + "Microsoft.UI.Xaml.Media.VisualTreeHelper", + "Microsoft.UI.Xaml.Setter", + "Microsoft.UI.Xaml.Shapes.Ellipse", + "Microsoft.UI.Xaml.Shapes.Path", + "Microsoft.UI.Xaml.Shapes.Rectangle", + "Microsoft.UI.Xaml.Window", + "Microsoft.UI.Xaml.XamlTypeInfo.XamlControlsXamlMetaDataProvider", + ], + "exclude": [ + ] +}