Initial commit

This commit is contained in:
Steve Kirbach 2024-02-13 18:06:18 -08:00
commit e2d352467b
70 changed files with 141265 additions and 0 deletions

95
.gitignore vendored Normal file
View File

@ -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

11
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Generate swift-winui bindings",
"command": "${workspaceFolder:swift-winui}/generate-bindings.ps1",
"problemMatcher": []
}
]
}

29
LICENSE Normal file
View File

@ -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.

27
Package.swift Normal file
View File

@ -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"),
]
)
]
)

29
README.md Normal file
View File

@ -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.

File diff suppressed because it is too large Load Diff

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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
}
}
}

View File

@ -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<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.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<WinUI.AutomationAnnotation?>? {
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<WinUI.DependencyObject?>? {
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<WinUI.DependencyObject?>? {
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<WinUI.DependencyObject?>? {
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 }
}
}

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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 }
}
}

View File

@ -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 {
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<WinUI.UIElement?>! {
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<AutomationAnnotation?>! {
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<WinUI.DependencyObject?>! {
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<WinUI.DependencyObject?>! {
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<WinUI.DependencyObject?>! {
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<T>() -> UnsafeMutablePointer<T>? {
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 {}

File diff suppressed because it is too large Load Diff

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<TypedEventHandler<IScrollController?, ScrollControllerAddScrollVelocityRequestedEventArgs?>> = {
.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<TypedEventHandler<IScrollController?, Any?>> = {
.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<TypedEventHandler<IScrollController?, Any?>> = {
.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<TypedEventHandler<IScrollController?, ScrollControllerScrollByRequestedEventArgs?>> = {
.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<TypedEventHandler<IScrollController?, ScrollControllerScrollToRequestedEventArgs?>> = {
.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<CABI>?) -> 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<Bridge.CABI>) {
_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<TypedEventHandler<IScrollControllerPanningInfo?, Any?>> = {
.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<TypedEventHandler<IScrollControllerPanningInfo?, ScrollControllerPanRequestedEventArgs?>> = {
.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<CABI>?) -> 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<Bridge.CABI>) {
_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<Float>! {
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<EventHandler<Any?>> = {
.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<EventHandler<Any?>> = {
.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<CABI>?) -> 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<CABI>?) -> 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
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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<WinUI.BindingBase.Composable>?, _ 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<WinUI.Binding.Composable>?, _ 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<WinUI.ItemIndexRange.Composable>?, _ 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<WindowsFoundation.IID>.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<WinUI.PropertyChangedEventArgs.Composable>?, _ 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<WinUI.RelativeSource.Composable>?, _ 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<WindowsFoundation.IID>.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)
}
}

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<PropertyChangedEventHandler> = {
.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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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
}
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<PropertyChangedEventHandler> { 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 {}

File diff suppressed because it is too large Load Diff

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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<WinUI.DesktopWindowXamlSource?, WinUI.DesktopWindowXamlSourceTakeFocusRequestedEventArgs?>?) 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<WinUI.DesktopWindowXamlSource?, WinUI.DesktopWindowXamlSourceGotFocusEventArgs?>?) 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<WinUI.DesktopWindowXamlSource.Composable>?, _ 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<WinUI.WindowsXamlManager?, WinUI.XamlShutdownCompletedOnThreadEventArgs?>?) 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!)
}
}
}

View File

@ -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 {
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<TypedEventHandler<DesktopWindowXamlSource?, DesktopWindowXamlSourceGotFocusEventArgs?>> = {
.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<TypedEventHandler<DesktopWindowXamlSource?, DesktopWindowXamlSourceTakeFocusRequestedEventArgs?>> = {
.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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<TypedEventHandler<WindowsXamlManager?, XamlShutdownCompletedOnThreadEventArgs?>> = {
.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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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 {}

File diff suppressed because it is too large Load Diff

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<EventHandler<Any?>> = {
.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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -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<WindowsFoundation.IID>.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<WindowsFoundation.IID>.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<WindowsFoundation.IID>.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<WindowsFoundation.IID>.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<WindowsFoundation.IID>.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<WinUI.NotifyCollectionChangedEventArgs.Composable>?, _ 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)
}
}

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<NotifyCollectionChangedEventHandler> = {
.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<CABI>?) -> 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
}
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<NotifyCollectionChangedEventHandler> { 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 {}

File diff suppressed because it is too large Load Diff

View File

@ -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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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<CABI>?) -> 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<Bridge.CABI>) {
_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() }
}
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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

File diff suppressed because it is too large Load Diff

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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<WinUI.BitmapSource.Composable>?, _ 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<UWP.AnyIBuffer?>? {
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<WinUI.SurfaceImageSource.Composable>?, _ 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<WinUI.SurfaceImageSource.Composable>?, _ 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<WinUI.SvgImageSource?, WinUI.SvgImageSourceOpenedEventArgs?>?) 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<WinUI.SvgImageSource?, WinUI.SvgImageSourceFailedEventArgs?>?) 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<WinUI.SvgImageSourceLoadStatus>? {
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<WinUI.SvgImageSource.Composable>?, _ 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<WinUI.SvgImageSource.Composable>?, _ 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<WinUI.XamlRenderingBackgroundTask.Composable>?, _ 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<WinUI.XamlRenderingBackgroundTask.IXamlRenderingBackgroundTaskOverrides>
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<WindowsFoundation.IID>.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)
}
}

