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)