View File

@ -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<CABI>?) -> 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
}
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<DownloadProgressEventHandler> = {
.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<WinUI.ExceptionRoutedEventHandler> = {
.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<WinUI.RoutedEventHandler> = {
.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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<UWP.AnyIBuffer?>! {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<SvgImageSourceLoadStatus>! {
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<TypedEventHandler<SvgImageSource?, SvgImageSourceFailedEventArgs?>> = {
.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<TypedEventHandler<SvgImageSource?, SvgImageSourceOpenedEventArgs?>> = {
.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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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 {}

View File

@ -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<WinUI.Transform3D.Composable>?, _ 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!)
}
}
}

View File

@ -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 {
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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
}
}

File diff suppressed because it is too large Load Diff

View File

@ -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<WinUI.FrameNavigationOptions.Composable>?, _ 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)
}
}

View File

@ -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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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<CABI>?) -> 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
}
}
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
@_spi(WinRTInternal)
public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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<T>() -> UnsafeMutablePointer<T>? {
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 {}

View File

@ -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<WinUI.Path.Composable>?, _ 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<WinUI.Shape.Composable>?, _ 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)
}
}
}

View File

@ -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 {
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Class>
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<T>() -> UnsafeMutablePointer<T>? {
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<Composable>.unwrapFrom(base: abi)
}
@_spi(WinRTInternal)
override public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi: fromAbi)
}
@_spi(WinRTInternal)
override public init<Composable: ComposableImpl>(
composing: Composable.Type,
_ createCallback: (UnsealedWinRTClassWrapper<Composable>?, 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<Class>
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
}
}

View File

@ -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))
}
}
}
}

View File

@ -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 {
}

View File

@ -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<T>() -> UnsafeMutablePointer<T>? {
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
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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)
}
}
}

View File

@ -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 {
}

View File

@ -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 {}

View File

@ -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)
}
}

141
generate-bindings.ps1 Normal file
View File

@ -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 " <package id=""$($Package.Id)"" version=""$($Package.Version)"" />`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 = "<?xml version=""1.0"" encoding=""utf-8""?>`n"
$PackagesConfigContent += "<packages>`n"
$PackagesConfigContent += " <package id=""TheBrowserCompany.SwiftWinRT"" version=""$SwiftWinRTVersion"" />`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 += "</packages>"
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

112
projections.json Normal file
View File

@ -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": [
]
}